Skip to content

Add update language

KonfrareAlbert edited this page Jul 20, 2016 · 5 revisions

Add/update a language

How to (developers)

To add or update a new language you have to create a Pull request with:

  1. The messages.po file downloaded from Transifex inside bot/locales/language/LC_MESSAGES.
  2. The messages.mo file, to compile it execute on the directory bot/locales/language/LC_MESSAGES:
msgfmt messages.po -o messages.mo
  1. If the language is new create a entry for the language on the variable avaible_languages with the language : language code on https://github.com/Xevib/osmbot/blob/master/bot/osmbot.py#L28
  2. If the language is RTL language create a entry for the language on the variable rtl_languages with the language code on https://github.com/Xevib/osmbot/blob/master/bot/osmbot.py#L37
Clone this wiki locally