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.
{{_('xxx')}}
.python ./scripts/tr_update.py
, it will update rrd/translations/foo/LC_MESSAGES/messages.po
.python ./scripts/tr_compile.py
, it will generate a complied file in rrd/translations/foo/LC_MESSAGES/messages.mo
update rrd/config.py
, add a new key to LANGUAGES
, such as:
LANGUAGES = {
'en': 'English',
'zh_CN': 'Chinese-Simplified',
'es': Spanish,
}
run python ./scripts/tr_init.py
, it will update rrd/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 update rrd/translations/es/LC_MESSAGES/messages.po
.
run python ./scripts/tr_compile.py
, it will generate a complied file in rrd/translations/es/LC_MESSAGES/messages.mo