Page MenuHomePhabricator

Fix wikidata description editing for all wikis where the language code doesn't match the domain (for example, Alemannic)
Closed, ResolvedPublic

Description

Utilize action=query&format=json&meta=siteinfo to get the correct language code

For example for zh-yue:

https://zh-yue.wikipedia.org/w/api.php?action=query&format=json&meta=siteinfo

Returns yue for query.general.lang in the response

https://zh-classical.wikipedia.org/w/api.php?action=query&format=json&meta=siteinfo

Returns lzh

This would replace the mapping dictionary in WikidataDescriptionEditingController

See T212633 for the bug reported on Android

Testing criteria:

Wikidata description editing should work as expected for all languages, with specific attention paid to`zh-yue`, zh-classical, zh-min-nan, gsw, and any other language whose wikidata description language code doesn't match the domain

Also test places geography lookup (when you search for an article in any language and tap on the article, it should move the map to the correct location). Consolidated some Wikidata code along with this change that could affect that lookup.

Event Timeline

JoeWalsh created this task.Jan 8 2019, 11:40 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 8 2019, 11:40 AM
JoeWalsh renamed this task from Utilize action=query&format=json&meta=siteinfo for edited wikidata description language codes to Fix wikidata description editing for all wikis where the language code doesn't match the domain (for example, Alemannic).Jan 8 2019, 12:27 PM
JoeWalsh claimed this task.
JoeWalsh triaged this task as Normal priority.
JoeWalsh updated the task description. (Show Details)
Pasleim added a subscriber: Pasleim.Jan 8 2019, 2:12 PM
ABorbaWMF added a subscriber: ABorbaWMF.

Working for me on 6.2.0 (1558)

JMinor closed this task as Resolved.Feb 21 2019, 9:40 PM