| United States-English |
|
|
|
![]() |
Configuring HP-UX for Different Languages > Chapter 1 How to Configure Your System LanguageManaging the LANG Environment Variable |
|
To configure localized HP-UX sessions, you will need to:
You can set the LANG variable to any locale that is supported by the HP-UX operating system, and installed on your system. There are three ways to set the LANG environment variable, depending on how you want the locale to operate:
When LANG is set, HP-UX also uses the following locale-dependent files to determine the localized interface for colors and backdrops:
To set the system-wide default language settings, you must edit the Xconfig file. This sets the CDE login screen and the proper LANG variable for all users. This is the only way to change LANG for all displays in multi-display systems. Here is the procedure:
The Dtlogin client reads the appropriate message catalog for that locale and brings up the localized CDE login screen, if the user interface has been localized for the chosen locale. Otherwise, the login screen will come up in English. The Dtlogin client then determines the list of locales using the following resources in the /etc/dt/config/Xresources file:
An individual user can override the system-wide LANG setting by changing his/her homedirectory / .dtprofile file. In this case, the login screen is not localized and LANG is set only for the current user. Here is the procedure for customizing the .dtprofile file:
To set the locale for one session, use the Options menu of the CDE Login Manager (the screen you see when you are ready to login to the system). By choosing a locale from this list, the LANG variable is set for the user on a per-login basis. The value of the LANG variable returns to its default value (as set in dtlogin , see above) when the user logs out at the end of the session. Default language/codeset settings for terminal based systems are made by modifying the .profile or .cshrc file in the user's home directory. For example:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||