Page MenuHomePhabricator

Article wrongly showing as present in the target language because of a previous search
Closed, ResolvedPublic

Description

Content Translation warns users when selecting an article to translate that already exists in order to prevent accidental overwrites when publishing the translation. For example, when translating from French to English, searching for "Avocat" in French will warn that the "Avocado" article already exists in English.

Searching for an article that does not exist in the target language (e.g., "Régiment des Étrangers de Dunkerque") should shown no warning. However, it incorreclty shows it if the warning was shown on a previous search. The video below shows how searching for "Régiment des Étrangers de Dunkerque" shows no warning initially but it does after a seraching for "Avocado":

This issue is not present in the Section Translation dashboard (T241590) which will eventually replace the current one once translating sections are supported on desktop (T234323).


This was originally reported as part of the 2022 Wishlist survey.

Event Timeline

Pginer-WMF updated the task description. (Show Details)

Change 753434 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] Source page selector: Reset target title when new source title selected

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

Change 753434 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Source page selector: Reset target title when new source title selected

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

The issue seems to still be happening:

en.wikipedia.org_wiki_Special_ContentTranslation(iPad Air).png (1×2 px, 302 KB)

The fix seems to be visible now and works as expected. Thanks!

en.wikipedia.org_wiki_Special_ContentTranslation(iPad Air) (1).png (1×2 px, 289 KB)