OpenWGA 7.10 - TMLScript reference

Method :

getLabelBundle([[container, ]file, ] language)

On object Design
Usage Retrieves all labels of a label file from the design in a specific language

This method can be used when labels should be retrieved with manually specifying the language.

The method returns a Java object of type java.util.PropertyResourceBundle which contains all the labels that are defined in the given label file. Labels may be retrieved using the getString(key) method of this object.


container (String, optional):

The label container from which to load the label file. Defaults to "labels" if omitted.

file (String, optional):

The label file to load. Defaults to "general" if omitted.

language (String):

Code of the language in which to load the bundle.

Writable False
Return value A Java object java.util.PropertyResourceBundle containing all loaded labels. Null if the label file does not exist in the given language and container.
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events

Retrieving a label "title" from label file "gui" in language "en":"gui", "en").getString("title")