Method of Generating Message Catalog Text of the Correct Language for Each Product
Original Publication Date: 1991-Jul-01
Included in the Prior Art Database: 2005-Apr-03
McLeod, AF: AUTHOR [+2]
Disclosed is a method which provides ease of use in multi-lingual environments involving products of diverse message catalog language support.
Method of Generating Message Catalog Text of the Correct
for Each Product
a method which provides ease of use in
multi-lingual environments involving products of diverse message
catalog language support.
The ** X/Open
( XPG3 ) ** portability guide describes a LANG
environment variable which may be set by the user to designate the
language directory from which the message catalogs are to be
retrieved. The NLSPATH environment variable is used by the message
catalog open routine (catopen, also defined by X/Open of the X/Open
Company, Ltd.) as the directory search path. The default setting for
NLSPATH was initially set to the following for AIX* RT* and AIX v3.1
for the RISC System/6000*:
variables %L and %N are used as placeholders for
the message catalog language ( directory ) and the message catalog
name, respectively. The LANG environment variable may be set by the
user to represent the preferred language for the message catalogs.
The catopen and NLcatopen routines access the LANG environment
variable and substitute its value in the %L of NLSPATH. The catalog
name to be opened will be substituted in the %N of NLSPATH. NLSPATH
will then be searched to locate the message catalog. If the message
catalog cannot be found, the message retrieval routines return the
program-supplied default message.
Ease of use
is an issue whenever products of diverse language
support are in use on a system (not all program products provide
message catalog translations in every language supported by the AIX
system). This then would require the user to change the LANG
environment variable frequently so that the correct language message
catalog is located for each individual program product.
also scenarios that involve two products in use at
the same time (such as the operating system and any program product;
or AIXwindows* with another program product). In such scenarios, the
language chosen by LANG may not suit the simultaneous use of both
products. The LANG value chosen would only be correct for one of the
two at any given point in time.
is to provide a means by which the system can
determine which language is the preferred, or "primary" message
catalog language for each program product if the message catalog
cannot be located in the language directory indicated by the LANG
setting. This is accomplished by establishing a new directory called
The /usr/lpp/msg/prime directory contai...