[go: up one dir, main page]

Page MenuHomePhabricator

Special:Nearby should use language fallback for labels and descriptions
Open, MediumPublic

Description

I have the interface set to English and my language fallback chain includes German, but I see a number of items on Special:Nearby where the label is shown as "No label defined" when the item has a German label and/or no description is shown when the item has a German description.

Event Timeline

Nikki raised the priority of this task from to Needs Triage.
Nikki updated the task description. (Show Details)
Nikki added a project: Wikidata.
Nikki subscribed.

If I switch the interface language to Danish, it gets weirder. Some items only show the ID, some items show "No label defined" (in English...) and the ID in brackets and some items show the English label.

I checked all the items shown, none of the items have Danish labels, all have German labels and some have English labels. All the ones which show the English label have English labels (obviously) and all the ones which show "No label defined" don't have an English label. All the ones which show only the ID have English labels too. It appears to sometimes fallback to English, sometimes not, and never fallback to German.

"No label defined" comes from the display title, which doesn't always exist. When there is a display title, then it is not multilingual and is cached in one language (usually english, but not always)

https://www.mediawiki.org/wiki/Manual:$wgAllowDisplayTitle

I don't think we want to have display title in nearby for Wikidata and need to investigate it more ...

Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.

Can this be resolved some time soon? Without looking into the codebase, it sounds like it shouldn't be too involved a matter, so perhaps suitable for people interested in contributing an easy fix, so can be offered to newer volunteer devs? @Bmueller?

This might become a bit worse with the introduction of the mul language code.

@Nikki could you please share a URL where the issue can be replicated?
I can't replicate on https://www.wikidata.org/wiki/Special:Nearby?uselang=de#/coord/52.52,13.405 for example.

https://www.wikidata.org/wiki/Special:Nearby#/coord/52.4973925,13.3365673 is around my place. With interface set to English:

image.png (382×1 px, 74 KB)

And with interface set to Spanish:

image.png (300×1 px, 58 KB)

In the Spanish one the ones that show Q-IDs should be falling back to the English labels.

Sorry. I fixed the image permissions.

https://www.wikidata.org/wiki/Q110736644 has a label in English but not Spanish. Spanish should fall back to English. So if I have set my interface to Spanish it should show me the available English label similar to the other places in Wikidata. Does that help?