Page MenuHomePhabricator

Adjust the handling of sections when continuing translations started on a different device
Open, In Progress, MediumPublic

Description

The initial implementation for continuing translations started on a different device (T332863) supports splitting an article translation started on desktop into different section translations on mobile. The original approach was doing this split after publishing of the lead section for the article. This ticket proposes to make this splitting of the contents sooner: right after the user confirms the dialog.

This requires three changes:

  • Adjust the point at which the split happens.
  • Change the text of the dialog to describe the updated behaviour.
  • Provide appropriate publishing options when the target article is missing.

The original approach is not effective in preventing users from expanding an article that does not exist yet. The proposed approach provides more flexibility to users (e.g., they can publish a section for an article missing/deleted from the target wiki in the sandbox) and provides a general solution to the case where the article to expand does not exist.

Adjust the point at which the split happens.

In-progress translations for the different sections for which the original desktop translation had contents, will be created after the user access the lead section in-progress draft. Ideally, soon as the user taps "Ok" in the dialog.

Change the text of the dialog to describe the updated behaviour.

The proposed message for the dialog is the following (note the difference in the last paragraph with the current version):

Continuing a translation on mobile

This translation was started on a different device, and it includes contents for multiple sections of the article.

On mobile you can only work with one section at a time. Thus, only the main section will be loaded for now.

Where are the other sections?

Don't worry. The remaining sections are not lost. They are now available in the list of your in-progress translations and can be used to expand the existing article. You'll find a new in-progress translation with the contents for each section.

[Ok]

Provide appropriate publishing options when the target article is missing.

For any in-progress section translation (regardless of it being automatically created from a desktop translation or not) we want to make sure that we provide publishing options that make sense:

  • If the target article does not exist, options available are for publishing as (a) a new page and (b) in the sandbox.
  • If the target article exists, the usual options are provided for publishing as (a) publish as a new section and (b) in the sandbox.

Future tickets may consider showing a warning when the target article does not exist, if needed.

Event Timeline

Pginer-WMF triaged this task as Medium priority.Nov 23 2023, 3:08 PM
Pginer-WMF created this task.
Pginer-WMF moved this task from Backlog to Core workflow on the SectionTranslation board.
ngkountas changed the task status from Open to In Progress.Jan 2 2024, 4:11 PM
ngkountas claimed this task.

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

[mediawiki/extensions/ContentTranslation@master] Split desktop-started translation into section translations upon start

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

Change 988502 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Split desktop-started translation into section translations upon start

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20240216

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

Change 1004124 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20240216

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

@EChukwukere-WMF @ngkountas Anything blocking QA of this task? It's been waiting for almost three months.

@Nikerabbit this as well. I will prioritize this ticket