![]() |
|
This section describes how to internationalize and localize client applications. To internationalize a client application, Informix recommends that you use Informix GLS, which is an application programming interface (API) for applications that use a C-language interface. For information about Informix GLS, see GLS Support by Informix Products and the Informix GLS Programmer's Manual.
Internationalization is the process of creating or modifying an application so that you point the application to the correct GLS locale to support different languages, territories, and code sets without changing or recompiling the code. This process makes Informix database applications easily adaptable to any culture and language.
For a database application, you perform internationalization on the application that accesses a database, not on the database. The data in a database that the application accesses should already be in a language that the end user can understand.
To internationalize a database application, design the application so that the tasks in the following table do not make any assumptions about the language, territory, and code set that the application uses at runtime.
An internationalized application dynamically obtains language-specific information for these application tasks. Therefore, one executable file for the application can support multiple languages.
To localize a database application, you create a database application for a specific language, territory, and code set. Localization involves the following tasks:
Important: An internationalized application is much easier localize than a non-internationalized application.
To localize your application, choose a locale that provides the culture-specific information for the language, territory, and code set that the application is to support. For information about locales, see Setting a GLS Locale.
An internationalized application makes no assumptions about how these locales are set at runtime. Once the application environment specifies the locales to use, the application can access the appropriate GLS locale files for locale-specific information. As long as Informix provides a GLS locale that supports a particular language, territory, and code set, the application can obtain the locale-specific information dynamically.
The current processing locale (sometimes called just the current locale) is the locale that is currently in effect for an application. It is based on one of the following environments:
The current processing locale for DataBlade client applications is the client locale. The current processing locale for DataBlade UDRs is the server-processing locale, which the database server determines from the client, database, and server locales.
An internationalized application should not have any language-specific text within the application code. This language-specific text includes the following kinds of strings:
In an internationalized application, these strings appear as references to external files, called resource files or message files. To localize these strings of the database application, you must perform the following tasks: