Open System Services Management and Operations Guide (G06.25+, H06.03+)
Managing With the Shell
Open System Services Management and Operations Guide—527191-002
9-5
Localizing Software
Localizing Software
You can use the localization environment variables in:
•
An /etc/profile file to customize the behavior of all compatible applications
launched from an OSS shell for a specific locale
•
A default .profile file to customize the behavior of all compatible applications
launched from a specific user’s OSS shell for a specific locale
You can use a different locale value for each environment variable in either file. The
values for these variables are inherited by all the child processes for that shell.
The localization environment variables are listed in Table 9-1 on page 9-5, along with
their meanings and default values.
The version of the OSS shell released by HP fully supports only the default C locale.
That is, HP does not provide message catalogs for OSS shell commands and utilities
when nondefault locales are used. Nondefault values for localization environment
variables should be used only after testing.
Table 9-2 on page 9-6 lists all the locales released as part of the OSS product set. An
additional locale, GB18030, is provided for use only within the vi_gb18030 and
print_gb18030 utilities; see the online reference pages vi_gb18030(1) and
print_gb18030(1) for more information. You can create a unique locale for your
server node by using the following tools from the command line of an OSS shell:
dspcat
dspmsg
gencat
Table 9-1. Localization Environment Variables
Variable Meaning and default
LANG The locale of your shell, which consists of a language, territory, and
code set.
The default locale is the C locale.
The default language is English.
The default territory is US.
The default code set is ASCII.
LC_ALL The behavior for all aspects of the locale, unless overridden by
another variable.
LC_COLLATE The collating sequence. The default value is C/POSIX.
LC_CTYPE The character classification information. The default value is
C/POSIX.
LC_MESSAGES The language for shell messages. The default value is C/POSIX.
LC_MONETARY The monetary format for your shell. The default value is C/POSIX.
LC_NUMERIC The numeric format for your shell. The default value is C/POSIX.
LC_TIME The time format for your shell. The default value is C/POSIX.