Section translation Desktop editor: loading a section
Closed, ResolvedPublic

Description

As part of the work to adapt Content Translaiton editor to translate a single section (T234323), this ticket is focused on supporting a one-section mode that allows to load the source contents displaying only one section.

The user should be able to add paragraphs to the translation as they would normally do when translating a whole article.

Since some content such as references may be defined and used on different sections, for this first approach it is ok to load the whole article and hide other sections. More advanced approaches to optimize this can be explore din T237614.

This ticket is focused on loading the section contents in a working editor. Other tickets will focus on other steps such as publishing and customizing the experience further.

CX-translation-view.png (1×1 px, 170 KB)

Event Timeline

Pginer-WMF created this task.

From the experience of SX development, resolving inter-section references, it is must load the full article to VE. But this does not mean that we have to render it. In SX, we create a dummy, temporary target , let ve resolve all references to local references, then use those sections as standalone section for further workflow inlcuding displaying the editor, translation and publishing. We can follow the same approach here too. But just loading everything to VE and hiding unwanted sections gives the same result with less coding complicaitons IMO.

Change 811906 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] Section translation Desktop editor: load a section

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

Screenshot from above patch with sourcesection=Plot in URL. There are many things to figure out, but will be follow up patches

image.png (816×937 px, 220 KB)

Change 811906 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Section translation Desktop editor: Load a section

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

Change 824197 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] Section Translation in Desktop: Hide section title from editor

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

Change 824330 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] Add a CSS class to mark sx mode in desktop

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

Change 824330 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Add a CSS class to mark sx mode in desktop

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

Change 824197 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Section Translation in Desktop: Hide section title from editor

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

Test status: QA PASS

User is able to load the section contents in a working editor