Designing templates with 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 containing multiple languages to design a new template. You can edit the templates in different languages. The translation tool helps you to easily adapt a template to your region specific language. You can view these templates in different languages using the IBM® Rational® Publishing Engine Launcher.

Procedure

To create a new template with multiple languages in Document Studio:

  1. In RPE Studio, on the menu, click File > New > Document Template.
  2. Add a few elements such a Container, Paragraph, Text, Hyperlink and enter some values in these elements. For example, enter English in the Text element, www.default.english.com in the Hyperlink element.
  3. Click File > Save. For example, demo.dta.
  4. On the menu, click Template > Add Template Language.
  5. Select the desired language from the list and click OK. For example, French. The selected language appears beside the template name, for example, demo.dta - French. Also, the following message appears in the Console panel The Template Language properties has been set to French.
  6. Modify and translate the text values in the elements. For example, enter French in the Text element, www.default.french.com in the Hyperlink element. Click File > Save.
  7. On the menu, click File > Open Document Template >Browse (demo.dta) > OK .
  8. 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 to 8 to add additional languages.

What to do next

  1. In the Document Specification panel, expand Templates and click Template. This is the template which you have loaded. The Properties of the selected document specification displays.
  2. In the Properties panel, click translation and select the required language from the list in the Value column. The language list displays based on the number of templates created in different languages.
For more information, see Generating documents in different languages.

Creating new template from an existing template containing multiple languages using the template wizard

Procedure

  1. In RPE Studio, on the menu, click File > New > New Template Wizard.
  2. Click Next and select Create a new Template starting from an existing base Template. Browse for an existing template, for example, demo.dta, add the Name and Description and click OK.
  3. 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.
  4. On the menu, click Template > Add Template Language.
  5. Select the desired language from the list and click OK. For example, Japanese. The selected language appears beside the template name, for example, demo.dta - Japanese.
  6. Modify and translate the text values in the elements. For example, enter Japanese in the Text element, www.default.japanese.com in the Hyperlink element. Click File > Save.
  7. On the menu, click File > Open Document Template > Browse (demo1.dta) > OK.
  8. Select Open the Template as this Language properties, select Japanese from the list and click OK. The demo.dta - Japanese opens displaying the added Japanese elements as well as the English elements from the original template, which is demo.dta.
    If you want to import the languages from another template into your template:
    1. Select Template > Import Template Translations.
    2. Browse for the directory and select Overwrite existing translations if exits , if you want to your current template properties to be overwritten by the language properties of the templates in the selected directory.
    3. Click OK. The properties templates available in the selected directory will be transferred into your current template.
    If you have a template with different languages and want to export these languages into another set of templates:
    1. Select Template > Export Template Translations.
    2. Browse for the directory and select Overwrite existing translations if exits , if you want to your current template properties to overwrite the language properties of the templates in the selected directory.
    3. Click OK. The properties of your current template will be transferred to the templates available in the selected directory.

Feedback