Page MenuHomePhabricator

Searching for an article to translate not working on Test Wikipedia
Closed, ResolvedPublic1 Estimated Story Points

Description

The Search step (T359494) of MinT for wiki Readers allows users to search for an article to get a machine translated version.
Currently, on Test Wikipedia searching for an article ("Moon" in the example) shows no results:

The Javascript console shows the following error:

Screenshot 2025-04-08 at 11.31.30.png (197×497 px, 92 KB)

For other wikis, the issue does not seem to happen. So maybe it is not affecting those in the pilot group for the experiment. However, this seems to suggest some glitch in the language pair logic, that we may want to investigate to better understand the impact.

Event Timeline

Change #1137427 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] SpecialAutomaticTranslation: Fallback to content language as target

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

The target language is not set:

> use \ContentTranslation\SiteMapper;
> SiteMapper::getCurrentLanguageCode()
= "test"
abi_ triaged this task as Low priority.Apr 18 2025, 8:30 AM
abi_ set the point value for this task to 1.

Change #1137427 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SiteMapper::getCurrentLanguageCode: Fallback to content language

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

English is automatically selected as the target language on testwiki now:

image.png (1×1 px, 83 KB)

Searching works as expected:

image.png (1×1 px, 99 KB)

PWaigi-WMF subscribed.

Tested and resolved.

Screenshot 2025-05-08 at 13.32.59.png (1×3 px, 354 KB)