2022.1

Table Of Contents
Translating content via a script
If a template has been prepared for translation, personalization scripts that add content to the
output may translate that content using the "translate()" on page1465 function.
Tagging elements for translation
In order to mark text for translation, you have to tag the HTML element that holds the text.
When you add elements, such as text, images or a table, to the content of a template, you are
actually constructing an HTML file. It is possible to edit the source of the HTML file directly in
the Designer; see "Editing HTML" on page666.
However, to tag an element for translation, you don't have to go into the Source view.
1. Place the cursor in the text that should be translated and select the HTML element in the
breadcrumbs (see "Selecting an element" on page669) or select the element via the
Outline view. Elements that contain text are paragraphs, headings, table cells, buttons,
labels etc.
2. Open the Translations pane. If it isn't visible, select: Window > Show View >
Translations from the menu.
3. Click the Tag Element button in the toolbar of the Translations pane. This adds the
data-translate attribute to the element. (Attributes are visible on the "Source tab" on
page1142.)
If there was no translation entry with the same text already, the text of the tagged element is
copied to a new translation entry on the Translations pane.
One translation entry works for all HTML elements that are tagged for translation and have
exactly the same text.
Note
Remember, only text in HTML elements that are tagged for translation get translated in
the output.
Changing the text in a tagged element will break the relationship with the translation
entry. This means that the text will not be translated. Edit the entry in the Translations
Page 995