Last modified: 2011-07-11 13:53:05 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 T20878, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18878 - Addition of the local language name for other languages in action=sitematrix
Addition of the local language name for other languages in action=sitematrix
Product: MediaWiki extensions
Classification: Unclassified
SiteMatrix (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on: 9465
  Show dependency treegraph
Reported: 2009-05-22 20:03 UTC by Sam Reed (reedy)
Modified: 2011-07-11 13:53 UTC (History)
5 users (show)

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


Description Sam Reed (reedy) 2009-05-22 20:03:08 UTC
Is it possible to (at least), have the english language variant of the various languages on the API page for sitematrix? Though, i suspect doing the local version of it is probably AS easy, if not easy

eg on the en.wp
    <language code="de" name="Deutsch" localname="German">
        <site url="" code="wiki" />
        <site url="" code="wiktionary" />
        <site url="" code="wikibooks" />
        <site url="" code="wikinews" />
        <site url="" code="wikiquote" />
        <site url="" code="wikisource" />
        <site url="" code="wikiversity" />

It was being requested in #wikimedia-tech, so hence posting this request
Comment 1 Roan Kattouw 2009-05-22 22:09:25 UTC
Moving to the SiteMatrix component; this is not a core API module, but an extension.
Comment 2 Brion Vibber 2009-05-26 21:42:14 UTC
Note that localized names of other languages are not currently available in our localization files... the cldr extension provides them but I'm not sure if in a way that's easily accessible atm.
Comment 3 Robert Leverington 2009-05-26 22:00:45 UTC
LanguageNames::getNames() return an array of language names in a given language (the code of the language you are requesting names in is the first parameter.

For example LanguageNames::getNames( 'en' ); would return array( 'German', 'French', 'English', ... ); and LanguageNames::getName( 'fr' ) would return array( 'Anglais', 'Français',  ... );

Comment 4 Brion Vibber 2009-06-22 22:47:28 UTC
Committed in r52298:

* (bug 18878) Include UI-lang names of foreign languages in SiteMatrix if CLDR LanguageNames extension is present.
In a 'title' tooltip for table UI, in 'localname' attributes for raw and API output modes.

If the LanguageNames extension has not been loaded, then the info simply won't be included. Note that this update being visible on live sites will require both the software update to SiteMatrix and enabling of LanguageNames.
Comment 5 Sam Reed (reedy) 2011-07-11 13:53:05 UTC
I wonder if this should be reworked due to Nikerabbit fixing (bug 9465) in r91875

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