mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Sort countries by locale, according to user's language and country settings, using already existing method to determine locale
This commit is contained in:
parent
dd5ce3e58d
commit
7cf73e6967
@ -459,13 +459,12 @@ class country
|
||||
|
||||
if(class_exists('Collator') && class_exists('Locale'))
|
||||
{
|
||||
$col = new \Collator($GLOBALS['egw_info']['user']['preferences']['common']['lang'].'_'.
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['country']);
|
||||
$col = new \Collator(common::setlocale());
|
||||
$col->asort($this->countries_translated);
|
||||
}
|
||||
else
|
||||
{
|
||||
asort($this->countries_translated);
|
||||
natcasesort($this->countries_translated);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user