United States-English |
|
|
Configuring HP-UX for Different Languages > Chapter 1 Configuring
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. This section includes the following tasks: Before You Begin Make sure the CDE language bundles shown in Table 1-1 “CDE Language and Bundle ” are installed on your system. Check to see what languages are installed on your system by typing: /usr/sbin/swlist -l bundle ‘CDE-*’ Table 1-1 CDE Language and Bundle
If a CDE bundle corresponding to the language is not installed, make sure you load it from the OS media using the SD swinstall command. There are three ways to set the LANG environment variable, depending on how you want the locale to operate:
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 resource in the /etc/dt/config/Xconfig 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:
You can set the default language and codeset settings for system-wide usage by modifying the /etc/rc.config.d/LANG file on your system. It is applied at system boot for all daemons that are localized. To set the default LANG variable for system-wide usage (using sh or ksh) modify the last two lines of the /etc/rc.config.d/LANG file as shown below: # vi /etc/rc.config.d/LANG |
Printable version | ||
|