Page MenuHomePhabricator

"No results found" displayed when entering (most) monolingual text-only language codes on Commons
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Start adding a statement on a Commons file
  • Select a monolingual text property, e.g. Sandbox-Monolingual text
  • Click "Select language" and enter the code sjt (some others with the same problem: pyu, sjk, gml, gmy)

What happens?:

The name of the language is shown in the input field, while the search results say "No results found."

Bildschirmfoto_2022-03-22_01-33-44.png (114×196 px, 4 KB)

Pressing enter will select the language, allowing the statement to be added, but there is no way to select the language with the mouse.

What should have happened instead?:

The language should be shown in the search results.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

As far as I can tell, this affects languages which have been enabled for monolingual text in WikibaseContentLanguages.php but have not been added to langdb, since codes such as cnr, nr and tzl which are in both files work fine.

Event Timeline

Nikki renamed this task from "No results found" displayed when entering (most) monolingual text-only language codes to "No results found" displayed when entering (most) monolingual text-only language codes on Commons.Mar 22 2022, 10:51 AM

I haven't debugged deeply, but I'm not sure that their absence from langdb is necessarily the problem, even though it might be.

A more likely problem is that the language list is not set correctly when initializing the jquery.uls plugin. It must be set correctly when calling the .uls() method.