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:
- Design a template in your preferred language:
- In Document Studio, click .
- 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.
- To save your changes, click and name the template. Example: template.dta
- Click .
- 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.
- 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.
- Save the changes.
- 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.
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.