Page MenuHomePhabricator

Language fallback for labels should include the wiki's content language
Open, Needs TriagePublic

Assigned To
None
Authored By
Nikki
Dec 2 2023, 5:53 AM
Referenced Files
F41554122: no-fallback4.png
Dec 2 2023, 5:53 AM
F41554115: no-fallback2.png
Dec 2 2023, 5:53 AM
F41554120: no-fallback3.png
Dec 2 2023, 5:53 AM
F41554112: no-fallback1.png
Dec 2 2023, 5:53 AM
Subscribers

Description

When a wiki's main language is not English, the main language for the labels will most likely also not be English. The language fallback does not take this into account, and anyone viewing pages in another language will not see labels unless the content language happens to already be one of the fallback languages for the interface language.

For example, https://data.biblissima.fr/ has the content language set to French (mw.config.get("wgContentLanguage"); returns "fr"). The pages are in French and the items have labels in French. Because of my browser settings, it gives me the interface in German.

If I go to https://data.biblissima.fr/w/Sp%C3%A9cial:Toutes_les_pages?namespace=120&uselang=de, the first page in the list is shown as "(Q1000)" with no label, because it only has a label in French, and French is not one of the fallback languages for German.

Screenshots of how it is shown and the labels for the item being shown:
no-fallback1.png (112×251 px, 4 KB) no-fallback3.png (503×670 px, 35 KB)

Similarly, if I go to https://data.biblissima.fr/w/Item:Q283909?uselang=de, the value for the "Verfasser" statement is shown as "Q1003", because that item also only has a label in French.

Screenshots of how it is shown and the labels for the item being shown:
no-fallback2.png (158×544 px, 5 KB) no-fallback4.png (605×652 px, 32 KB)