thiemowmde added projects: Mediawiki-extensions-PropertySuggester, Need-volunteer.
thiemowmde triaged this task as "Lowest" priority.
thiemowmde moved this task from incoming to needs discussion or investigation on the Wikidata board.
thiemowmde added a comment.

The reason for this behavior can be seen here:"">. There is no language "en-US" in MediaWiki. Most code falls back to the default "en". But the API module that is responsible for suggesting properties does not.

I can see how confusing this is. Unfortunately I don't have an idea for an easy fix. The error message is neither in Wikibase nor in the PropertySuggester, but in the basic MediaWiki core API code.

  • We could try to teach the GetSuggestions.php API module to accept unknown language codes, but that alone would not fix the issue. The API would not fail any more, but still return nothing. It would need to fall back to English, and I don't know if this is a good idea.
  • We could try to validate the language code in the frontend _javascript_ code before passing it to GetSuggestions.php. But since core seems to be fine with any string, I don't know how such a validation (against what?) would look like.




To: thiemowmde
Cc: thiemowmde, PokestarFan, Mbch331, Lydia_Pintscher, daniel, Aklapper, Yurik, Lahi, Gq86, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, LawExplorer, Wikidata-bugs, aude, Sjoerddebruin, TheDJ
Wikidata-bugs mailing list

Reply via email to