Creating a template with content in different languages

You can design a template with the language of your choice, translate a template from one language to another, or use an existing template that contain multiple languages to design a new template. You can edit the templates in different languages. The translation tool helps you to adapt a template to your language. You can view these templates in different languages using the IBM® Rational® Publishing Engine Launcher.

Procedure

To create a template with multiple languages in Document Studio:

  1. In Document Studio, click File > New > Document Template.
  2. Add elements such a Container, Paragraph, Text, Hyperlink, and then enter some values in these elements. For example, enter English in the Text element, and www.default.english.com in the Hyperlink element.
  3. To save your changes, click File > Save and name the template. Example: demo.dta
  4. Click Template > Add Template Language.
  5. Select a language from the list and click OK. The selected language appears beside the template name: demo.dta - French. Also, the following message appears in the Console panel The Template Language properties have been set to French.
  6. Modify and translate the text values in the elements. For example, enter French in the Text element, and www.default.french.com in the Hyperlink element.
  7. Click File > Save.
  8. Click File > Open Document Template > Browse and select demo.dta. Click OK .
  9. Select Open the Template as this Language properties, select French from the list and click OK. The demo.dta - French opens displaying the added French elements.
    Note: Repeat steps 4 - 8 to add additional languages.

What to do next

  1. In the Document Specification view, expand Templates and click a template.
  2. In the Properties view, click translation and, in the Value column, the select a language from the list. The language list displays based on the number of templates created in different languages.

Creating a template from an existing template that contains multiple languages

Procedure

  1. In Document Studio, click File > New > New Template Wizard.
  2. Click Next and select Create a new Template starting from an existing base Template.
  3. Browse for an existing template, for example, demo.dta, add the Name and Description and click OK.
  4. Complete the rest of the steps in the wizard using the required settings and save the template with a new name. For example, demo1.dta.
  5. On the menu, click Template > Add Template Language.
  6. Select a language from the list and click OK. For example, Japanese. The selected language appears beside the template name. Example: demo.dta - Japanese
  7. Modify and translate the text values in the elements. For example, enter Japanese in the Text element, and www.default.japanese.com in the Hyperlink element.
  8. Save the changes.
  9. Click File > Open Document Template > Browse, select demo1.dta, and click OK.
  10. Select Open the Template as this Language properties, select Japanese from the list, and click OK. The demo.dta - Japanese template opens displaying the Japanese elements in addition to the English elements from the original template.

Importing language properties from another template

Procedure

  1. Select Template > Import Template Translations.
  2. Click Browse and select a template.
  3. To overwrite the current template properties with the language properties of the selected template, click Overwrite existing translations if exits.
  4. Click OK. The properties in the selected template are transferred to your current template.

Exporting language properties to another template

Procedure

  1. Click Template > Export Template Translations.
  2. Click Browse and select a template.
  3. To overwrite the current template properties with the language properties of the selected template, click Overwrite existing translations if exits.
  4. Click OK. The properties of your current template are transferred to the selected template.

Feedback