Skip to content

Internationalisation

Friedrich Lindenberg edited this page Jun 6, 2015 · 3 revisions

Translation workflow:

Update .pot file from source:

$ pybabel extract -F babel.cfg -k lazy_gettext -o spendb/translations/messages.pot spendb

Examine the .pot (or at least its diff) for bogus messages, and fix up any errors in the source. Pay particular attention to templates.

Commit the updated .pot

Update .po files from .pot:

$ pybabel update -i messages.pot -d spendb/translations

Ship .po files off for translation

Edit bin/update_translations. You must list each language code on a separate line.

Once you have configured the supported languages, run:

$ bin/update_translations