Translating an existing business vocabulary

To translate an existing vocabulary that is defined on the BOM, you can copy the vocabulary file or edit the verbalizations.

About this task

You can translate an existing business vocabulary by either making a translated copy of the .voc file or editing the class and member verbalizations.

Procedure

  1. To translate a vocabulary by using the .voc file:
    1. In Rule Designer, switch to the Resource Perspective by clicking Window > Open Perspective  > Other > Resource.

      In the navigator tree, the BOM is displayed as a set of three files:

      • model_en.voc

      • model.b2x

      • model.bom

    2. Right-click the .voc file, and then click Copy.
    3. Right-click the .bom folder, and then click Paste.

      A Name Conflict dialog opens, prompting you to rename the file.

    4. In the Name Conflict dialog, replace the language identifier of the file with the language identifier of the translation language. For example, if your BOM entry is named model and you want to translate it to French, name the file model_fr.voc.
    5. Click OK.
    6. In the navigator tree view, right-click the new .voc file, and then click Open With  > Text Editor.

      The text definition of the vocabulary opens in the Text Editor.

    7. You can now translate the vocabulary by translating the values of the vocabulary keys into the target language.
    8. Save the BOM.

      Now when you launch Rule Designer in your target locale, the specified locale becomes the locale for both the vocabulary and the business rule project items.

  2. To translate a vocabulary by using the class and member verbalizations:
    1. Open Rule Designer in the target locale.
    2. Open the BOM editor.
    3. Edit the class and member verbalizations.
    4. Save the file.

      You now have a vocabulary for the target locale.