Managing Translation Units
A translation unit is a body of text that will be translated as one item. In Arbortext Styler, any text you edit in a generated text window is translatable, and the entire contents of the generated text window is a single translation unit.
Arbortext Styler creates a translation unit when you configure generated text, and assigns it a unique ID when the generated text is saved. You then have the option to mark the translation unit for translation, and you can decide this on an individual unit basis. You can also add a note for the translator. Those translation units that are marked in the stylesheet as needing translation will be included in the XLIFF file(s) created when you elect to export generated text for translation. Each unit is exported with its unique ID and its accompanying note. Once the content of each translation unit has been translated, you import the XLIFF file back into your stylesheet. During the import process, the presence of the individual IDs generated for each translation unit on creation enable Arbortext Styler to match the correct target in the XLIFF file with its original source in the stylesheet.
You will see a warning message when you attempt to import generated text translations based on units that are not uniquely identified. This includes modules that you add to your stylesheet.
In this example you will create a piece of generated text and save it to generate a translation unit. You will confirm that the translation unit is marked as needing translation. You will add a note for the translator.
1. In Arbortext Styler create a piece of generated text for an element or context in your stylesheet. Apply the changes but do not exit the generated text editor window. Arbortext Styler will create a translation unit and assign it a unique ID, although you cannot see it.
2. Refer to the > menu option in the generated text editor window. You will see that the menu option is suffixed with Arbortext Styler’s assessment of whether the translation unit needs translation, for example Based on Text Content (Translate).
3. If you agree with this assessment, exit the menu. If you do not want the translation unit to be included when you export generated text for translation, choose the > menu option. This will remain checked in the menu until it is manually changed.
4. Choose the > menu option in the generated text editor window to open the
Add Translation Note dialog box. Enter your note and exit the dialog box. Your translation unit will now display an icon
to confirm it is accompanied by a note.
5. Apply the changes and exit the generated text window.
The next step in setting up translation of generated text is to export the generated text for translation. Refer to
Exporting Generated Text for Translation.