User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Skip to end of metadata
Go to start of metadata

This function is used in Python Scripting.

Description

Sets the user's current locale. 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 Permission Restrictions

This scripting function has no Client Permission restrictions.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.util.setLocale(locale)

  • Parameters

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

  • Returns

Nothing

  • Scope

Vision Client

Code Examples
# This script will set the client locale to Arabic.
 
system.util.setLocale('ar')
Keywords

system util setLocale, util.setLocale