Last modified: 2014-02-10 15:57:32 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 T60627, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58627 - action=parse&prop=langlinks should provide language names
action=parse&prop=langlinks should provide language names
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Umherirrender
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-18 08:21 UTC by Michael M.
Modified: 2014-02-10 15:57 UTC (History)
6 users (show)

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


Attachments

Description Michael M. 2013-12-18 08:21:19 UTC
Currently action=parse&prop=langlinks returns something like

{
 "lang": "de",
 "url": "https://de.wikipedia.org/wiki/Foo",
 "*": "Foo"
}

which is not a real substitute for the deprecated languageshtml, as you need a second request or a static list to get a useful text/tooltip for the link. The API should add the name of the language (in that language and in the user's language) to the result, i.e.

{
 "lang": "de",
 "langname": "German",
 "autonym": "Deutsch",
 "url": "https://de.wikipedia.org/wiki/Foo",
 "*": "Foo"
}
Comment 1 Umherirrender 2014-02-08 19:33:14 UTC
With action=query&meta=siteinfo&siprop=interwikimap you can fetch the native language names and with action=query&meta=siteinfo&siprop=interwikimap&siinlanguagecode=de the languge names in the requested language.

But having this as extra data on action=parse sounds better to avoid multiply requests.

Not requeted, but I added the both params to prop=langlinks with Gerrit change #112245, because there it can also be helpful.
Comment 2 Gerrit Notification Bot 2014-02-09 12:31:51 UTC
Change 112332 had a related patch set uploaded by Umherirrender:
Provide language names on action=parse&prop=langlinks

https://gerrit.wikimedia.org/r/112332
Comment 3 Gerrit Notification Bot 2014-02-10 15:51:35 UTC
Change 112332 merged by jenkins-bot:
Provide language names on action=parse&prop=langlinks

https://gerrit.wikimedia.org/r/112332
Comment 4 Brad Jorsch 2014-02-10 15:57:32 UTC
Change should be deployed to WMF wikis with 1.23wmf14, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.

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


Navigation
Links