Step 4. Packaging a Localization Tarball or RPM

After all the translations have been done, and the .po files have been compiled to .mo files in the corresponding directory structure, the language pack needs to be wrapped into a tarball (.tar.gz) or an RPM. The convention used for naming the tarball/RPM is: webppliance-language-<lang>-<version>-<release>.tar.gz or webppliance-language-<lang>-<version>-<release>.i386.rpm.

To create an archive:

  1. Create a file, for example localization.txt, containing the .po and .mo files listed below. The file should be a text file listing the absolute path for each file, one file per line.

    Example:

    /usr/lib/ensim/frontend/locale/es_ES/LC_MESSAGES/legacy.mo

    /usr/lib/ensim/frontend/locale/es_ES/LC_MESSAGES/epl.mo

  2. Create an archive by running the following command:

    tar -zcvf webppliance-language-<lang>-<version>-<release>.tar.gz 'cat localization.txt'

If you want to package the files into an RPM, consult http://www.rpm.org/RPM-HOWTO/.

As an example, if you are packaging the localization tarball for the Spanish locale (es_ES), the following files must be present in the package.