Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

Multilingual Data

Multilingual data is expressed in scripting as a dictionary where language names appear as keys, and the data itself as values.

Details

When working with multilingual models, we often need to provide text-typed daty in multiple languages. For example, setting a model element name or definition in a multilingual type model would require that we provide the data to be set in each of the model languages.

To achieve this, we use a dictionary, where language names appear as keys, and localized data appear as values. Look at the following example:

create class [en_GB: Building, es_ES: Edificio];
alter class as definition [en_GB: "A permanent structure with a roof.", es_ES: "Estructura permanente con cubierta."];

In this example, the class name provided in line 1 is the identifier dictionary [en_GB: Building, es_ES: Edificio], which contains two elements, one for each language in the model. Note that the class name in English, Building, is provided as a value for the en_GB key, and the class name in Spanish, Edificio, is similarly provided for the es_ES key.

Similarly, the definition in line 2 also uses a dictionary to provide the necessary text values.

See Also


Contents distributed under a Creative Commons Attribution 4.0 International License · About · Terms of Use · Contact Us · last updated on 08 October 2020