# 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:

- Specify alternate library suffixes to try in case the library or panel is not found.
- Specify a generic library (i.e. without a language suffix), in which case the default and alternate suffixes are tried in turn.

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:

- Paths are simplified based on the current directory and prefixes.
- System library references are simplified (i.e. /pxplus/lib/_rpt/rpt.en is simplified to *rpt/rpt.en).
- Library suffixes that match that of the current library are replaced with * (asterisk).
- \ (backslashes) are replaced with / (forward slashes).