A user can start a translation for an article/section X by either (a) searching for the article, and (b) selecting a suggestion.
In both cases, the loaded contents will depend on the following:
- If there is an in-progress translation for X, the in-progress translation is continued. That, the user selects the article/section X from the suggestions or searching for it, and the stored contents are loaded (this is the same behaviour as if the user opened the item from the in-progress list).
- If there is not an in-progress translation for X (because it is the first time or because the user had explicitly deleted it from the in-progress list), then a new translation is started from scratch without contents from previous translations.
In this way users can decide to restart a translation when needed, but continuing one is supported when the user has previously worked on it (without overwriting contents accidentally).
Scenarios to test
Scenario A
- Go to Section Translation application (test wiki)
- Select a page or section to translate and move forward to the "Pick a sentence" step
- Translate some sentences.
- Click on the back arrow on the top left of the page
- Inside the dashboard (where you should be redirected from the previous step) select the same article/section to translate and move forward again to the "Pick a sentence" step
- Observe how the previous translation contents are restored and the above changes made are present.
Scenario B
- Go to Section Translation application (test wiki)
- Select a page or section to translate and move forward to the "Pick a sentence" step
- Translate some sentences.
- Click on the back arrow on the top left of the page
- Observe that the translation is showing in the in-progress list
- Delete the in-progress translation using the trash icon.
- Inside the dashboard select the same article/section to translate and move forward again to the "Pick a sentence" step
- Observe how a new translation is created and the previous changes are NOT appearing.
Related: T333849: SX: Translation is not reset after discarding it and going back to dashboard