Last modified: 2012-05-12 21:37:40 UTC
We need an authoritative localized version of the name of various Wikipedia returned in the result set.
The $wgSitename for each site? Or something else? And where do you want it outputting? The API? The special page?
e.g., we should have the string Википедия in the {"code":"ru","name":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","site":[{"url":"http:\/\/ru.wikipedia.org","dbname":"ruwiki","code":"wiki"}, entry of http://en.wikipedia.org/w/api.php?action=sitematrix&format=json
It appears that: $wgConf->loadFullData(); echo $wgConf->get( 'wgSitename', 'ruwiki' ); returns: Википедия So, this should be helpful. (In reply to comment #2) > e.g., we should have the string Википедия in the > {"code":"ru","name":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","site":[{"url":"http:\/\/ru.wikipedia.org","dbname":"ruwiki","code":"wiki"}, > entry of http://en.wikipedia.org/w/api.php?action=sitematrix&format=json
Created attachment 10333 [details] Patch
Created attachment 10334 [details] Slightly better patch
I'll probably commit this after sleep
https://gerrit.wikimedia.org/r/3823