Creating a multi-language template

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 designed for multi-language selection:

  1. Design a template in your preferred language:
    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: template.dta
  2. Click Template > Add Template Language.
  3. Select a language from the list and click OK. The selected language appears beside the template name: template.dta - French. Also, the following message appears in the Console panel The language properties are set to French.
  4. 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.
    Note: If you make structural changes to the template, those changes are applied to all language versions of the template.
  5. Save the changes.
  6. Optional: Repeat to add additional languages.

Results

There is still one template .dta file only, but that template file can now be opened or generated into different languages, which in this example are English and French.

What to do next

When the template is opened by you or another user in Document Studio, you can select which language to load the template in. There is no default language for a template. If you select Ignore the template translations, whatever language the template was originally designed in opens.

Window to open the template in French

When you generate a document in the Launcher application, you can select a language to generate the template in. For more information, see Generating documents in different languages.

Exporting language properties to import into another template

If you are commonly creating templates in the same selection of languages, you can export the languages selected for one template, and import that selection of languages in another template. The contents of the templates are not reused, only the language names so that you can select from them upon opening a template.

Procedure

  1. Click Template > Export Template Translations.
  2. Click Browse and select a directory to store the language properties files.
  3. Optional: To overwrite the current template properties with the language properties of the selected template, click Overwrite existing translations if exits.
  4. Click OK. The languages you chose for your current template are stored as individual properties files for you to reuse in other templates.

What to do next

After you export language properties files from a template, you can import them into another template.

Importing language properties that were exported from another template

If you are commonly creating templates in the same selection of languages, you can import the languages that was selected and exported from another template.

Before you begin

You must have exported language properties from another template before you can import them.

Procedure

  1. Select Template > Import Template Translations.
  2. Click Browse and select the directory that contains the exported language properties files.
  3. Optional: To overwrite the languages in the current template with the languages from the selected directory, click Overwrite existing translations if exits.
  4. Click OK. The properties in the selected template are transferred to your current template.

What to do next

When the template is opened by you or another user in Document Studio, you can select which language to load the template in. There is no default language for a template. If you select Ignore the template translations, whatever language the template was originally designed in opens.

Window to open the template in French


Feedback