Retrieves the locale associated with the map execution context.
Syntax
Locale getLocale()
Parameters
None.
Return values
Returns a Locale object that contains the language and country code for the
Exceptions
None.
Notes
This method must be run on the map variable of MapExeContext type, which is named cwMapCtx when generated by the system, or which you name when calling a map in an environment that does not automatically generate map code (such as within a collaboration).
Examples
The following example retrieves the locale of the map execution context into a variable and then reports it with a trace statement:
Locale mapLocale = cwMapCtx.getLocale(); String mapLocaleToString = mapLocale.toString(); trace(3, "THE MAP LOCALE IS: " + mapLocaleToString);
See also