Page MenuHomePhabricator

Continuing the translation of a section should respect the original language pair
Closed, ResolvedPublic

Description

Translating the "Preparation" section of the "Queso de mano" article form English to Spanish on the desktop site of Test Wikipedia (quick link the following issue is encountered: after saving a draft translation, continuing it later leads to the desktop editor to load the full page of the target language.

This seems to be caused by a mishandling of the URL parameters. Currently, the translation is loaded based on the current URL parameters. However, stored translations may have been created using a diverse set of language pairs. Thus, the URL directing the user to the editor shoudl be updated to reflect the language pair of the translation that the user is trying ot recover.

Steps:

  1. Start a translation for a section. Preferably using a different language pair than the default one.
  2. Edit the contents in the editor and return to the dashboard.
  3. Refresh the browser tab, and check that the translation shows in the in-progress list.
  4. Check the language parameters.
  5. Continue the translation,
  6. Observe that the contents from #2 are not loaded. Instead, a full article is shown from the target language.
  7. Check the URL from and to parameters.

This is illustrated in the video below:

Event Timeline

ngkountas moved this task from Backlog to Prioritized on the LPL Hypothesis board.

Change #1119162 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Use source/target languages from URL when continuing a draft

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

Change #1119162 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Use source/target languages from URL when continuing a draft

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

This was included in CX3 Build 0.2.0+20250217 deployed last week

Test status: QA PASS

Language Pairs when In progress translation is continued stays persistent