Page MenuHomePhabricator

ULS language selector tooltip displays titles written in original languages
Open, Needs TriagePublic

Description

Looking at ULS on https://translatewiki.net/wiki/Special:Translate?filter=%21translated&action=translate&language=lag&group=ext-0-wikimedia, I found three instances where a tooltip displays language title in the original language - e.g. instead of

<li title="Mingrelian" data-code="xmf"><a class="autonym" lang="xmf" dir="ltr">მარგალური</a></li>

the tooltip will be as following:
(1) <li title="արեւմտահայերէն" data-code="hyw"><a class="autonym" lang="hyw" dir="ltr">արեւմտահայերէն</a></li>

(2) <li title="फ़ीजी हिन्दी" data-code="hif-deva"><a class="autonym" lang="hif-deva" dir="ltr">फ़ीजी हिन्दी</a></li>

(3) <li title="𑢹𑣉𑣉" data-code="hoc"><a class="autonym" lang="hoc" dir="ltr">𑢹𑣉𑣉</a></li>

Screen Shot 2018-05-28 at 5.56.23 PM.png (356×796 px, 59 KB)

Screen Shot 2018-05-28 at 5.58.40 PM.png (230×221 px, 12 KB)

Event Timeline

I can reproduce this.

The reason is that we don't have the name of the language in user's language in all contexts. We can show it in Compact Language Links because we have the name in the user language as the tooltip on the sidebar links (it's hacky, but works).

In the long run we should make the name in the user language available in all contexts somehow (see also T188399). As a short-term solution, it may be nice to suppress the tooltip if it just shows the same info, although I'd be happy to hear @Pginer-WMF's opinion about this.

In the long run we should make the name in the user language available in all contexts somehow (see also T188399). As a short-term solution, it may be nice to suppress the tooltip if it just shows the same info, although I'd be happy to hear @Pginer-WMF's opinion about this.

It make sense to expose the language names in the user language in some way. As you mentioned, this is something to explore in the future. For the short term, showing the tooltip with the same name can help in cases where the language name was cropped with ellipsis. So I'd propose to keep it as it is until we focus on this area to make further improvements.

Vvjjkkii renamed this task from ULS language selector tooltip displays titles written in original languages to c4baaaaaaa.Jul 1 2018, 1:07 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from c4baaaaaaa to ULS language selector tooltip displays titles written in original languages .Jul 2 2018, 3:30 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.