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

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.

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

Samwilson subscribed.

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 subscribed.

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).