Author: preilly
Description:
We need an authoritative localized version of the name of various Wikipedia returned in the result set.
Version: unspecified
Severity: enhancement
• bzimport | |
Mar 27 2012, 1:01 AM |
F9142: 35511.patch | |
Nov 22 2014, 12:18 AM |
Author: preilly
Description:
We need an authoritative localized version of the name of various Wikipedia returned in the result set.
Version: unspecified
Severity: enhancement
The $wgSitename for each site? Or something else?
And where do you want it outputting? The API? The special page?
preilly wrote:
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
preilly wrote:
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