Gets the language currently used on the display client.
Syntax
STRING GetLanguage(INT iType)
iType
The type of language information to be returned:
0 (default) — the name of the current language as defined in the project. For example, "English (United States)" or "French (France)".
1 — the country language code of the current language. Includes the language code (ISO-639) and country code (ISO-3166), for example:
Return Value
The specified information describing the language that is currently in use.
Related Functions
Example
// login a user -> Login("Engineer","citect",1,"German(Germany)")
STRING sLanguage;
sLanguage = GetLanguage(0) // will return German(Germany)
sLanguage = GetLanguage(1) // will return de-DE
See Also
Published June 2018