The sipXecs startup scripts can be localized by generating and installing message catalogs containing prompts translated for various languages and regions. The scripts are written in Python, and use the GNU gettext localization method. This page describes how to generate prompts in a new language.
A Portable Object Template file containing the list of strings to be translated can be generated from the source by running
xgettext -L python --output=sipXecs.pot sipxecs-setup.in sipxecs-setup-system.in sipxecs_setup_common.py.in
in the sipXpbx/bin
source directory.
This template file should be translated into Portable Object files called sipXecs.po
in the appropriately named subdirectory under $INSTALL/share/sipxecs/locale
(e.g. fr_FR). Use the UTF-8 charset and 8bit encoding. The Portable Object files should then be converted to Machine Object message catalogs by running, in the $INSTALL/share/sipxecs/locale/<locale_code>
directory,
mkdir -p LC_MESSAGES msgfmt.py --output-file=LC_MESSAGES/sipXecs.mo sipXecs.po
(Note that msgfmt or msgfmt.py may be run. These utilities must be installed separately).
Currently there are no translation files available.