Page MenuHomePhabricator

Interlanguage links ULS says "not found" when searching for the name of the current content language
Open, MediumPublic

Description

Reported at https://www.mediawiki.org/wiki/Topic:Wcilkujnulnxcf7c and https://www.mediawiki.org/w/index.php?title=Talk:Reading/Web/Desktop_Improvements&oldid=4701323#Language_switching_(Desktop_Improvements):_search_field_of_language .

To reproduce:

  1. Make sure that you have enabled the desktop improvements interface in your preferences in the French Wikipedia.
  2. Go to https://fr.wikipedia.org/wiki/American_Standard_Code_for_Information_Interchange
  3. Click "76 langues" at the top of the page.
  4. Search for fr.

Observed: "Cette page n’est pas disponible dans la langue que vous recherchez" ("This page is not available in the language you searched for").

What should happen instead: This sentence probably shouldn't be shown because, evidently, the page is available in French. French is not one of the language in the ULS panel, because the user is already looking at the article in French. Some options I can think of:

  • Show nothing at all.
  • Show French as if it's a usual result, and let the user click on it and just show the same thing. Maybe it will make the user feel better :)
  • Say "You are reading this in French".

Maybe something else. I trust the designers to come up with something nice.

Event Timeline

I like the idea of showing the current language in some disabled state with an explanation:

image.png (517×1 px, 166 KB)