Last modified: 2014-11-13 11:29:18 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 T74038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72038 - make actual and source language explicit in serialization (wbgetentities) for language fallback
make actual and source language explicit in serialization (wbgetentities) for...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-14 13:28 UTC by Aude
Modified: 2014-11-13 11:29 UTC (History)
4 users (show)

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


Attachments

Description Aude 2014-10-14 13:28:19 UTC
when requesting wbgetentities with the languagefallback param, in xml format:

https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&languages=ii&languagefallback=

vs. in json format:

https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&languages=ii&format=json&languagefallback=

xml has 'for-language' like:

<label language="zh-cn" value="道格拉斯·亚当斯" for-language="ii" />

json format seems to be missing it.
Comment 1 Daniel Kinzler 2014-10-17 13:46:25 UTC
In JSON, this is represented by the label's key being different from the value of the language field. I agree that it would be nicer to have this modelled explicitly as a separate for-language field. Note that in cases where translitteration applied, there may be a third language involved (the "original" or "database" language).
Comment 2 Jan Zerebecki 2014-11-13 11:29:18 UTC
Perhaps also make sure the naming in xml and json is the same.

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


Navigation
Links