2019.1

Table Of Contents
3.
Export the entries on the Translations pane to a .pot file. See "Exporting a file for
translation (.pot)" on page857.
4. Open the .pot file in a translation tool (e.g. Poedit), translate the texts and/or enter the (text
with) plurals.
Or, if you work with a translator or translation agency, send them the .pot file.
The result is a .po file (one per language).
5. Import the .po file or files. See "Importing translations (.po)" on page857.
6. Set the template's Locale, or select the field that contains a Locale value, in order to get
output in the correct language. See "Changing the locale" on page758.
Translating snippets
"Snippets" on page713 get translated when they are inserted in the output, if the text is tagged
for translation (see "Tagging text in snippets" on page854).
Translating content that is inserted by a script
Personalization scripts may add content to the output. OLConnect will apply translations to that
content at the moment it is added to the template, for example with the html() or replaceWith()
function. Translations are applied if that content is marked for translation, and if there is a
matching translation entry (see "Tagging text that is inserted by a script" on page854).
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609.
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 page612) 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.
Page 851