Configuring HP-UX for Different Languages, February 2002

How to Configure Your System Language
Managing the LANG Environment Variable
Chapter 1 11
Setting the Locale for Multiple Users (Xconfig file)
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:
1. Check to see if the /etc/dt/config/Xconfig file exists on your
system. If not, copy it from /usr/dt/config/Xconfig. Do not try to
edit the /usr/dt/config/Xconfig file directly.
2. Edit the /etc/dt/config/Xconfig file and change the following line
(see Appendix A for a listing of all locales):
Dtlogin*language: <lang>
For example:
To set the German iso8859-1 locale for all displays/users:
Dtlogin*language: de_DE.iso88591
To set the German iso8859-1 locale for a specific display (’hpabcd’):
Dtlogin.hpabcd_0.language: de_DE.iso88591
CAUTION Make sure you DO NOT include a space or tab at the end of the <lang>
value (de_DE.iso88591). This will cause the LANG variable to be
incorrect and the locale will not be set properly.
3. Then execute:
/sbin/init.d/dtlogin.rc reset
4. Log out and login again
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:
Dtlogin*languageList