The Optimizely Digital Experience Platform (DXP) contains many features to support you in your daily work. Depending on how your solution is set up, some features described in this documentation may not be available to you. See Optimizely World for technical information.
The Optimizely Languages add-on manages languages and translations of content on multi-lingual websites. After an administrator installs and sets up the application (app), you can add Optimizely Languages as a gadget where you can activate new languages for your website, manage language branches, and work with translation.
The gadget provides an overview of the language setup for your sites, and you can compare language versions when translating content. It also has a built-in feature for automated translation of content, based on a third-party plug-in.
Before you can create content in a language, a system administrator needs to add a language on the website and activate it.
- Select Manage Website Languages from the Optimizely Languages gadget options.
- Click the link for a language in the list. If a language is missing in the list, you can add it.
- Select Enabled to activate the language. Under Users/groups for creation and editing, you can provide access rights for a specific editor (such as erin) or group (such as WebEditors) to work with the language. Each language is available to the Everyone group by default, which you can remove.
- Click Save Language to close the Manage Website Languages dialog box. The language is activated on the website and appears in the Optimizely Languages gadget, but it is not yet available for content creation.
Enable a language for editing
By default inheritance from the parent page, the language is available for usage throughout the page tree structure, until changed. This means that when enabling a language for a parent page, the language is enabled also for subpages.
- Expand the page tree navigation in the left-hand pane and select the page from where you want the language setting to apply.
- In the Optimizely Languages gadget, select the language you want to activate.
- In the context menu, select Enable editing for [language].
You can also enable languages by selecting Manage Editable Languages for this Content, in the lower-left part of the Languages gadget, which brings up the Language Settings dialog box. (This is also where you define fallback and replacement languages for the website. See Fallback Languages.)
- Subscribe to Azure, if you have not done so already.
- Register Translator from Cognitive Services.
- Configure the auto-translate component in Optimizely Languages. Go to Settings > Language Manager.
- Translator Provider – Select Cognitive Service Translator.
- Subscription Key – Enter the Microsoft subscription key (Key 1) from the Azure subscription service.
- Subscription Region – Enter the Location value from the Azure subscription service.
- Click Save.
View parts of a website in a selected language
- Select a page from the page tree in the left pane.
- To see pages that do not exist in the selected language, click the Show All Languages link at the bottom of the navigation pane. Pages that do not exist in the selected viewing language appear in italics; replacement or fallback languages (if applied) also appear.
Translate a page or block as follows:
- Select the page in the to be translated in the page tree, or open a block from the assets pane.
- Click Create in the Optimizely Languages gadget.
- Select from the following translation options:
Auto-translate – Content is automatically translated from the master language. This option is available only if you have the auto-translate component properly configured on your website. See Configuring auto-translation.
Carefully review the result before publishing.
Duplicate content – Copies content from the master language for you to manually translate.
- Start with a blank page – Creates a blank page or block with the title from the master language. You add translated content manually.
- Auto-translate – Content is automatically translated from the master language. This option is available only if you have the auto-translate component properly configured on your website. See Configuring auto-translation.
- Add translated content as appropriate.
- Review and publish the page or block according to the publishing flow in Optimizely CMS.
New language versions are draft versions, which you need to manually review and publish.
Replace content with the master language
If you created content in a language other than the master language, you can replace the translated content with the master language content.
- Select the translated page in the page tree.
- Select the language you want to replace.
- Confirm the action by clicking Replace Content.
You cannot undo this action.
Create a page in a different master language
To create a page that exists only in a specific master language:
- Select the desired target language in the Optimizely Languages gadget (or the tab in the navigation pane).
- Expand the page tree navigation in the left-hand pane and select the parent page where you want to create the new page.
- Select the page type to be used and enter a page name.
- Review and publish the page according to the publishing flow in Optimizely Content Management System (CMS).
Compare language versions
You can view a side-by-side comparison of a page in two different language versions, which helps you review auto-translated content, or manually translate content.
- Select an existing page to translate in the page tree.
- Select the desired translation language and the Compare with [master language] option in the Optimizely Languages gadget.
- Edit the content in the selected language. You cannot edit the master language page from here.
- Review and publish the page, or click Close Compare or Replace Selected Content.
Delete a language version
You cannot undo this action.
- In the page tree, select the page from which you want to delete a language version.
- Open the Versions gadget, and select the desired language version.
- Confirm the deletion.
You cannot delete the master language version without deleting the entire page.
Import and export XLIFF files
You can add a content item (such as a page or block) to a translation project by drag and drop and via its context menu. After adding content to a project, you can download a zip file containing the project items in XLIFF format (a format used by translation tools). The zip file can then be sent for translation.
When the translations for a project are completed, you should receive the translated files back in a zip file. Upload the file to the server to import content back. After you upload the file to the server, the content is imported automatically by a scheduled job.
- A notification to the user appears in the user interface after importing a translation package.
- The translation folder is located under module root to store uploaded translation packages.
- The translation process affects only draft versions.
After you create a translation project, you can add content to it from the Languages context menu:
- Select New Project from the Project menu at the bottom of the browser to create a new project for the translation.
- Give the project a name and click OK. The project is automatically enabled.
- In the page tree, select the page from which you want to translate.
- In the Languages gadget, click Create next to the language you want to translate.
- Select the Duplicate English content menu item. You also can start with a blank page. The new version is automatically added to your translation project.
Do not publish the page during this step.
- If you have already created a target language version and want to add that to a translation project, select More > Add to Translation Project. An Add to translation dialog box appears.
- Specify the content you want to add to your translation project.
- Add to translation project – Select the project you want to work with.
- Add all children – Get all references to the descendent of the content and add to the project.
Add related content that needs a translation – Add all related content items in the content to the project.
You can combine children and related content, included in the translation project. If they are already part of another project, you are notified of this.
- After you finish adding content to your translation project, go to the Project menu and click Overview.
- Select Options > Download Translation Package. A zip file containing all XLIFF format content is downloaded and you can send the package for tool translation.
Import translation package
Before uploading the zip file, make sure it does not include any folders.
- When the translations for the project are done, enable your translation project and select Options > Upload Translation Package(s) to upload the file (in zip format) to the server and import content back.
- After you upload the packages to the server, they are automatically imported by a scheduled job. If you want to start that process manually, go to Settings > Scheduled Jobs > Import Translation Packages > Details > Start.
A notification is sent to the project owner that the translation project was imported.