Localizing an adaptive form and its document of record using Human Translation
In Human translation the content is sent to a translation provider and translated by professional translators. When complete, the translated content is returned and imported into AEM. When your translation provider is integrated with AEM, content is automatically sent between AEM and the translation provider.
For translation, a dictionary containing files in XLIFF format is shared with the professional translators. The dictionary includes a separate XLIFF file for each locale. Each XLIFF file contains text that is displayed to the end users and placeholders for the corresponding localized text.
Perform the following steps to localize a form and its document of record using Human Translators:
-
On the AEM Forms UI, select a form, and select the Add Dictionary option.
-
In the Add Dictionary to Translation Project screen, for the Project option
- To create a translation project, select the Create a new translation project option and in the Project Title field, specify the title. For example,
Government Reference Site - German locale.
- To add a new dictionary to an existing translation project, select the Add to an existing translation project option and select an Existing translation project.
- To create a translation project, select the Create a new translation project option and in the Project Title field, specify the title. For example,
-
In the Target Languages field, specify a locale (For example,
German(de)
). You can specify multiple locales. The form is translated to all the locales specified in the Target Languages field. Click Done. -
In the Dictionary Added dialog box, click Open Projects.
-
In the Projects screen, click the created project. For example, click the Government Reference Site - German locale tile.
-
At the bottom of the Summary tile, click the ellipses. The Translation Project Properties screen opens.
-
Open the Advanced tab at the top of the Translation Project Properties screen. For the Translation field, select Human Translation. Click Save & Close at the top of the screen.
-
On the Translation Job tile, click the
-
Extract the downloaded .zip file. The extracted folder has two files:
- translation_export_summary.xml
- [form-fields-file].xml.
-
Open the [form-fields-file].xml for editing. Add the localized strings and messages for form fields. Save and close the file.
-
Zip the files the translation_export_summary.xml and [form-fields-file].xml.
-
On the Translation Job tile, click the
-
To preview the localized form, on the AEM Forms UI, select the localized form. Click Preview >Preview as HTML. Reopen the form after adding the
afAcceptLang=<locale code>
to the URL off the form. For example, addafAcceptLang=de
to open German version of the form.