TorrentIndexer/HACKING.md
2017-12-29 08:03:17 +01:00

447 B

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