Page MenuHomePhabricator

World languages should appear in their correspondent regions too on the language selector
Closed, ResolvedPublic

Description

The language selector organises languages by region. There are some languages that belong to multiple regions and some of those are identified as Worldwide. Worldwide languages such as Spanish should also appear under their corresponding regions, but that does not seem to be the case currently.
This seems to be a regression since I recall this working as described before.

For example, when viewing a page available in many languages using compact language links, you can see that Spanish ("español") does not appear in Europe or America regions where it should appear in both of them.

Screen Shot 2016-06-15 at 09.28.38.png (393×892 px, 75 KB)

Event Timeline

We had intentionally avoided listing the world wide languages more than once. See https://github.com/wikimedia/jquery.uls/blob/master/src/jquery.uls.lcd.js#L97

T41921: Languages appear repeated for each region in search results despite being the only result - it said to avoid listing more than once while searching, but we are hiding it always if the language repeats

I am inclined to undo the changes done for T41921: Languages appear repeated for each region in search results despite being the only result and avoid the unncessary complexity. Let the listing be consistant when searching or not and does not play hide and seek depending on number of search results.

Amire80 subscribed.

Verified in production.