locales(5) DG/UX R4.11 locales(5)
NAME
locales - how to use native language, cultural and region-specific
data
DESCRIPTION
A locale contains localization data for a particular language,
territory and codeset. Each locale has categories that contain
information for a specific area of localization. A locale contains
the following categories, listed by the name of the environment
variable used to control them. Refer to environ(5) for specific
information about each environment variable.
+--------------------------------------------------------------------+
|Category Description |
+--------------------------------------------------------------------+
|LC_COLLATE Collating Sequence. Data defining collating sequences |
| to be used for a specific single byte codeset. |
+--------------------------------------------------------------------+
|LC_CTYPE Character Classification and Conversion. Data defining |
| character classes for the codeset used by the locale. |
+--------------------------------------------------------------------+
|LC_MONETARY Currency Representation. Data defining currency format |
| based on locale conventions. |
+--------------------------------------------------------------------+
|LC_NUMERIC Numeric Representation. Data defining numeric format |
| based on locale conventions. |
+--------------------------------------------------------------------+
|LC_TIME Date and Time Format. Data defining date and time dis |
| play format and language. |
+--------------------------------------------------------------------+
|LC_MESSAGES AT&T-style Message Catalogs. Determines the native- |
| language used to display system error messages stored |
| in AT&T-style message catalogs. The X/Open-style mes |
| sage facility does not use this variable. See NOTE. |
+--------------------------------------------------------------------+
|LANG Default. LANG is used as the default locale if the |
| corresponding environment variable for a particular |
| category is unset. Also, used to locate X/Open-style |
| message catalogs and is the portable method for locat |
| ing AT&T-style message catalogs. The system-wide |
| default value for LANG can be changed with the |
| sysadm(1M) command. |
+--------------------------------------------------------------------+
|NLSPATH X/Open-style Message Catalogs. Defines location of |
| native-language system error message catalogs in X/Open |
| format. Uses the value of LANG to determine which |
| locale catalogs are used. The system-wide default |
| value for NLSPATH can be changed with the sysadm(1M) |
| command. |
+--------------------------------------------------------------------+
Native language, codeset, cultural and regional data are organized by
locale, where a locale name is represented by the notation: lan
guage[territory[.codeset]]. When .codeset is omitted from the
locale name, ISO 8859-1 is the default. You can customize your
system to use data from the locales listed in the following table:
locales(5) DG/UX R4.11 locales(5)
+------------------------------------------------------------------+
|Locale Name Language Country Code Set Alternate Name |
+------------------------------------------------------------------+
|C English U.S. ASCII C-locale |
+------------------------------------------------------------------+
|da Danish Denmark ISO 8859-1 da_DK |
|da_DK.850 Danish Denmark PC 850 |
|da_DK.865 Danish Denmark PC 865 |
+------------------------------------------------------------------+
|nl Dutch Netherlands ISO 8859-1 nl_NL |
|nl_NL.437 Dutch Netherlands PC 437 |
|nl_NL.850 Dutch Netherlands PC 850 |
+------------------------------------------------------------------+
|nl_BE Dutch Belgium ISO 8859-1 |
|nl_BE.437 Dutch Belgium PC 437 |
|nl_BE.850 Dutch Belgium PC 850 |
+------------------------------------------------------------------+
|en English United Kingdom ISO 8859-1 en_GB |
|en_GB.646 English United Kingdom ISO 646 |
|en_GB.437 English United Kingdom PC 437 |
|en_GB.850 English United Kingdom PC 850 |
+------------------------------------------------------------------+
|en_AU English Australia ISO 8859-1 |
|en_AU.646 English Australia ISO 646 |
|en_AU.437 English Australia PC 437 |
|en_AU.850 English Australia PC 850 |
+------------------------------------------------------------------+
|en_CA English Canada ISO 8859-1 |
|en_CA.646 English Canada ISO 646 |
|en_CA.437 English Canada PC 437 |
|en_CA.850 English Canada PC 850 |
+------------------------------------------------------------------+
|en_US English United States ISO 8859-1 |
|en_US.646 English United States ISO 646 |
|en_US.437 English United States PC 437 |
|en_US.850 English United States PC 850 |
+------------------------------------------------------------------+
|fi Finnish Finland ISO 8859-1 fi_FI |
|fi_FI.437 Finnish Finland PC 437 |
|fi_FI.850 Finnish Finland PC 850 |
+------------------------------------------------------------------+
|fr French France ISO 8859-1 fr_FR |
|fr_FR.437 French France PC 437 |
|fr_FR.850 French France PC 850 |
+------------------------------------------------------------------+
|fr_BE French Belgium ISO 8859-1 |
|fr_BE.437 French Belgium PC 437 |
|fr_BE.850 French Belgium PC 850 |
+------------------------------------------------------------------+
|fr_CA French Canada ISO 8859-1 |
|fr_CA.437 French Canada PC 437 |
|fr_CA.850 French Canada PC 850 |
+------------------------------------------------------------------+
locales(5) DG/UX R4.11 locales(5)
+--------------------------------------------------------------------+
|Locale Name Language Country Code Set Alternate Name |
+--------------------------------------------------------------------+
|fr_CH French Switzerland ISO 8859-1 |
|fr_CH.437 French Switzerland PC 437 |
|fr_CH.850 French Switzerland PC 850 |
+--------------------------------------------------------------------+
|de German Germany ISO 8859-1 de_DE |
|de_DE.437 German Germany PC 437 |
|de_DE.850 German Germany PC 850 |
+--------------------------------------------------------------------+
|de_AT German Austria ISO 8859-1 |
|de_AT.437 German Austria PC 437 |
|de_AT.850 German Austria PC 850 |
+--------------------------------------------------------------------+
|de_CH German Switzerland ISO 8859-1 |
|de_CH.437 German Switzerland PC 437 |
|de_CH.850 German Switzerland PC 850 |
+--------------------------------------------------------------------+
|el Greek Greece ISO 8859-7 el_GR |
+--------------------------------------------------------------------+
|is Icelandic Iceland ISO 8859-1 is_IS |
|is_IS.850 Icelandic Iceland PC 850 |
+--------------------------------------------------------------------+
|it Italian Italy ISO 8859-1 it_IT |
|it_IT.437 Italian Italy PC 437 |
|it_IT.850 Italian Italy PC 850 |
+--------------------------------------------------------------------+
|it_CH Italian Switzerland ISO 8859-1 |
|it_CH.437 Italian Switzerland PC 437 |
|it_CH.850 Italian Switzerland PC 850 |
+--------------------------------------------------------------------+
|no Norwegian Norway ISO 8859-1 no_NO |
|no_NO.850 Norwegian Norway PC 850 |
|no_NO.865 Norwegian Norway PC 865 |
+--------------------------------------------------------------------+
|pl Polish Poland ISO 8859-2 pl_PL |
+--------------------------------------------------------------------+
|pt Portuguese Portugal ISO 8859-1 pt_PT |
|pt_PT.850 Portuguese Portugal PC 850 |
|pt_PT.860 Portuguese Portugal PC 860 |
+--------------------------------------------------------------------+
|ru Russian USSR ISO 8859-5 ru_SU |
+--------------------------------------------------------------------+
|sh SerboCroatian Yugoslavia ISO 8859-2 sh_YU |
+--------------------------------------------------------------------+
|es Spanish Spain ISO 8859-1 es_ES |
|es_ES.437 Spanish Spain PC 437 |
|es_ES.850 Spanish Spain PC 850 |
+--------------------------------------------------------------------+
|sv Swedish Sweden ISO 8859-1 sv_SE |
|sv_SE.437 Swedish Sweden PC 437 |
|sv_SE.850 Swedish Sweden PC 850 |
+--------------------------------------------------------------------+
locales(5) DG/UX R4.11 locales(5)
+------------------------------------------------------------------+
|Locale Name Language Country Code Set Alternate Name |
+------------------------------------------------------------------+
|tr Turkish Turkey ISO 8859-3 |
+------------------------------------------------------------------+
|sk Czech Czechoslovakia ISO 8859-2 |
+------------------------------------------------------------------+
To use locale data from a single locale for all of the categories set
the environment variable, LANG, to the desired locale name. This is
convenient when one locale can meet most of your data requirements.
After setting LANG to a locale name, you can override this setting on
an individual category basis by setting the individual environment
variable corresponding to each category to a different locale name.
The language your system uses to display system messages is set using
environment variables which are based on two types of message
catalogs, X/Open and AT&T style. These catalogs contain system and
application messages separate from executable programs. The values
of NLSPATH and LANG are used to locate X/Open message catalogs. The
value of LANG is used to locate AT&T message catalogs, although you
can override the value of LANG by setting LCMESSAGES. See NOTE.
EXAMPLE
The following example sets all the categories above to use data from
the locale, fr, with the exception of LCMONETARY, which uses data
from the locale, frCH.
LANG=fr
LCMONETARY=frCH
FILES
/usr/lib/locale default location of locale data
/usr/lib/nls/msg default location of X/Open-style message catalogs
SEE ALSO
environ(5), sysadm(1M), localization(5).
NOTE
Use of LCMESSAGES is not recommended in applications that are
intended to be portable. Refer to Porting and Developing
Applications for the DG/UX System, for further details about X/Open
and AT&T message facilities.
Licensed material--property of copyright holder(s)