Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1941
T110668 Issue
Active
Public
Actions
Authored by
Addshore
on Aug 28 2015, 2:18 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Project Tags
Wikidata
Referenced Files
F2473498: T110668 Issue
Aug 28 2015, 2:18 PM
2015-08-28 14:18:22 (UTC+0)
Subscribers
Ricordisamoa
Issue @ T110668
So currently we have... In XML:
<labels>
<label language="en" value="FOO" />
<label language="en-gb" value="some label" />
</labels>
And in JSON:
"labels": [
{
"language": "en",
"value": "FOO"
},
{
"language": "en-gb",
"value": "some label"
}
],
We need to get to the XML remaining the same:
<labels>
<label language="en" value="FOO" />
<label language="en-gb" value="some label" />
</labels>
And the json using dicts and keys!:
"labels": {
"en": {
"language": "en",
"value": "FOO"
},
"en-gb": {
"language": "en-gb",
"value": "some label"
}
},
Thoughts?
Event Timeline
Addshore
edited the content of this paste.
(Show Details)
Aug 28 2015, 2:18 PM
2015-08-28 14:18:22 (UTC+0)
Addshore
changed the title of this paste from untitled to
T110668 Issue
.
Addshore
updated the paste's language from
autodetect
to
autodetect
.
Addshore
added a project:
Wikidata
.
Addshore
mentioned this in
T110668: PropertyId is not formatted with label when saving / adding new statements
.
Aug 28 2015, 2:27 PM
2015-08-28 14:27:26 (UTC+0)
Ricordisamoa
subscribed.
Sep 9 2015, 3:55 AM
2015-09-09 03:55:31 (UTC+0)
Log In to Comment