Localization
96 Adaptive Server Enterprise
• platform_locale is the platform-specific keyword for a locale. For
acceptable values, see your operating system documentation.
When the locale being defined as the default for the site, platform_locale
is “default.”
• syb_language is the name of the language directory to be used from within
$SYBASE/locales/language_name.
• syb_charset is the character set name that determines the character set
conversion method and identifies the directory location of the message
files for clients from within
$SYBASE/locales/language_name/charset_name.
For example, the following entry specifies that the default locale uses
us_english for the language and iso_1 for the character set:
locale = default, us_english, iso_1
How client applications use locales.dat
Client applications use the locales.dat file to identify the language and
character set to use. The connection process follows these steps:
1 When a client application starts, it checks the operating system locale
setting and then checks the locales.dat file to see if that setting is
appropriate for Adaptive Server. For example, a locale entry for French
can look like the following:
locale = fr_FR, french, iso_1
2 When the client connects to Adaptive Server, the language and character
set information is passed to Adaptive Server in the login record.
3 Adaptive Server then uses:
• The character set information, for example, iso_1, to identify the
client’s character set and verify whether it can convert character data
to this character set
• The language (in the preceding example, French) and character set
information to see if it has messages in the client’s language
Note Adaptive Server software includes some locale entries already defined in
the locales.dat file. If these entries do not meet your needs, you can either
modify them or add new locale entries.