
22
Internationalization
In this chapter, I discuss the features in XView that allow applications to be international-
ized. For additional information on internationalization for XView Version 3.2, refer to the
XView 3.2 Developer’s Notes, Part II “Internationalization,” distributed by Sun Microsys-
tems, Inc. It describes the internationalization modifications by package as well as XView’s
wide character support. Internationalized applications do not have to be redesigned or
recompiled to run in a different language or locale. The goal is to make a single object ver-
sion of an application support any number of languages. The attribute XV_USE_LOCALE
enables the internationalization features. All internationalized applications must set this
attribute to TRUE.
The basic idea in internationalization is to separate language-specific data from the rest of
the application code. Adapting the application to any supported language, or localization,
then requires modification of only the language-specific data. The task of internationaliza-
tion includes translation of application-specific strings and modification of layout files. All
other aspects of the user interface are handled by XView.
The internationalization features discussed in this chapter are:
Locale Setting
Before running an internationalized application, a user must choose what language
to run in. This is done by the locale setting mechanism ...