Step 1. Translating and Compiling the .po Files

To translate and compile the .po files, follow the instructions in this section.

To translate and compile the .po files:

  1. Using an archive utility, uncompress the archive en_US.tar.gz.
  2. Translate the msgstr values in the .po file to the target language. Ensure that you follow the rules in localization guidelines (on page 1).
  3. Create a language directory, for example es_ES (if you are translating the strings to Spanish), and the LC_MESSAGES directory at /usr/lib/ensim/frontend/locale/.

    mkdir /usr/lib/ensim/frontend/locale/<lang>

    mkdir /usr/lib/ensim/frontend/locale/<lang>/LC_MESSAGES

  4. Change to the directory /usr/lib/ensim/frontend/locale/<lang>/LC_MESSAGES/.

    cd /usr/lib/ensim/frontend/locale/<lang>/LC_MESSAGES/

  5. Copy the translated .po files and make_po.sh into the directory /usr/lib/ensim/frontend/locale/<lang>/LC_MESSAGES/.
  6. Run the following command to compile the following files—epl.po, vh3error.po, legacyerror.po.

    sh ./make_po.sh $PWD

    The script creates the .mo file epl.mo.

  7. Run the following command to compile the file legacy.po.

    msgfmt -o legacy.mo legacy.po

    The script creates the .mo file legacy.mo.

Compiling Power Tools Files

To compile the Power Tool .po files:

  1. Change to the directory where you uncompressed the archive en_US.tar.gz. Locate the Power Tools PO file powertools.po.
  2. Translate the msgstr values in each .po file to the target language. Ensure that you follow the rules in the localization guidelines.
  3. Create a language directory, for example es_ES (if you are translating the strings to Spanish), at /usr/lib/ensim/deployables/lib/locale/ and the LC_MESSAGES directory under the language directory.

    mkdir /usr/lib/ensim/deployables/lib/locale/<lang>

    mkdir /usr/lib/ensim/deployables/lib/locale/<lang>/LC_MESSAGES

  4. Change to the directory /usr/lib/ensim/deployables/lib/locale/<lang>/LC_MESSAGES/.

    cd /usr/lib/ensim/deployables/lib/locale/<lang>/LC_MESSAGES/

  5. Copy the translated .po files into the directory /usr/lib/ensim/deployables/lib/locale/<lang>/LC_MESSAGES/.
  6. Compile the files in the directory /usr/lib/ensim/deployables/lib/locale/<lang>/LC_MESSAGES/ into corresponding .mo files by running the following command:

    msgfmt -o msgs.mo powertools.po