Updating Frappé / ERPNext Documentation & Translation.

Makarand Bauskar
2 min readJul 4, 2017

--

I am Software Developer at Frappe and we work on ERPNext the best open source ERP. ERPNext is currently used across 150+ countries, has more that 4000+ customers and have awesome community.

Frappe supports translation for 70+ languages and has the translation portal for user to contribute the translation for their native language. We also have documentation tool that can build the documentation and host the manual on GitHub using the frappe/erpnext repo.

As ERPNext community spread across the 150+ countries it is important that we keep the translation and documentation for frappe/erpnext updated constantly. So we decided to update the translation and documentation weekly using automated pull request !!

Settings up documentation, and translation in frappe was quite easy, For documentation we just needed to use the build-docs command.

bench --site [site] build-docs [appname]

For translation first, we needed to download the latest translation strings from erpnext and frappe code.

bench import-source-messages

Then translate the untranslated strings using Google Translate API and write all language translations to csv file.

bench translate-untranslated-all
bench execute "translator.data.write_csv_for_all_languages

We setup a script that will execute all these steps and then commit the changes and create a pull request. We also created a GitHub user frappe-pr-bot, Now every Tuesday frappe-pr-bot creates an automated pull request for documentation and translation.

Generated automated pull request for documentation and translation
Setup frape-pr-bot to send the Automated PR every Tuesday

At Frappé we love to automate the manual task, I hope this automated pull requests for Translation & Documentation will help community members to be updated with erpnext and it’s features.

--

--