Documentation

Exporting and Importing Translations

Exporting your web content to the XLIFF format is an alternative to manual translation in Liferay. XLIFF (1.2 or 2.0) is the main interchange format used for dedicated translation software. Exported translations can be sent to professional translators and imported to provide translations for your content.

Note

To export web content for translation or import content translations, you must have View and Update permissions for the selected content. See Managing Permissions for Translation.

Exporting Content for Translation

  1. Open the Product menu, and go to Content & DataWeb Content.

  2. Click the Actions menu ( Actions button ) for the web content you want to translate and select Export for Translation. This opens a modal window that you can use to configure your export.

    Click on the Actions menu for the web content you want to translate, and select Export for Translation.

  3. Select the Export format (XLIFF 1.2 or XLIFF 2.0)

  4. Specify the web content’s original language. This is used as a reference for the translation.

  5. Select the languages for translation using the checkboxes.

    Select the languages to which you want to translate the web content.

  6. When finished, click Export to begin exporting for translation.

Liferay generates a Zip archive for download that contains as many XLIFF files as languages you’ve selected for translation. These files can be used with compatible translation software to translate your web content.

Importing Content Translations

Once your translations are ready, follow these steps to import them to your web content.

  1. Open the Product menu and go to Content & DataWeb Content.

  2. Click the Actions menu ( Actions button ) for the translated web content and select Import Translation.

    Click on the Actions menu for the translated web content, and select import translation.

  3. Select the translation file you want to import and then publish your changes.

    Select the translation file you want to import.

When the import completes, the web content is updated with all changes included in the XLIFF file. If workflow is enabled, this change must be approved as with other content updates.

Note

Although Liferay supports both XLIFF 1.2 and 2.0, it may not support all features and capabilities those formats provide. Also, while Liferay supports importing XLIFF files created using the Export for Translation action, it cannot guarantee the successful import of files generated by other means.