Creating a Program to Run in a Localized Environment

When creating a program that you intend to use in an internationalized environment, you code as you normally would for any other program. You must make sure, however, that you call the IlsSetLocaleOnce global function at the beginning of your program (or the global function IlsIlvSetLocale if using Server and Views). This call should appear before any other calls to Server (or Views). The IlsSetLocaleOnce call is necessary for Server to set up the underlying information it needs to run correctly in the default locale environment.

Note

If you do not have a call to the function IlsSetLocaleOnce in your program, the localized messages may not appear on the screen and multibyte support will not be enabled. Your program will behave as if you are running in the C locale, thus displaying only English messages.