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

Returns a collection of strings representing the Locales added to the Translation Manager, such as 'en' for English.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.util.getAvailableLocales()

  • Parameters

Nothing

  • Returns

List - A list of Java Locale objects.

  • Scope

Vision Client

Code Examples
#This code will take all of the available locales, and put them into a text field on the same window.
 
collection = system.util.getAvailableLocales()
locales = ''
for locale in collection:
	if locales == '':
		locales += locale
	else:
		locales += ", " + locale
event.source.parent.getComponent('Text Field').text = locales
Keywords

system util getAvailableLocales, util.getAvailableLocales