The Phrase Translation Plugin for Adobe Experience Manager follows the same product support periods as Adobe Experience Manager. See https://helpx.adobe.com/support/programs/eol-matrix.html for information on support periods.
Once an Adobe Experience Manager version reaches end of core support, Phrase no longer maintains the plugin. The installer will be available but no further improvements or fixes will be implemented.
-
Plugin version 2.x supports 6.5.
-
Plugin version 3.x supports AEM as a Cloud Service.
The In-context preview feature offers a real-time preview of original or translated text in both the CAT web editor and CAT desktop editor.
Tables, columns, various graphics, formatting, and fonts are supported. The feature is meant to provide context when translating and is not a perfect representation of the original or completed document; some visual differences are expected. It can also be influenced by enabling/disabling Allow loading of external content in editors option in Access and Security settings.
Phrase requirements:
-
Pass through the enterprise firewall to access the on-premise installation.
-
Authenticate into the authoring environment.
Firewall configuration for on-premise installation:
-
Installation must be accessible from the following IP addresses:
34.243.87.13, 34.248.197.209, 108.129.22.31, 3.248.158.93
-
Domain name must be able to be resolved externally.
Note
Some HTML tags present a risk and the CAT editor removes them from this HTML when displaying the preview. This is to ensure user's data privacy and security.
Examples of removed tags include FORM
, IFRAME
, SCRIPT
, SVG
, VIDEO
, EMBED
, OBJECT
or background-image CSS properties.
Pre-requisite: Create an Adobe Experience Manager user with minimum permissions required to view unpublished pages.
Tip
Create a new user called phrase-preview and add the user to the Authors group.
-
From the Settings
page, scroll down to the section.
-
Click on Connectors.
The
page opens. -
Click New connector.
The
page opens. -
Provide a name for the connection and change the Type to Adobe Experience Manager Live Preview .
-
Enter the Host.
Use the host address of the Adobe Experience Manager installation (e.g., https://aem-author.example.org/ or https://author-X-Y.adobeaemcloud.com/).
The domain name must be resolvable externally (not an intranet domain).
-
Enter the Username and Password.
-
To modify links contained in page HTML, provide regexp.
inExample:
To replace a full locale code with just the language code in
https://example.org/en-us/images/sample.jpg
, find/([a-z]{2})-[a-z]{2}/
and replace it with/$1/
.Links in the tags
<img src="" data-lazy-src=""
,<link href="", <script src=""
,<iframe src=""
and links in CSS styles and referenced CSS files (url: ('')
) will be rewritten. -
Click Save.
The connector is added to the list on the
page.
Note
Some HTML tags present a risk and the CAT editor removes them from this HTML when displaying the preview. This is to ensure user's data privacy and security.
Examples of removed tags include FORM
, IFRAME
, SCRIPT
, SVG
, VIDEO
, EMBED
, OBJECT
or background-image CSS properties.
To configure Adobe Experience Manager job processing create a project template configured to your needs:
-
Under Allow loading of external content in Phrase CAT editor option.
, activate the
If using legacy versions, a service and a submitter portal will need to be created and validated. To validate the configuration, follow these steps:
-
Open an incomplete Translation Project.
-
Select Export from the tile menu.
-
Find the .XML file that contains the source text within the downloaded zip file.
-
In Phrase, navigate to the
used for the integration and open the listed URL. -
Complete the SP form, upload the .XML file, validate the email and submit.
-
Verify the new project was created from the project template as configured.
-
If migrating from 6.2 or 6.3 to 6.4 and above, remove all Legacy Cloud Services configurations from the Classic UI Admin tool (/miscadmin#/etc/cloudservices/memsource-translation)
All configurations disappear from Legacy Cloud Services > Memsource Translation Plugin for AEM.
-
In Packages.
, , go to -
Uninstall previous version of the plugin, if applicable.
-
Select Upload package and upload the installation file.
-
Check Force Upload and submit.
If plugin is already installed, jump to Step 4.
-
Add local filesystem based maven repository to the AEM cloud service project root pom.xml:
<repositories> ... <repository> <id>project.local</id> <name>project</name> <url>file:${maven.multiModuleProjectDirectory}/repository</url> </repository> ... </repositories>
-
Add plugin dependency to all/pom.xml:
<dependency> <groupId>com.memsource</groupId> <artifactId>aem-memsource-plugin.all</artifactId> <version>X.X.X</version> <type>zip</type> </dependency>
-
Add embedded block to all/pom.xml -> filevault-package-maven-plugin configuration:
... <plugin> <groupId>org.apache.jackrabbit</groupId> <artifactId>filevault-package-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <group>my_packages</group> <embeddeds> <embedded> <groupId>com.memsource</groupId> <artifactId>aem-memsource-plugin.all</artifactId> <type>zip</type> <target>/apps/aem-memsource-plugin-packages/application/install</target> </embedded> ...
-
Add the plugin to the local maven repository. Run the following command from AEM cloud service project root replacing
{memsource.plugin.path}
placeholder with the path to the plugin (e.g./tmp/aem-memsource-plugin.all-3.0.1.zip
):mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile={memsource.plugin.path} -DlocalRepositoryPath=./repository/ -Dpackaging=zip
-
Set the correct plugin version in all/pom.xml (e.g. 3.0.1):
<dependency> <groupId>com.memsource</groupId> <artifactId>aem-memsource-plugin.all</artifactId> <version>3.0.1</version> <type>zip</type> </dependency>
Configure the Plugin
Two configurations are required:
-
Tell the system that Phrase exists by adding it as a Translation Service Provider specifying how to connect to the TMS.
-
Tell Adobe Experience Manager when and how Phrase is to be used by configuring Translation Integration Configuration.
Example:
Follow these steps:
-
In
, , go to . -
Create a configuration container for each Phrase service (e.g. one configuration for human translation and a separate configuration for machine-only translation).
-
In
, go to . -
Expand the
directory. -
Create a new configuration and enter the following information:
-
Hostname: The default URL is https://cloud.memsource.com/web/ but can be different if you or the LSP is using a Custom URL.
-
Username and Password (must be in a PM role with Modify global server settings option enabled in user rights).
Click Connect.
-
-
Select other options and close the configuration.
-
All translation jobs within one AEM project will be also created within one Phrase project.
Important
This option does not work correctly if project template settings.
and are enabled at the same time in Phrase -
-
If active, once a translation job is sent, analyses are automatically generated when the files are imported. Analyses are always generated by language, regardless of the project template settings.
-
If the automatic generation of analyses is activated, quotes can be generated based on these analyses.
-
If using legacy versions, service and submitter portal information will also be required.
When using the Phrase Translation Plugin for AEM, all files in the translation jobs are submitted for translation and thus returned from Phrase. Use the project Translation Integration configuration to prevent non-translatable assets or reference materials from being included in the projects.
-
In Tools, go to Translation Cloud Services.
, click -
Create a new configuration specifically for translation.
-
Ensure
and are unchecked. -
Set Do not translate.
to -
On the Do not translate.
Tab, set the to
-
-
If a project still contains non-translatable assets or reference materials, mark and delete them directly in Phrase.
Configure default Phrase Translation Provider with different parts of the site taxonomy. Configure the provider at the root node of the site. All descendant pages will inherit the setting. Override the setting at the node that should use different provider configuration (e.g. entire site uses human translation but the community section uses machine translation).
To apply translation integration:
When adding content from these pages, only translatable content will be added. If a project is created from the
, it will be automatically set up to use the cloud configuration associated with the root page.To submit content (Sites, Assets) for translation, create a translation project in Adobe Experience Manager. Projects can be created manually in the Projects section or use built-in workflows to minimize the effort.
To prepare a project for submission through the built-in workflows, follow these steps:
-
From the
view, navigate to the page, select it, and open the . -
Click Language Copies and expand the Create & Translate section at the bottom of the rail.
-
Select target languages, optionally uncheck the Select all sub-pages.
-
Select Create Multi-language Translation Project.
If there are multiple target languages, a separate project will be created for each language.
-
Enter project title and click Create.
-
Navigate to the project in the
section and open it. -
Click the ellipsis on the first tile to open the Advanced project settings.
If configured properly, configurations created in the steps above are referenced.
-
To submit a job, select Start from the job tile menu.
A new project will be created within a few minutes.
-
Upon import, providers are assigned from the project template and the AEM job item status is set to Committed for translation.
-
Once the job is accepted by a provider, the AEM job item status changes to Translation in progress.
-
AEM job item status changes to Cancelled if the job is deleted or cancelled.
Tip
Adobe Experience Manager polls for a job status update on a schedule that is configured in
accessed via .Setting the
property to run frequently (e.g.0 0/5 * * * ? *
triggers a translation job status refresh every 5 minutes).Refreshing the project detail page forces a pull.
-
-
In Phrase, translate the project jobs and set their status to
. Upon completion, the jobs are imported back into AEM. -
If rejected, the first workflow step of the job is set to Emailed, and the remaining workflow steps to New.
-
Once an AEM job item is accepted, the job status updates to Delivered as configured in the plugin settings.
For more details on creating translation projects using the References Panel, see Adobe documentation.
To map Adobe Experience Manager languages to different languages in Phrase (e.g. zh to zh_tw), follow these steps.
The mapping applies to both source and target languages.
-
Open CRXDE (
/crx/de/index.jsp
). -
Browse to the
/apps/memsource-connector/language-mapping/
folder. -
Create a new node.
-
Use Adobe Experience Manager language code as the Name (e.g. zh), keep Type: nt:unstructured.
-
Add property:
-
Name: memsourceLanguage
-
Type: String
-
Value: language code (e.g. zh_tw)
-
-
Click Save All.
Un-mapped language codes are sent as they are.
To add language mapping in AEM Cloud Services, follow these steps:
-
Create a
.content.xml
file in the/conf/aem-memsource-plugin/language-mapping/
folder. -
Open the created file and copy the following into it:
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:Folder"/>
-
Create a
.content.xml
file in the/conf/aem-memsource-plugin/language-mapping/zh-cn
folder. -
Open the created file and copy the following into it:
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="nt:unstructured" memsourceLanguage="zh_cn"> </jcr:root>
-
Add the paths created in previous steps to the
filter.xml
file found atui.content/src/main/content/META-INF/vault/filter.xml
:<?xml version="1.0" encoding="UTF-8"?> <workspaceFilter version="1.0"> ... <filter root="/conf/aem-memsource-plugin" mode="update"/> <filter root="/conf/aem-memsource-plugin/language-mapping" mode="update"/> </workspaceFilter>
Once a translation job is submitted, the project ID and UID are stored in the /content/projects/project-name/jcr:content/dashboard/gadgets/translationjob
as PROPERTY_MEMSOURCE_PROJECT_ID
and PROPERTY_MEMSOURCE_PROJECT_UID
properties.
Use the IDs for display in the AEM environment or in APIs to extend plugin functionality.