Versions Compared

Key

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


Panel
titleDescription

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

Client permissions restrictions


Panel
titleSyntax

system.util.getAvailableLocales()

  • Parameters

noneNothing

  • Returns

List - A list of Java Locale objects.

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
#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
Panel
titleKeywords

system util getAvailableLocales, util.getAvailableLocales