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.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T124286 [Epic] Wikidata language support | |||
Open | None | T76216 [Epic] Language fallback | |||
Open | None | T117158 Special:Nearby should use language fallback for labels and descriptions |
Event Timeline
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 ...
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?
@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:
And with interface set to Spanish:
In the Spanish one the ones that show Q-IDs should be falling back to the English labels.
@Lydia_Pintscher could you change the permissions on your images? To make sure I understand the Q code here should be showing "Gemeindehaus der Kaiser-Wilhelm-Gedächtniskirche Lietzenburger Straße 37/39" for English language since that one exists?
e,g,
Actual | Expected |
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?
The API response doesn't contain the English label. Is there a way to alert this request to make sure it includes the fallbacks?:
I can review a patch if you someone in WMDE can work out what this query should be!