Contained WithinFind More DocumentationFeatured Support Resources | Descargar este libro en PDF (1326 KB)
Chapter 18 Configuring Localized Desktop SessionsTo configure localized desktop sessions, you will need to:
Managing the LANG Environment VariableThe
Note – Support for other languages may have been added by your desktop vendor. You can set There are four ways to set
When Colors—/usr/dt/palettes/desc.language Backdrops—/usr/dt/backdrops/desc.language Setting the Language for Multiple UsersIf you set the language by means
of an Xconfig file, the login screen is localized and 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 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:
The Xconfig file may need to set the Setting the Language for One SessionTo set the language for one session, use the login screen Options menu.
The login screen is localized and Setting the Language for One UserA user can override the login's
LANG=language export LANG
setenv LANG language LANG Environment Variable and Session ConfigurationThe The localized session configuration files are:
Setting Other NLS Environment VariablesBesides
NLSPATH Environment VariableThe Finding FontsFonts included with the desktop are in the /usr/lib/X11/fonts directory. Each directory contains a directory file, fonts.dir, and an alias file, fonts.alias. See the mkfontdir man page for information on creating the fonts.dir and fonts.alias files. To list all fonts available at a server, user the xlsfonts command. To add or delete fonts to the server, use the xset command. Localizing app-defaults Resource FilesThe default location for
the app-defaults file for the desktop clients is /usr/dt/app-defaults/language. For example,
if To change the location of app-defaults, use the If you set Localizing Actions and Data TypesNote – To customize a file in the /usr/dt/appconfig directory, copy the file to the /etc/dt/appconfig directory prior to customizing. The search path for action and data-type definition files includes language-dependent directories in:
The search path for Application Manager's configuration files is:
Localizing Icons and BitmapsTo localize an icon, edit the icon with Icon Editor and save it in: /etc/dt/appconfig/icons/language If you save it in a different directory, set the Localizing Backdrop NamesLocalization of backdrops is done through the use of description files (desc.language and desc.backdrops). No specific localized directory exists (such as /usr/dt/backdrops/language) for backdrop files. All locales use the same set of backdrop files but have their own desc.language file containing the translated names of the backdrops. The description file contains resource specifications for the backdrop names that are translated. For example: Backdrops*Corduroy.desc: Velours Backdrops*DarkPaper.desc: PapierKraft Backdrops*Foreground.desc: AvantPlan The desc.language file is used to retrieve the description of the backdrops for locale language in order to display the backdrop in the Style Manager. If there is a description specification, it will be displayed in the Style Manager backdrops list. Otherwise, the backdrop file name will be used. Users can add their own backdrop descriptions in the HomeDirectory/.dt/backdrops/desc.backdrops file. This file is used to retrieve the backdrop descriptions for all backdrops added by the user regardless of locale. The search path for the description files is:
Localizing Palette NamesLocalization of palettes is done through the use of description files (desc.language and desc.palettes). No specific localized directory exists (such as /usr/dt/palettes/language). All locales use the same set of palette files but have their own desc.palettes file containing the translated names of the palettes. The description file contains resource specifications for the palette names that are translated. For example: Palettes*Cardamon.desc: Cardamone Palettes*Cinnamon.desc: Cannelle Palettes*Clove.desc: Brun The desc.language file is used to retrieve the description of the palettes for locale language in order to display the palette in the Style Manager list. If there is a description specification it will be displayed in the Style Manager palettes list. Otherwise, the palette file name will be used. Users can add their own palette descriptions in the HomeDirectory/.dt/palettes/desc.palettes file. This file is used to retrieve the palette descriptions for all palettes added by the user regardless of locale. The search path for the description files is:
Localizing Help VolumesIf you have localized a help volume, you must store it in one of the following directories. The first help volume found is the one used. The directories are searched in the following order:
Localizing Message CatalogsIf you have localized a message catalog, store it in the following directory: /usr/dt/lib/nls/msg/language. These directories contain the *.cat files. Executing Localized Desktop Applications RemotelyYou can invoke localized desktop applications on any remote execution host that has a similarly localized desktop installation. The values of the NLS-related environment variables on the host that is invoking the application are passed to the remote host when the application is started. However, the environment variables do not contain any host information. Resetting Your Keyboard MapIf you see unexpected characters and behaviors, or characters cannot be displayed or typed, you might need to reset or install your keyboard map or change your input method. The input method is determined by the For example, if the user wants to open a terminal with the C locale within a POSIX shell: LANG=C dtterm This new terminal uses the C locale including the C input method and
fonts. If you are using a language-specific keyboard, the input method may
not accept any extended characters for input. When using the C locale with
a language-specific keyboard, users need to set the For example, to use the C locale with the German keyboard, type: LANG=C LC_CTYPE=DeDE dtterm If the X server has been reset and keymaps have been initialized, you can reset the proper keyboard map at the server using the txmodmap command. |