Page MenuHomePhabricator

CX2: Add content to the translation paragraph by paragraph
Closed, ResolvedPublic

Description

Content Translation allows editors to translate as much or as little as they want. Editors can add their paragraphs of choice to the translation.

Currently in CX2, the whole article is shown for the translation, as illustrated below:

Screen Shot 2018-02-16 at 10.16.49.png (611×1 px, 210 KB)

The expected behaviour is described below:

  • The translation is shown empty.
  • When hovering an empty paragraph in the translation, an "Add translation" placeholder is shown.
  • When hovering an empty paragraph in the translation or the corresponding one in the source text, the source paragraph gets highlighted in yellow.
  • When clicking on an empty target paragraph (or the corresponding source paragraph), the paragraph is added to the translation. Initially, the content added will be a copy of the source paragraph (until machine translation support is added as part of other tickets).

The mockup below illustrates the interaction of adding a paragraph:

CX-translation-view-invite Copy.png (720×1 px, 211 KB)


Next steps (to be covered by follow-up tickets unless they are trivial to implement as part of this one):

  • Initially when the translation is empty (and the user is not hovering any other paragraph in the translation), the invite to add a new translation will be shown for the first paragraph to communicate the starting point to the user.
  • When clicking on a paragraph that is right after a heading, both the paragraph and the heading will be added to the translation.

Event Timeline

Pginer-WMF triaged this task as Medium priority.Feb 16 2018, 9:35 AM
Pginer-WMF raised the priority of this task from Medium to High.Mar 2 2018, 12:15 PM

Change 420741 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@master] Highlight corresponding source section for placeholders

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

Change 420741 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Highlight corresponding source section for placeholders

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

I created a follow-up ticket with a couple of additional adjustments related to this: T190907: CX2: Styling adjustments for paragraph highlighting
Everything else works as expected.

I'm closing the ticket since the activity can move to the follow-up tickets created (T190907, T190908)