currentLocale

Type: Locale

Availability: Read-only

For an active application, the currentLocale property of the Application class contains a reference to the Locale object for the locale under which the application is running. This reference is an instance of Locale defined in the current schema, and it provides forms and translatable strings.

The currentLocale reference is set when an application is initiated and it is automatically updated if the locale of the workstation on which the application is running is changed.

When the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file on the database node is set to true, the locale number of this instance can be different from the value returned by the Schema class getCurrentLocaleId method if the setJadeLocale method has been called with a locale not found in the schema. When the EnhancedLocaleSupport parameter is not defined or it is set to false and a locale is set using the setJadeLocale method of the Application class, the currentLocale property is changed but the currentLocaleInfo property remains unchanged.

When you have applications with imported packages, you must use the Process class getProcessApp method to determine the current locale of the process; that is, by calling process.getProcessApp.currentLocale.