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.