mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Sort countries by locale, according to user's language and country settings
This commit is contained in:
parent
99657a094b
commit
21fca0b702
@ -456,6 +456,16 @@ class country
|
||||
$this->countries_translated[$k] = $translated;
|
||||
}
|
||||
}
|
||||
asort($this->countries_translated);
|
||||
|
||||
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->asort($this->countries_translated);
|
||||
}
|
||||
else
|
||||
{
|
||||
asort($this->countries_translated);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user