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: wikidata-b...@lists.wikimedia.org
          Reporter: li3939...@gmail.com
                CC: wikidata-b...@lists.wikimedia.org
    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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to