447 B
447 B
Localization
- Mark all translatable strings by wrapping them in gettext() (or _())
- Extract all those strings: pybabel extract -F babel.cfg -o messages.pot .
- Update the language-specific translation files: pybabel update -i messages.pot -d translations/ -l [LANGCODE]
- Translate the strings in the generated .po files using your favourite editor
- Compile the .po files to .mo files: pybabel compile -d translations