TorrentIndexer/HACKING.md

11 lines
447 B
Markdown

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