Localization is the process of adapting a product to a specific cultural environment. This process usually involves the following tasks:
Localization might also include the translation and production of end-user documentation, packaging, and collateral materials.
To localize a database application, you create a database application for a specific language, territory, and code set. Localization involves the following tasks:
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 a GLS locale is provided 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:
ESQL/C creates client applications. Therefore, the current processing locale for ESQL/C applications is the client locale.
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:
Examples include error messages, informational messages, menu items, and button labels.
Examples include constants, filenames, and literal characters or strings.
Examples include yes and no responses.
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:
The new external files contain the translated versions of the strings that the application uses.
The INFORMIXDIR environment variable indicates the location where the IBM Informix products are installed. You can use the rgetmsg( ) and rgetlmsg( ) functions to obtain IBM Informix product messages. For more information on these functions, see the IBM Informix: ESQL/C Programmer's Manual.