Multilingual Capabilities

Cascading Language Suffixes

 

Prior to PxPlus v10, the standard usage of the PROCESS directive was to include a panel name and library name with a language suffix, and if the library was omitted, then the current library was used.

As of PxPlus v10, the previous usage is still supported, but enhanced language suffix handling now allows you to:

Some examples are provided below.

Example 1

To process a panel in "scrnlib", as in:

PROCESS "MYPANEL","scrnlib"

If the default suffix is set to "en" and alternate suffixes to "fr,es,", then the system will attempt to find the panel in the following libraries until successful: scrnlib, scrnlib.en, scrnlib.fr, scrnlib.es.

Example 2

To process a panel in "scrnlib.xx", as in:

PROCESS "MYPANEL","scrnlib.xx"

If the default suffix is set to "en" and alternate suffixes to "fr,es,", then the system will attempt to find the panel in the following libraries until successful: scrnlib.xx, scrnlib.en, scrnlib.fr, scrnlib.es.

Example 3

If no library is specified, as in:

PROCESS "MYPANEL",""

…then the last accessed library is used. If the last accessed library is scrnlib.xx and the default and alternate suffixes are as above, then the system will attempt to find the panel in libraries in the same way as the first example.

The default and alternate suffixes are defined in the NOMADS System Defaults. Language suffixes are two characters long, and in the case of alternate suffixes, multiple language suffixes are defined in a comma-separated list (e.g. en, fr, es,). The default suffix may also be set in the %NOMAD_Def_Sfx$ variable, and alternate suffixes may be set using the %NOMAD_Alt_Sfx$ variable. Setting the global variable overrides NOMADS System Defaults settings. Language suffixes are case-sensitive; therefore, the "scrnlib.EN" library would not be found by specifying a suffix as "en" on a UNIX/Linux system.

Generic library names (i.e. with no suffix) can be specified in the NOMADS Designer when specifying/associating Panels, Queries, Popup Menus, Menu Links, Embedded Panels, Events Logic, etc. (as of PxPlus v11.00)

When a library path is specified, it is processed as follows: