4. What is Machine Translation
• It is one way of achieving internationalization in
the project
• Automatically translate content from one language
to other.
13. 1) Translate Language Copy Process
2.1) Create Language Copy Launch
2.2) Inject Master Language Into Launch
Process
What all Processes are involved?
14. ●
It makes a POST call to
/etc/workflow/instances that resolves to
com.adobe.granite.workflow.console.ser
vlet.InstancesServlet
●
It requires language root page of target
language to be present. For example, to
translate some page in en to fr, fr root
page should exist. Rest of the hierarchy
is automatically created.
Language Copy Creation
16. ●
Send same properties except value of
model which now points to
/etc/workflow/models/wcm-
translation/update_language_copy/jcr:co
ntent/model
●
This triggers translation but does not
update target page. Translated page is
stored under launches folder so it can be
reviewed before pushing it.
Language Copy Update
17. ●
It is the process of pushing translated
content from launch to target language
page
●
This step follows content review
●
Makes a call to /bin/wcmcommand
cmd : promoteLaunch
path : /contet/mypage
Promoting a launch
21. {
translation: {
jcr:description: "The idea of this game is
phenomenal: Finally you can interact with a
robot and you can simulate real actions!"
},
status: "Success",
displayType: "replace",
display: "replace",
attribution: "Translations by Microsoft"
}
Sample Response