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"