If you set the language by means
of an Xconfig file, the login screen is localized and LANG
is set for all users. This is the only
way to change LANG
for all displays
in multi-display systems. (To modify Xconfig, copy /usr/dt/config/Xconfig to /etc/dt/config/Xconfig.)
The language is set by placing the following line in /etc/dt/config/Xconfig:
dtlogin.host_display.language: language
For example, the following line sets LANG
to Swedish_locale on display my_host:0.
dtlogin.my_host_0.language: Swedish_locale
The dtlogin client reads the appropriate message catalog for that language and brings up the localized login screen. The dtlogin client then determines the list of locales using the following resources in the /etc/dt/config/Xresources resource file:
dtlogin*language
dtlogin*languageList
dtlogin*languageName
The Xconfig file may need to set the NLSPATH
environment variable appropriately
for the chosen language. If this is not the case, or if you want to set NLSPATH
yourself, see NLSPATH Environment Variable.