Page MenuHomePhabricator

Use correct term language when creating items from the client
Open, NormalPublic

Description

When we create an items on the fly to allow pages on two client wikis to be connected via sitelinks, we should use the correct language code for the labels of the new item. The "link pages" JS code derives labels from the page titles, which are (by definition) in the wiki's content language. So we need to know the content language for both wikis involved. In particular, we have to know the content language of the "other" wiki.

Current situation:
We use the other wiki's interwiki prefix (or subdomain?) and hope that this is the content language. This is not true e.g. for the case of simple.wikipedia.org: it's interwiki prefix is "simple", while the content language is "en".

Proposed solution:
To get the "other" wiki's content language, we should use information from the Site facility. Note however that the Site facility does not currently have the correct information on content language or even interwiki prefix for all wikis on the Wikimedia cluster.

Event Timeline

daniel created this task.Jun 10 2016, 10:36 AM
Restricted Application added a project: Wikidata. · View Herald TranscriptJun 10 2016, 10:36 AM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript
daniel triaged this task as High priority.Jun 10 2016, 10:51 AM

Setting prio to "high", since using language codes like "simple" for terms is incorrect. This is a form of data corruption.

daniel renamed this task from Ensure use of correct term language when creating items from the client. to Use correct term language when creating items from the client.Jun 10 2016, 10:53 AM
Addshore moved this task from incoming to in progress on the Wikidata board.Jun 22 2016, 1:01 PM
Lydia_Pintscher lowered the priority of this task from High to Normal.Jan 24 2019, 2:49 PM