Open-Falcon support zh_CN by default. Any translation will be appreciated.
If you want to translate open-falcon to a new language or just refine the exist translation, you could follow the instructions below.
- find what you want to translate in the source code and replace it to
{{_('xxx')}}
. - run
python ./scripts/tr_update.py
, it will updaterrd/translations/foo/LC_MESSAGES/messages.po
. - run
python ./scripts/tr_compile.py
, it will generate a complied file inrrd/translations/foo/LC_MESSAGES/messages.mo
-
update
rrd/config.py
, add a new key toLANGUAGES
, such as:LANGUAGES = { 'en': 'English', 'zh_CN': 'Chinese-Simplified', 'es': Spanish, }
-
run
python ./scripts/tr_init.py
, it will updaterrd/translations/es/LC_MESSAGES/messages.po
. -
find what you want to translate in the source code and replace it to
{{_('xxx')}}
. -
run
python ./scripts/tr_update.py
, it will updaterrd/translations/es/LC_MESSAGES/messages.po
. -
run
python ./scripts/tr_compile.py
, it will generate a complied file inrrd/translations/es/LC_MESSAGES/messages.mo