Page MenuHomePhabricator

There must be a space before the fallback language item in Wikidata
Open, Needs TriagePublic

Description

If you go to https://www.wikidata.org/wiki/Q5136499?uselang=pi , you'll see the English item name at the top (Clube Esportivo Lajeadense), the the label "English" next to it. ("pi" is the code of a language into which this label is unlikely to be translated soon.)

If you want to select the label with your mouse, for example in order to copy it, you'll have to be very careful with the last word, because there is no actual space between the word "Lajeadense" and the word "English". In particular, if you double click the word to select it, "LajeadenseEnglish" is the word that will be selected.

Here's the HTML code:

<span class="wikibase-title-label">
<span dir="ltr" lang="en">Clube Esportivo Lajeadense</span>
<sup class="wb-language-fallback-indicator">English</sup>
</span>

The HTML markup makes the words look distinct, but doesn't create a true word boundary. There must be a real space there.

The space is needed not only in the title of the page, but also in other places where the italic fallback language tag is shown. For example, if you scroll down the same page, in the "sport" statement you'll see "association football English", and for the purpose of word boundary, "football" and "English" are squashed into one word, so if you double-click "English", "footballEnglish" will be selected.

Event Timeline

I have noticed this as well when I need to form a relatively small number of QuickStatements queries in a non-Bengali language (i.e. not in my interface language) and I have to remove "ইংরেজি" or some other language name from the text file I'm using as my canvas after ripping the results from Special:Search.

As to your remark on Pali, @Amire80, I'm sure there are Brazilian Buddhist footballers out there for whom rendering the name of their club in that sacred language may be useful to them. (Right now I won't add such a label to the item you brought up, however, since piwiki uses both the Latin and Devanagari scripts and it would be immensely helpful to have both pi-deva and pi-latn language codes first—a subject for another task.)