Page MenuHomePhabricator

Move CX translation unit adaptation code to cxserver and provide adaptation api
Closed, ResolvedPublic

Description

Based on the CX-VE integration discussions one important technical change we agreed is moving CX's content adaptation to cxserver. Currently we do this at browser whenever translator click on a section placeholder in translation view.

The current processing is:

  1. Source article fetched and shown in first column of Special:CX
  2. Placeholders shown in second column
  3. Translator clicks on a placeholder
  4. cxserver contacted for machine translation of that section.
  5. At Special:CX, once machine translation recieved, link targets are adapted to target language. References, images, templates, gallery, poem, math.. all these are also adapted to target language
  6. Translator edit this to improve (using native content editable now, using VE in coming days)

In this step 4 and 5 will be wrapped under a new cxserver api. That will give machine translated & completely adapted section to translator. VE will be then free to work on it as a editor.

Having step 5 was making the whole client side code very complex and demanding more layers in VE integration.

Event Timeline

Change 365236 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Adaptation code in cxserver and provide adaptation API - framework

https://gerrit.wikimedia.org/r/365236

Change 366263 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] [WIP] MW api request interface

https://gerrit.wikimedia.org/r/366263

Change 365236 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Adaptation code in cxserver and provide adaptation API - framework

https://gerrit.wikimedia.org/r/365236

Change 368800 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Image adaptation with namespace alias change

https://gerrit.wikimedia.org/r/368800

Change 366263 merged by jenkins-bot:
[mediawiki/services/cxserver@master] MediaWiki api request interface with batching

https://gerrit.wikimedia.org/r/366263

Change 368800 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Image adaptation with namespace alias change

https://gerrit.wikimedia.org/r/368800

Change 369336 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Category adaptation and tests

https://gerrit.wikimedia.org/r/369336

Change 370185 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Gallery adaptation and tests

https://gerrit.wikimedia.org/r/370185

Change 373255 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Provide title info- description, image along with the adaptation

https://gerrit.wikimedia.org/r/373255

Change 370185 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Gallery adaptation and tests

https://gerrit.wikimedia.org/r/370185

Change 369336 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Category adaptation and tests

https://gerrit.wikimedia.org/r/369336

Change 373255 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Provide title info- description, image along with the adaptation

https://gerrit.wikimedia.org/r/373255

Now, Template adaptation is remaining