Page MenuHomePhabricator

'Add link' function in Wikipedia creates items with wrong language code
Open, NormalPublic


If a new item is created with the 'Add links' function in Wikipedia, labels are set with language codes equal project prefix.
e.g. item is created with sitelink to -> label is set for language 'simple'.

See Also:
T39459: [Task] Don't try to add labels in non-existing languages: restrict to Language::isKnownLanguageTag



Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:19 AM
bzimport set Reference to bz64649.
bzimport added a subscriber: Unknown Object (MLST).
Pasleim created this task.Apr 30 2014, 9:48 AM

WikidataClient should not *try* to add such a label, but WikidataRepo should reject them anyway (bug 37459); marking as dependent.

hoo added a comment.May 3 2014, 10:43 PM

A site's real language (eg. simple isn't a language) should be added to the sites table and then be propagated to JS (via PHP). With that information, this bug could be fixed.

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Danmichaelo added a subscriber: Danmichaelo.
Liuxinyu970226 set Security to None.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 22 2015, 11:46 AM

What about WikibaseRepo->getSettings()->getSetting( 'canonicalLanguageCodes' )?

Restricted Application added a subscriber: PokestarFan. · View Herald TranscriptJul 25 2017, 3:28 AM