Last modified: 2013-11-18 16:58:29 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 T59190, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57190 - Add option to fetch in another language
Add option to fetch in another language
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
CommonsMetadata (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://commons.wikimedia.org/w/api.p...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-18 15:10 UTC by Raimond Spekking
Modified: 2013-11-18 16:58 UTC (History)
3 users (show)

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


Attachments

Description Raimond Spekking 2013-11-18 15:10:45 UTC
Add an option to fetch the information in another language

Currently all values are in English:
"ImageDescription", "DateTimeOriginal", "Credit", maybe other are worth to fetch a translated value.

Keep in mind a fallback to English.
Comment 1 Tisza Gergő 2013-11-18 16:30:48 UTC
This is already possible, with the iiextmetadatalanguage / iiextmetadatamultilang parameters (see doc[1]). It should work at least for descriptions using the standard language templates, and for file-based metadata (EXIF etc). Language fallbacks are also handled properly.


[1] http://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii
Comment 2 Raimond Spekking 2013-11-18 16:58:29 UTC
Thanks for pointing me to the iiextmetadatalanguage /
iiextmetadatamultilang parameters -> WFM

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


Navigation
Links