Language customization

The English language is the standard language for TS GUI.

As default, all GUI labels and messages are based on English language.

You can select a different language:

The languages are managed through a set of JSON files, stored into the product folder:

/opt/ptv-optima-vv.n.xxxxptv-optima-as/standalone/deployments/ts.war/lang/.

The current product languages are:

The basic element of a language file consist of a couple:

"English term" = "Translated term"

Caution:  DON'T MODIFY the "English term".

In some cases, after the installation of PTV Optima, you can desire to localize some terms of the language in use.

This operation consist of a straight override of some parts of a specific XXX.json file, provided by the product. For addressing this goal, you must build a package named: custom-language-files.war. This folder, containing the files related to the languages that you want override, must be stored in:

/opt/ptv-optima-vv.n.xxxxptv-optima-as/standalone/deployments/custom-language-files.war

The localization files must be named according to the same convention used for files stored in the folder:

/opt/ptv-optima-vv.n.xxxxptv-optima-as/standalone/deployments/ts.war/lang/..

At start time, TS search in custom-language-files.war the localization files.

Every file found is merged with the same language file previously loaded by the product folder, overwriting just the necessary strings, hence only the strings to be localized.

Topics in this section