Tonina_Zhelyazkova_WMDE moved this task from Doing to Peer Review on the 
Wikidata-Campsite (Wikidata-Campsite-Iteration-∞) board.
Tonina_Zhelyazkova_WMDE added a comment.


  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.

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

WORKBOARD
  https://phabricator.wikimedia.org/project/board/3539/

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

To: Tonina_Zhelyazkova_WMDE
Cc: Tonina_Zhelyazkova_WMDE, Nikki, jhsoby, Amire80, Lydia_Pintscher, 
Lea_Lacroix_WMDE, Aklapper, Mohammed_Sadat_WMDE, 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, abian, 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