Add translation capability

This commit is contained in:
sqozz
2017-12-29 08:03:17 +01:00
parent 2c220afced
commit 9c053b5021
15 changed files with 342 additions and 132 deletions

10
HACKING.md Normal file
View File

@ -0,0 +1,10 @@
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