Translating

nessemble is set up to be completely translated with the following steps:

Prepare

A master language template must be generated first:

make translate-template

Note

This step only needs to be performed once, unless the version of nessemble increases.

Generate

To generate a specific language template:

make translate-new LANG=<ll_CC>

A file named translate/<ll_CC/nessemble.po will be created.

ll_CC must be a valid locale where:

  • ll - Valid language code
  • CC - Valid country code

Example:

make translate-new LANG=de_DE

de_DE is the locale for Germany.

Note

If no language template exists, one will be created during this step.

Populate

Populate the file created during the previous step (translate/<ll_CC>/nessemble.po).

Example:

msgid "String to translate"
msgstr "String zu übersetzen"

Compile

The language file must be compiled:

make translate-compile LANG=<ll_CC>

Install

To install locally:

make translate-install LANG=<ll_CC>

The locale directory differs by platform:

Platform Location
Linux/Mac /home/<username>/.nessemble/locale/
Windows \Users\<username>\.nessemble\locale\

Note

The previous compilation step will be performed automatically before installation.