Add translation capability
This commit is contained in:
10
HACKING.md
Normal file
10
HACKING.md
Normal 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
|
Reference in New Issue
Block a user