system.util.getLocale

Description

Returns the current string representing the user's Locale, such as 'en' for English.

Syntax

system.util. getLocale()

  • Parameters

none

  • Returns

String

  • Scope

All

Code Examples
Code Snippet
# print a test if they are using English
locale = system.util.getLocale()
if locale == "en":
print "Using English"