Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.21 KB

i18n.md

File metadata and controls

24 lines (17 loc) · 1.21 KB

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.

refine the exist translation

  1. find what you want to translate in the source code and replace it to {{_('xxx')}}.
  2. run python ./scripts/tr_update.py, it will update rrd/translations/foo/LC_MESSAGES/messages.po.
  3. run python ./scripts/tr_compile.py, it will generate a complied file in rrd/translations/foo/LC_MESSAGES/messages.mo

create a new language(such as Spanish support)

  1. update rrd/config.py, add a new key to LANGUAGES, such as:

     LANGUAGES   = {
         'en':  'English',
         'zh_CN':  'Chinese-Simplified',
         'es': Spanish,
     }
    
  2. run python ./scripts/tr_init.py, it will update rrd/translations/es/LC_MESSAGES/messages.po.

  3. find what you want to translate in the source code and replace it to {{_('xxx')}}.

  4. run python ./scripts/tr_update.py, it will update rrd/translations/es/LC_MESSAGES/messages.po.

  5. run python ./scripts/tr_compile.py, it will generate a complied file in rrd/translations/es/LC_MESSAGES/messages.mo