2022.1

Table Of Contents
pane or use the Sync button on the "Translations pane" on page1138 to restore the
connection.
Note that placeholders (e.g. @Name@) in the template will get replaced with data before
translation takes place. If a translation entry contains a placeholder, the text will then no
longer match the translation entry.
Also note that, by default, all text in a Dynamic Table cell is replaced with data. To
prevent this, use the technique described here: "Mixing text and data in one cell" on
page875.
Same text, different translation: add a context
Should the same text be translated differently in different locations? Then you need to add a
'context' to the translation entry:
1. Double-click the translation entry, or select an element and press the Ctrl key when you
click the Tag Element button.
Tip
Pressing the Ctrl key when you click the Tag Element button opens the Translation
String Options dialog.
2. In the Context field, describe where the source text is used, for example: "This text is in
the head of a table", or "Table|Head"
The description is added to the <data-translate> attribute of the HTMLelement in which the
source text is located, as its value, for example: <data-translate="Table">.
Note that a translation will only be applied if the value of the <data-translate> attribute of the
respective HTML element is exactly the same as the given Context (case-sensitive).
Tagging text in snippets
If the text that you want to tag for translation is located in a snippet, do not tag it in the section
where the snippet is used. Instead, open the snippet (see "Snippets" on page775) and tag the
elements inside the snippet as described above.
Page 996