Page MenuHomePhabricator

Languages appear repeated for each region in search results despite being the only result
Closed, ResolvedPublic

Description

When searching for a language which is present in many regions (e.g., English or Spanish), this single language appears many times repeated.

When several languages appear in the results, having some languages repeated in different regions is not a problem. But having a single result which is repeated multiple times users may think there are different options to chose from.

This situation may be avoided if when the user searches (and only during search) either (a) repeated languages are only shown on the WW region, (b) it is avoided to show regions with only one language if their languages are already in another region, or (c)languages in search results are not grouped by region if there are only few results (e.g., eight or less).

Example, searching for "franca" (French) in the compact language links panel on the German Wikipedia article ASCII:

צילום מסך 2017.10.29 ב.10.53.45.png (1×1 px, 149 KB)

However, the design must be consistent with T137868, so we won't go back and forth between showing and not showing the same language in several sections.

Details

Reference
bz39921

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:58 AM
bzimport set Reference to bz39921.
bzimport added a subscriber: Unknown Object (MLST).

World wide languages will not be repeated in all regions as per gerrit I4470a2

Fix was reverted. I assume that means this needs to be reconsidered.

Amire80 triaged this task as Medium priority.Oct 29 2017, 8:57 AM
Amire80 updated the task description. (Show Details)
Amire80 added a subscriber: ULS-CompactLinks.

This is a general ULS issue, but it came up repeatedly in discussions with editors about Compact Language Links, so I'm tagging it accordingly.

While this doesn't block users from finding the language that they need, it looks quite ugly, and should be fixed.

Amire80 raised the priority of this task from Medium to High.Dec 18 2017, 7:26 PM

Let's go for something like (c)languages in search results are not grouped by region if there are only few results (e.g., eight or less), but even simpler: just avoid division into regions in search results completely.

In most cases, there will be few search results, so there's no need to count whether there are many or few search results.

Now testable on deployment prep.

Tested in production, works as expected.