Nikki added a comment.

  In T262269#6928952 <https://phabricator.wikimedia.org/T262269#6928952>, 
@Tonina_Zhelyazkova_WMDE wrote:
  
  > Some findings:
  > --------------
  >
  > As @Nikki commented, Termbox receives the code `sr-latn`, but Wikibase does 
not recognize it as a content language, therefor it's not visible in the 
termbox.
  > Wikibase uses MediaWiki's `LanguageNameUtils` to get a list of content 
languages. And from what I can tell the utils read from `Names.php` which is a 
list of language codes and their names. That list currently does not contain 
`sr-latn` but rather `sr-el` (see 
https://github.com/wikimedia/mediawiki/blob/master/languages/data/Names.php#L422).
 There are some mapping mechanisms which turn `sr-el` into `sr-latn` but that 
is of no use to us since we send `sr-latn` to the language util.
  >
  > The only fix I could find (see the above gerrit change) is to add `sr-latn` 
to this `Names.php` list. I'm not sure that's the right place to solve the 
problem so I'll wait for a review from some WMF language people.
  
  That sounds like it will add `sr-latn` //alongside// `sr-el`, i.e. without 
migrating the `sr-el` data to `sr-latn`, without preventing people from using 
`sr-el` instead of `sr-latn` and without `sr-el` in a user's Babel box causing 
the `sr-el` data to be shown in the termbox. If so, the problem would still 
exist - we would still have/allow data stored using a language code which users 
can't add to the termbox.

TASK DETAIL
  https://phabricator.wikimedia.org/T262269

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tonina_Zhelyazkova_WMDE, Nikki
Cc: Tonina_Zhelyazkova_WMDE, Nikki, jhsoby, Amire80, Lydia_Pintscher, 
Lea_Lacroix_WMDE, Aklapper, Mohammed_Sadat_WMDE, Invadibot, maantietaja, 
Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, Iflorez, Kent7301, 
alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, 
Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, Mahir256, QZanden, 
LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, Scott_WUaS, Jonas, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to