Page MenuHomePhabricator

Languages should be sorted following the case insensitive alphabetic order
Closed, ResolvedPublic

Description

Hello,
currently, if we click on the Language button in the upper right corner, we get Afrikaans, ..., English, ..., Zazaki, asturianu, ..., français, ..., then we have the Greek script, the Cyrrilic script, Arabic script and so on.
This is qite disturbing for users who come from Wikimedia projects since the languages do not follow this order.
For Latin script, I think it should follow a case insensitive order, which gives Afrikaans, asturianu, ... English, ..., français, ... Zazaki.
For the non-Latin script, I do not know what would be the best solution. Probably following what is done on the Wikimedia projects is also the good way to do in order not to disturb users.

Event Timeline

Pamputt created this task.Apr 1 2019, 5:52 AM
Restricted Application added a project: Community-Tech. · View Herald TranscriptApr 1 2019, 5:52 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@jmatazzoni Flagging this for you. I think one thing we could do here is use ULS, like with SVG Translate.

This comment was removed by jmatazzoni.
MaxSem claimed this task.Apr 1 2019, 10:55 PM
MaxSem moved this task from Ready to In Development on the Community-Tech-Sprint board.
MaxSem reassigned this task from MaxSem to Mooeypoo.Apr 1 2019, 10:58 PM
MaxSem added a subscriber: MaxSem.
This comment was removed by jmatazzoni.

The plan here now is to prepend the language codes in the menu,

Samwilson added a subscriber: Samwilson.

The first part of this is to sort them in the right order in the bundle: https://github.com/wikimedia/ToolforgeBundle/pull/19 (I suspect we actually meant to do it this way originally).

The language list is now in the right order on the staging site.

(Had to manually clear the cache files, as seems to be the case whenever we introduce or remove PHP classes; not sure why.)

dom_walden added a subscriber: dom_walden.

On Staging, ordering is alphabetical with respect to the character code.

I checked that the same languages are on staging as are on production (but different order).

jmatazzoni closed this task as Resolved.Apr 10 2019, 10:17 PM
jmatazzoni moved this task from Product sign-off to Done on the Community-Tech-Sprint board.