Cascading Language Suffixes
From PxPlus
Prior to 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 v10, the previous usage is still supported, but enhanced language suffix handling now allows you to:
- Specify alternate library suffixes to try should the library or panel not be found.
- Specify a library without a language suffix, in which case the default and alternate suffixes are tried in turn.
Examples:
- 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
- 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.
- If a library is specified without a suffix, as in
- PROCESS "MYPANEL","scrnlib"
- then the system will attempt to find the panel using the default, then the alternate suffixes:
- scrnlib.en
- scrnlib.fr
- scrnlib.es
The default and alternate suffixes are defined 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 default settings. Language suffixes are case-sensitive, so the "scrnlib.EN" library would not be found by specifying a suffix as "en" on a unix/linux system.
