Version 4.2.6 for Mainframes
 —  Natural for Ajax  —

Multi Language Management

The multi language management is responsible for changing the text IDs into strings that are presented to the user.

There are two translation aspects:

In a Natural for Ajax application, both language management systems are related by common language codes. The language codes used are those that are defined for the Natural profile parameter ULANG and the system variable *LANGUAGE.

The Application Designer documentation describes how the text files containing the language-dependent texts are created and maintained (see the information on writing multi language layouts at the above URL). For a multi-lingual Natural for Ajax application, the names of the directories that contain the text files should be chosen according to the Natural language codes, for instance /multilanguage/4 for Spanish texts.

When an application is started from the Natural logon page (see Starting a Natural Application from the Logon Page), the user can select the language to be used. Depending on the selected language, the same (Natural) language code is set up both in Application Designer and in the Natural session, so that both language management systems are then configured to use the same language.

Note:
The language for a session can also be defined in the configuration file sessions.xml, with the element language. See Managing the Configuration File for the Session in the Natural Web I/O Interface documentation.

It is also possible to change the language while an application is running. This is done by setting the Natural system variable *LANGUAGE in the Natural program. Each time this system variable is changed, Natural for Ajax changes the language code for the web pages when the next update of the page occurs.

For compatibility with the predefined multi language directories in Application Designer, the English and German texts need not be stored in /multilanguage/1 and /multilanguage/2, but can be contained in /multilanguage/en and /multilanguage/de.

Top of page