Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax
Scripting_function


Panel
titleDescription

Sets the user's current Localelocale. Any valid Java locale code (case-insensitive) can be used as a parameter, including ones that have not yet been added to the Translation Manager. An invalid locale code will cause an Illegal Argument Exception.

Client permissions restrictions


Panel
titleClient Permission Restrictions

This scripting function has no Client Permission restrictions.

Panel
titleSyntax

system.util.setLocale(locale)

  • Parameters

String locale - A locale code, such as 'en_US' for US English.

  • Returns

nothingNothing

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
# This script will set the client locale to Arabic.
 
system.util.setLocale('ar')
Panel
titleKeywords

system util setLocale, util.setLocale