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
-
To translate a vocabulary by using the .voc file:
-
In Rule Designer, switch to the
Resource Perspective by clicking .
In the navigator tree, the BOM is displayed as a set of three files:
-
model_en.voc
-
model.b2x
-
model.bom
-
Right-click the .voc file, and then click Copy.
-
Right-click the .bom folder, and then click Paste.
A Name Conflict dialog opens, prompting you to rename the file.
-
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.
-
Click OK.
-
In the navigator tree view, right-click the new
.voc file, and
then click .
The text definition of the vocabulary opens in the Text Editor.
-
You can now translate the vocabulary by translating the values of the vocabulary keys into the
target language.
-
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.
-
To translate a vocabulary by using the class and member verbalizations:
-
Open Rule Designer in the target
locale.
-
Open the BOM editor.
-
Edit the class and member verbalizations.
-
Save the file.
You now have a vocabulary for the target locale.