Add Translations For the Catalog and Reports

This topic describes how to export and import translation files both for the catalog and for individual report layouts.

About Translation in Publisher

Publisher supports two types of translation: Catalog Translation and Template (or layout) Translation.

Catalog translation enables the extraction of translatable strings from all objects contained in a selected catalog folder into a single translation file; this file can then be translated and uploaded back to Publisher and assigned the appropriate language code.

Catalog translation extracts not only translatable strings from the report layouts, but also the user interface strings that are displayed to users, such as catalog object descriptions, report parameter names, and data display names.

Users viewing the catalog see the item translations appropriate for the UI Language they selected in their My Account preferences. Users see report translations appropriate for the Report Locale that they selected in their My Account preferences.

Template translation enables the extraction of the translatable strings from a single RTF-based template (including sub templates and style templates) or a single Publisher layout template (.xpt file). Use this option when you only need the final report documents translated. For example, your enterprise requires translated invoices to send to German and Japanese customers.

Limitations of Catalog Translation

If you have XLIFF file translations for specific reports and then you import a catalog translation file for the folder in which the existing translations reside, you overwrite the existing XLIFF files.

Export and Import a Catalog Translation File

Importing the translated file to the catalog and exporting the XLIFF files from the catalog can only be performed by an Administrator.

  1. Select the folder in the catalog, click the Translation toolbar button, and then click Export XLIFF.
  2. Save the XLIFF file to a local directory.
  3. Open the Translation file (catalog.xlf) and apply translations to the Boilerplate text, as shown in the following figure.
  4. After the file is translated, upload the XLIFF file to the Publisher server: Click the Translation toolbar button, then click Import XLIFF. Upload the translated XLIFF to the server.
  5. To test the translation, select My Account from Signed In As in the global header.
  6. On the General tab of the My Account dialog, change the Report Locale and the UI Language preferences to the appropriate language and click OK.
  7. View the objects in the translated folder.

Translate Templates

You can translate the RTF and Publisher (.xpt) templates from the Properties page.

Template translation includes:

  • RTF templates

  • RTF sub templates

  • Style templates

  • Publisher templates (.xpt)

To access the Properties page, click the Properties link for the layout in the Report Editor, as shown below.

From the Properties page you can generate an XLIFF file for a single template. Click Extract Translation to generate the XLIFF file.

Generate the XLIFF File from the Layout Properties Page

Generate the XLIFF file for report layout templates, style templates, and sub templates.

  1. To generate the XLIFF file for report layout templates, perform these steps.
    1. Navigate to the report in the catalog and click Edit to open it for editing.
    2. From the thumbnail view of the report layouts, click the Properties link of the layout (RTF or XPT) to open the Layout Properties page.
    3. In the Translations region, click Extract Translation.

      Publisher extracts the translatable strings from the template and exports them to an XLIFF (.xlf file).

    4. Save the XLIFF to a local directory.
  2. To generate the XLIFF file for style templates and sub templates, perform these steps.
    1. Navigate to the style template or sub template in the catalog and click Edit to open the Template Manager.
    2. In the Translations region, click Extract Translation.

      Publisher extracts the translatable strings from the template and exports them to an XLIFF (.xlf file).

    3. Save the XLIFF to a local directory.

Translate the XLIFF File

When you download a XLIFF file, it can be sent to a translation provider, or using a text editor, you can enter the translation for each string.

A "translatable string" is any text in the template intended for display in the published report, such as table headers and field labels. Text supplied at runtime from the data is not translatable, nor is any text that you supply in the Microsoft Word form fields.

You can translate the template XLIFF file into as many languages as desired and then associate these translations to the original template.

Upload the Translated XLIFF File to Publisher

You can run the Template Manager to upload the translated XLIFF file to Publisher.

  1. Navigate to the report, sub template, or style template in the catalog and click Edit to open it for editing.

    For reports only:

    From the thumbnail view of the report layouts, click the Properties link of the layout to open the Template Manager.

  2. In the Translations region, click the Upload toolbar button.
  3. In the Upload Translation File dialog, locate the file in the local directory and select the Locale for this translation.
  4. Click OK to upload the file and view it in the Translations table.

Use a Localized Template

You can create localized templates for reports.

If you need to design a different layout for the reports that you present for different localizations, then you can create new RTF file designed and translated for the locale and upload this file to the Template Manager.

The localized template option is not supported for XPT templates.

Design the Localized Template File

Use the same tools that you used to create the base template file, translating the strings and customizing the layout as desired for the locale.

Upload the Localized Template to Publisher

Upload localized template files in rtf format to Publisher.

  1. Navigate to the report, subtemplate, or style template in the catalog and click Edit to open it for editing.

    For reports only:

    From the thumbnail view of the report layouts, click the Properties link of the layout to open the Template Manager.

  2. In the Templates region, click the Upload toolbar button.
  3. In the Upload Template File dialog, locate the file in the local directory, select rtf as the Template Type and select the Locale for this template file.
  4. Click OK to upload the file and view it in the Templates table.