GetLanguage
- Last UpdatedJul 18, 2023
- 1 minute read
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:
• "en-US" for English (United States)
• "fr-FR" for French (France).
Return Value
The specified information describing the language that is currently in use.
Related Functions
Example
// login a user -> Login("ConfigUsers","SCADA",1,"German(Germany)")
STRING sLanguage;
sLanguage = GetLanguage(0) // will return German(Germany)
sLanguage = GetLanguage(1) // will return de-DE