Dictionaries

You can add dictionary definitions to specify the translation of terms to use in your solution and their plural form and gender. You can also define a generic dictionary to specify the plural form and gender of English terms.

You write the business model definitions in English, but you can specify the translation for the names of your objects to use them in the language of your solution. You select the language for your solution when you create it. For example, if you selected French as the language of your solution, you can specify the French translations of the names of your objects in a dictionary to use them in rules that you write entirely in French.

To specify the translation of a term, you use the following syntax:

<solution language> dictionary:
    use <translation> for <English term>.

To specify the translation of a term, its gender and or its plural form, you use the following syntax:

<solution locale> dictionary:
    use <translation> for <English term> with gender <value> and plural <plural form>,
    use <translation> for <English term> with gender <value>,
    use <translation> for <English term> with plural <plural form>.

You can also use a dictionary definition to define the plural form and the gender of English terms in one place. To specify the plural form and the gender of an English term, you use the following syntax:

English dictionary:
    use <English term> with gender <value> and plural <plural form>.

Examples

The following example shows the dictionary definitions of the French terms for car, driver, and status:
French dictionary:
    use voiture for car with gender feminine and plural voitures,
    use conducteur for driver with gender masculine,
    use statut for status.

The following example shows the dictionary definitions for English terms:

English dictionary:
    use child with plural children,
    use man with gender masculine and plural men.