Client-Library applications can use custom localization values at the context, connection, and data element levels.
An Open Client/Server application sets up custom localization values by:
Calling cs_locale to load a CS_LOCALE structure with specific localization values.
Using the loaded CS_LOCALE to customize a context, connection, or data element.
The following table is intended to help you decide how to use custom localization values in your application:
If |
Then |
For more information |
---|---|---|
The application needs just a single set of custom localization values (but, for whatever reason, it cannot use its initial localization values). |
Customize at the context level. You can use the same CS_LOCALE structure to customize multiple contexts. |
|
Different contexts in the application require different localization values. |
Customize each context. Use different CS_LOCALE structures to customize different contexts. |
|
Specific connections need to use localization values that differ from their parent context’s localization values. |
Customize those connections. |
|
Bind variables, conversion destination variables, or specific routines need to use custom localization values. |
Customize the variables or routines. |