← Back to team overview

mahara-contributors team mailing list archive

[Bug 548035] Re: Country dropdown menu should be sorted by locale

 

*** This bug is a duplicate of bug 597097 ***
    https://bugs.launchpad.net/bugs/597097

** This bug has been marked a duplicate of bug 597097
   langconfig needs a new command to display names correctly

-- 
Country dropdown menu should be sorted by locale
https://bugs.launchpad.net/bugs/548035
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Confirmed

Bug description:
Without the LC_COLLATE locale variable set to one of the UTF-8 locales, php will put "Åland Islands" in the wrong place for English (either before Afghanistan or after Zimbabwe).

When LC_COLLATE is set to something like 'en_NZ.utf8' using setlocale() in php, the sort order is fixed.  But if we just set the variable in the default server environment, it seems to get zapped by the default apache startup script which sets LANG=C.

We could try to change that, or have a configurable site option which searches for installed locales that match the language and then prompts the admin to choose one.

(see bug #1333)

This bug was imported from eduforge.org, see:
https://eduforge.org/tracker/index.php?func=detail&aid=1452&group_id=176&atid=739