Content and Section Translation are able to support creating a new article and expanding it with a new section by translating on mobile and desktop. Since translation work is persisted, it is possible to work during multiple sessions on different platforms. This ticket describes the expected behaviour for different combinations of sessions across multiple devices.
The major difference between the translation editors in both platforms is that for new articles, the desktop editor allows working with the full article content while the mobile one allows only to work with the lead section.
The intended behaviour is described for the combinations below.
A) New article started on desktop and continued on mobile
The mobile editor will load only the lead section for the desktop-created draft.
If the desktop-created draft includes content from other sections in the translation:
- Inform the user that the translation was started on a different platform and continuing on mobile requires to work on one section at a time. So the contributions to other sections will be recovered after the user publishes the initial article.
- Updates with the mobile editor will update the draft contents on the lead section part of the desktop-created draft.
- After publishing the lead section, create in-progress translations for the different sections for which the original desktop translation had contents.
Additional considerations. This approach could be described as splitting the large desktop-created translation. The split is intended to happen when publishing. This means that:
- It should be possible to start a translation on desktop which includes several sections, load the lead section on mobile and fix some typos on the lead section, and return to desktop to get a single draft with the translation covering several sections (with the typos fixed).
- After the translation is published on mobile, there will be an article published with the lead section contents and optionally several section translations in draft. This will be the case when accessing later the dashboard with either platform. The initial draft containing both lead and other sections is gone since it has been split by sections after publishing the lead section on mobile.
Proposed message
A standard dialog will be shown with the following message:
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 will become available once you publish the current translation as a new article. After publishing, you'll find a new in-progress translation with the contents for each section.
[Ok]
The "Ok" button closes the dialog.
A2) New article started on desktop and continued on mobile (when already present in the target wiki)
This is a variant of the scenario (A) above, with the particularity that at the time of loading the article on mobile, the target article already exists (e.g., another editor created it independently). In such case, we want to make available the sections from the draft translation immediately (it won't make sense to force the user to publish the lead section to have access to the ). The approach is described below in more detail (bold used to highlight the differences with the previous scenario):
The mobile editor will load only the lead section for the desktop-created draft.
If the desktop-created draft includes content from other sections in the translation:
- Inform the user that the translation was started on a different platform and continuing on mobile requires to work on one section at a time, and indicate that contributions to other sections have been recovered..
- Updates with the mobile editor will update the draft contents on the lead section part of the desktop-created draft.
- As soon as the mobile editor opens, create in-progress translations for the different sections for which the original desktop translation had contents.
Proposed message
A standard dialog will be shown with the following message:
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]
The "Ok" button closes the dialog.
B) New article started on mobile and continued on desktop
When continuing a mobile-started article on desktop, the desktop editor will load the whole article as source (it can include multiple sections) and the translation will include the contents from the lead section. Editors can add more contents to the translation including content from other sections.
If the user added additional sections and moves back to mobile, this situation will be handled as the case (A) above.
C) Section started on desktop and continued on mobile
Both mobile, and desktop editors will load the translation on section mode. In both cases the visibility of content is the same and publishing will lead to a new section being created.
D) Section started on mobile and continued on desktop
Both mobile, and desktop editors will load the translation on section mode. In both cases the visibility of content is the same and publishing will lead to a new section being created.
Representation in the dashboard lists
The in-progress and published lists in the dashboard represents items in two different ways depending on whether they are translation to create a new article or expand with a section. New article translations may contain just the lead section or additional sections (this only on some translations edited with the desktop editor). It is ok to display articles and sections of the same topic in the in-progress and published status to reflect the status of their translations.
