About Arbortext Styler > Adding Generated Text > Maintaining Translations of Generated Text > Managing Translation Units
  
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 Translation > Based on Text Content 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 Translation > Do Not Translate menu option. This will remain checked in the menu until it is manually changed.
Refer to Turning Translations On and Off for further information.
4. Choose the Translation > Add Note 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 The Translation Note icon — a yellow speech box to confirm it is accompanied by a note.
Double click the icon of an existing note to edit it in the Translation Note Dialog Box.
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.