|
|
Using the X Window System > Chapter 3 Preliminary ConfigurationCustomizing for Native Language Support (NLS) |
|
This section covers:
The LANG environment variable must be set in order to use native language support. Setting LANG causes X to use the language-sensitive routines for character handling. You can set LANG to any locale that your system supports. To find out what locales are available to your system, type:
To find your current language settings, type:
To set the LANG variable:
(This shows the ksh commands. If you are using another shell, use the appropriate command for setting environment variables in that shell). This example sets the LANG variable to Spanish:
This section covers other NLS environment variables. It provides an overview only. For detailed information, refer to X Toolkit Intrinsics Programming Manual. The NLSPATH environment variable determines the paths applications search for NLS message catalogs. X clients place NLS message catalogs in client-specific locations, allowing translated catalogs to be shared. For example, HP VUE's Vuepad places its catalog in the /usr/lib/nls/msg/$LANG directories. It shouldn't be necessary to set NLSPATH unless the message catalogs are installed in non-standard locations. The proper value of NLSPATH depends on whether message catalogs exist for the current value of LANG. The XUSERFILESEARCHPATH environment variable controls where X applications look for their app-defaults resource files. The default app-default location is :
If your app-defaults is in any other location, you need to set the XUSERFILESEARCHPATH, XAPPLRESDIR, or XFILESEARCHPATH variables described later in this section. For example, to use Japanese app-defaults you would set XUSERFILESEARCHPATH to /usr/lib/X11/ja_JP.eucJP/app-defaults. Or, you could set XAPPLRESDIR to /usr/lib/X11/%L/app-defaults and LANG to "ja_JP.eucJP". If LANG is not set, %L defaults to null. If you set XUSERFILESEARCHPATH in $HOME/.profile, the value applies to all X clients you run. Non-clients will not find their resource files unless you link or copy them into the directory specified by XUSERFILESEARCHPATH. X allows you to override the physical keyboard attached to the HP-HIL. Some applications use the environment variable KBD_LANG allowing you to change the keyboard mapping to that of another national language keyboard.
This variable can be set after the server has started. The NLIO processes for Asian users start only when either the physical keyboard is Asian or KBD_LANG is set to an Asian language. The XBMLANGPATH variable specifies the search path for language-dependent bitmaps. It lists the paths for bitmaps in this order:
When LANG is set, mwm uses the following language-dependent default resource file:
|
|