Skip to main content
Version: 7.9

system.util.getAvailableLocales

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

None

Returns

Collection - A collection of all the Locales added to the Translation Manager.

Scope

Client

Code Examples

Example #1
#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