getCurrentLocaleId

getCurrentLocaleId(): Integer;

The getCurrentLocaleId method of the Schema class returns the current locale identifier (LCID) of the application process when enhanced locale support is enabled; otherwise it returns the identifier of the current locale.

When the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file on the database node is set to true and this method is called after the Application class setJadeLocale method, the returned value is the new value returned in the setJadeLocale method requestedLcid parameter. In addition, when enhanced locale support is enabled, the JadeLocaleIdNumbers category LCID_SessionWithOverrides global constant enables you to retrieve information from the session locale without having to save the initial locale for the call.

The current localeID value that is returned may be different from the number property in the Application class currentLocale property, if the setJadeLocale method has been called with a locale not found in the schema.