Translation

The system has various layers for translation. Unfortunately there is not one single technology.

The gateway server has translation lookup tables and the output is translated to the session language. This uses the i18n Node.js module. The translations are stored in the /locales/<language>.js

The desktop web client has two parts to the translation - PHP and Javascript.

The first is the PHP translation. This is achieved through the gettext() function. The translation files are stored in /locale/<language>/LC_MESSAGES/strings.po.

The second is the Javascript translation. This is achieved through the jQuery plugin localisation. The translation files are stored in /js/locales/strings-<language>.js.