https://bugzilla.wikimedia.org/show_bug.cgi?id=48744
Web browser: ---
Bug ID: 48744
Summary: Even if all the aliases for a specific language have
been removed, the language code still exists
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
For example, query with
http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q43684&languages=zh-cn&format=jsonfm&props=aliases
will get
{
"entities": {
"q43684": {
"id": "q43684",
"type": "item",
"aliases": {
"zh-cn": [
]
}
}
},
"success": 1
}
data.entities['q43684'].aliases['zh-cn'] = [];
It is an empty set.
If one enters an alias, then removes it, there could be an empty set left.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l