한국   대만   중국   일본 
? T320382 Entrypoint to translate current page is shown when searching for current language in mobile language selector
Page Menu Home Phabricator

Entrypoint to translate current page is shown when searching for current language in mobile language selector
Closed, Resolved Public BUG REPORT

Description

Since the mobile language selector does not show the current language in the language selector, searching for it produces 'no-results' state. Ultimately showing CX entrypoint:
Here you can see that in https://tn.m.wikipedia.org/wiki/Aforika_Borwa#/languages search for tn gives entrypoint to translate to tn(Setswana)

image.png (343×756 px, 25 KB)

Event Timeline

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

[mediawiki/extensions/ContentTranslation@master] MF languagesearcher: Avoid showing option to translate to current language

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

Change 841040 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] MF languagesearcher: Avoid showing option to translate to current language

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

Nikerabbit changed the subtype of this task from "Task" to "Bug Report". Oct 27 2022, 8:30 AM

@santhosh Please correct me if I am wrong, typing tn in the search for the link in question shows Vietnamese here instead of Setswana ?

Screen Shot 2022-11-08 at 9.20.17 PM.png (241×1 px, 18 KB)

@santhosh Please correct me if I am wrong, typing tn in the search for the link in question shows Vietnamese here instead of Setswana ?

Screen Shot 2022-11-08 at 9.20.17 PM.png (241×1 px, 18 KB)

If your interface language is English (can simulate by adding uselang=en in URL) the name of Vitnamese language has "tn" in it and you get Vietnamese - because of very relaxed matching logic in search interface.
In my case, the interface language was not "en", but "ml". (can simulate by adding uselang=ml in URL). Then I wont get Vietnamese by searching "tn"

For testing this ticket you can use ml as interface language. Or any language that will produce "no results state" for "tn"

@santhosh thanks for the clarification

Test status: QA PASS

the translate entry point does not display when searching for a language in the Langauge selector