Gateway Locales; Support For Multiple Locales; Setting Up Locales For Translation - Red Hat DIRECTORY SERVER 7.1 - GATEWAY CUSTOMIZATION Manual

Gateway customization guide
Table of Contents

Advertisement

Gateway Locales

This works around a problem with Japanese NT, which garbles environment variables that
are in UTF-8 (or any charset except
the gateway CGI programs in environment variables, but the query string environment
variable
of view, it's ASCII).
Gateway Locales
The gateway's default language is US English.

Support for Multiple Locales

A single gateway instance supports clients in multiple locales concurrently.
Support for multiple locales is accomplished by translating documentation (including
online help), the string resource database, and the configuration and HTML template files.
A single copy of the compiled code handles all supported locales.
Locale-dependent information is stored in translated files stored in subdirectories
identifying the locale name. These editable files are stored separately from the gateway
code. For example, the German translation of
config/de/search.html
config/fr/search.html
config/ja/search.html

Setting Up Locales for Translation

The default gateway can be configured to support locales in addition to English (the
default locale), French, German, Spanish, and Japanese. This is part of the overall
localization effort, which includes localizing all the configuration and HTML files,
including the online help and the string resource database. This is made possible by
including a pointer to the mapping table in the
during Directory Server installation in the
serverRoot/clients/dsgw/config/lang
46
Red Hat Directory Server Gateway Customization Guide • April 2005
is URL-encoded, so it can handle UTF-8 (from Windows' point
$QUERY_STRING
, the French translation is stored in
, and the Japanese translation is stored in
.
). The Web server passes information to
Shift_JIS
config/search.html
dsgw-l10n.conf
directory:
lang
is stored in
file, which is stored

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents