GETLOCALE

The GETLOCALE function returns the locale setting of the computer.

Syntax:
resourcelib->GETLOCALE ()
Meaning:
GETLOCALE ()
Returns:
A single text item

The GETLOCALE function returns the locale setting of the computer where the map runs. The locale is returned in the format specified by the operating system. Generally, the return format is an ISO Language Code (as defined by ISO-639) in combination with an ISO Country Code (as defined by ISO-3166) when applicable. The language codes are two lowercase letters and the country codes are two uppercase letters. For example, en_US is the code for English (United States).

This function has no arguments but requires parentheses.

Table 1. Examples
System locale Returns
French fr
Korean ko
Brazilian Portuguese pt_BR
Taiwanese Chinese zh-TW