As part of the work to support translating in multiple sessions on mobile (more details in parent ticket: T319180), this ticket proposes to provide basic restoring capabilities to mobile translations:
- Starting a translation for an article/section for which an in-progress, will result in continuing the translation.
- Starting a translation for an article/section for which an in-progress article does not exist, was removed by the user, or it has been published, will result on a new translation (not continuing a previous draft). This is important to prevent issues such as the ones captured in T192065.
This ticket will not provide a list of translations to restore. Follow-up tickets will provide options to view in-progress translations (T260165), published ones (T260166) and switch between these views (T319181).
Scenario for QA testing
With this ticket, the basic support for translating in multiple sessions on mobile (T319180) will be completed with capabilities to auto-save translations (T322517), show appropriate warnings (T322518) and restore them (this ticket). Thus, the following scenario should work as described:
- Start a translation from English to Igbo for "Paneer".
- Edit the translation for a sentence and apply the proposed translation for the next one.
- Leave the translation editor and return to the dashboard.
- Depending on how the previous step was performed, a warning may appear to indicate that saving has not complete. Wait and try again if that is the case.
- Start again a translation from English to Igbo for "Paneer"
- The translation editor loads with the previously translated sentences present.
- Publish the translation in the sandbox.
- Start again a translation from English to Igbo for "Paneer"
- The translation editor loads without any previous translations.