Nikki added a comment.

  I think the following changes in rebuild.php (GitHub 
<https://github.com/wikimedia/mediawiki-extensions-cldr/blob/master/rebuild.php>)
 would make the CLDR extension use CLDR's `mni-mtei` for MediaWiki's `mni`:
  
  After line 142:
  
    } elseif ( $code === 'mni' ) {
        $realCode = 'mni-beng';
    } elseif ( $code === 'mni-mtei' ) {
        $realCode = 'mni';
  
  It might also need the following after line 62:
  
    $languages['mni-beng'] = 'Foo';
  
  I think those changes will make it create files for `mni-beng` too, but 
T357853 <https://phabricator.wikimedia.org/T357853> asks for both scripts to be 
supported, so that sounds like something we would want anyway.
  
  CLDR's `mni-mtei` doesn't contain many names though, so we would probably 
still need to create LocalNamesMni.php with the list from the first comment. 
I've put a properly formatted version in P61865 
<https://phabricator.wikimedia.org/P61865>.
  
  (Also: I think `getRealCode()` would be a lot clearer if `$code` were changed 
to `$cldrCode` and `$realCode` to `$mwCode`. Neither code is less "real" (if 
anything, the MediaWiki codes would be, since MediaWiki has some non-standard 
codes), and without reading the description, it's not clear whether the 
function is turning the CLDR code into the corresponding MediaWiki code or vice 
versa)

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

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

To: Nikki
Cc: Nikki, Lydia_Pintscher, Aklapper, Awangba_Mangang, Danny_Benjafield_WMDE, 
S8321414, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, 
Akuckartz, Dringsim, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
KimKelting, Esc3300, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Nemo_bis, Raymond, Arrbee, KartikMistry, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to