About Arbortext Styler > Adding Generated Text > Maintaining Translations of Generated Text > Language Settings for Generated Text Translation
Language Settings for Generated Text Translation
To enable a translation of the generated text in your stylesheet, the first step is to configure the language settings that will support the translation process. Language definitions are specified in the Language tab of the Stylesheet Properties dialog box. Here you can make two types of language setting that will support the translation of generated text:
1. Specify the element or attribute that should be analyzed for language information in all documents to be published via the stylesheet. This can be set for the whole document, or reviewed at individual element level throughout the document
2. Specify the source and target languages with which generated text translation should work:
Source language: the language in which generated text is authored
Target language: the languages into which generated text is translated
You must ensure that all modules of a stylesheet have the same generated text source language. See Managing Translated Generated Text in Stylesheet Modules for information on how this is monitored by Arbortext Styler.
See Language Settings for additional information.
Once you have made these settings, Arbortext Styler will be able to recognize which language version of generated text should be output on each context that contains a generated text definition. When it encounters generated text Arbortext Styler will assess the document language that is in effect for the particular context, based on the document language specification you made, and output the required source or translated version.
This example describes how to set the language properties for a stylesheet. It will specify that the default document language of a document is English, and that language information should be assessed at individual element via the xml:lang attribute. Further settings will stipulate that generated text is authored in English, and should be translated into French and Spanish.
1. Refer to the Language tab of the Stylesheet Properties dialog box.
2. In the Default document language field, select en (English) from the drop down menu.
3. In the Document language specification method field, select the Attribute option. Enter xml:lang in the Language attribute name field.
4. In the Point of language specification field, select the Any element option.
5. In the Source language field of the Generated text group, select en (English) from the drop down menu.
6. In the Target Languages field, click the Add button to open the Add Target Language dialog box. In the Language field, enter fr (French) as the first required target language. You can select it from the drop down list or enter the value manually. Click OK to exit the dialog box. You will see that the fr (French) now appears in the Target Languages field.
Repeat this step for es (Spanish).
7. Click OK to exit the Stylesheet Properties dialog box. Save your stylesheet to save the language settings.
The next step in setting up translation of generated text is to specify the pieces of generated text in your stylesheet that will be translated. Refer to Managing Translation Units.