Last modified: 2012-05-12 21:37:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37511, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35511 - Add localized name of Wikipedia in result set
Add localized name of Wikipedia in result set
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SiteMatrix (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-27 01:01 UTC by Patrick Reilly
Modified: 2012-05-12 21:37 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch (1.21 KB, patch)
2012-03-27 01:30 UTC, Sam Reed (reedy)
Details
Slightly better patch (1.04 KB, patch)
2012-03-27 01:53 UTC, Sam Reed (reedy)
Details

Description Patrick Reilly 2012-03-27 01:01:17 UTC
We need an authoritative localized version of the name of various Wikipedia returned in the result set.
Comment 1 Sam Reed (reedy) 2012-03-27 01:04:36 UTC
The $wgSitename for each site? Or something else?

And where do you want it outputting? The API? The special page?
Comment 2 Patrick Reilly 2012-03-27 01:05:41 UTC
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
Comment 3 Patrick Reilly 2012-03-27 01:29:34 UTC
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
Comment 4 Sam Reed (reedy) 2012-03-27 01:30:23 UTC
Created attachment 10333 [details]
Patch
Comment 5 Sam Reed (reedy) 2012-03-27 01:53:15 UTC
Created attachment 10334 [details]
Slightly better patch
Comment 6 Sam Reed (reedy) 2012-03-27 01:53:30 UTC
I'll probably commit this after sleep
Comment 7 Sam Reed (reedy) 2012-03-27 20:38:59 UTC
https://gerrit.wikimedia.org/r/3823

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links