A locale represents a geographic place. A user‘s geographic location implies certain preferences for operating system and application settings, such as language character sets, date, time, and currency formats, and the direction in which text is displayed.
The default locale for a Lotus® Expeditor application is the same as the locale for the operating system of the machine on which the client is running. If you design your application to support multiple locales, the user can specify -nl <locale code>
as a command line option when starting the client to change the default locale for the client application running on their machine.
Things to keep in mind when implementing support for multiple locales:
- Call java.util.Locale.getDefault() to get the current locale. If a user supplies the -nl parameter when starting the client, it resets the default locale value. Calling java.util.Locale.getDefault() would return the newly specified locale code.
- Use icu4j whenever possible to generate locale-sensitive data dynamically. The ICU4J classes provide the following objects among others:
- Do not expect the same behavior you witness in the locale you are developing in to occur in another locale. For example, "i".to UpperCase() does not return "I" in the Turkish locale.
- Keep in mind that sort orders vary in each locale. Call com.ibm.icu.text.Collator to compare international text.
The Javadoc information for the icu4j.jar package is available in the Javadoc.
Parent topic: Globalizing your application: XPD621