system.util.getLocale
This function is used in Python Scripting.
Descriptionβ
Returns the current string representing the user's Locale, such as 'en' for English.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.util.getLocale()
Parametersβ
Nothing
Returnsβ
String - String representing the user's Locale, such as 'en' for English.
Scopeβ
Vision Client
Code Examplesβ
Example #1
# print a test if they are using English
locale = system.util.getLocale()
if locale == "en":
print "Using English"