Add update language - Xevib/osmbot GitHub Wiki
Add/update a language
How to (developers)
To add or update a new language you have to create a Pull request with:
- The messages.po file downloaded from Transifex inside bot/locales/language/LC_MESSAGES.
- The messages.mo file, to compile it execute on the directory bot/locales/language/LC_MESSAGES:
msgfmt messages.po -o messages.mo
- 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
- 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