parent
07ef1bdf2b
commit
6bbf496ab2
|
|
@ -132,7 +132,7 @@ class Preference extends Model
|
||||||
*/
|
*/
|
||||||
public function getLocaleOptions()
|
public function getLocaleOptions()
|
||||||
{
|
{
|
||||||
$locales = Config::get('app.localeOptions', [
|
$localeOptions = [
|
||||||
'cs' => [Lang::get('system::lang.locale.cs'), 'flag-cz'],
|
'cs' => [Lang::get('system::lang.locale.cs'), 'flag-cz'],
|
||||||
'da' => [Lang::get('system::lang.locale.da'), 'flag-dk'],
|
'da' => [Lang::get('system::lang.locale.da'), 'flag-dk'],
|
||||||
'en' => [Lang::get('system::lang.locale.en'), 'flag-us'],
|
'en' => [Lang::get('system::lang.locale.en'), 'flag-us'],
|
||||||
|
|
@ -162,7 +162,9 @@ class Preference extends Model
|
||||||
'zh-tw' => [Lang::get('system::lang.locale.zh-tw'), 'flag-tw'],
|
'zh-tw' => [Lang::get('system::lang.locale.zh-tw'), 'flag-tw'],
|
||||||
'nb-no' => [Lang::get('system::lang.locale.nb-no'), 'flag-no'],
|
'nb-no' => [Lang::get('system::lang.locale.nb-no'), 'flag-no'],
|
||||||
'el' => [Lang::get('system::lang.locale.el'), 'flag-gr'],
|
'el' => [Lang::get('system::lang.locale.el'), 'flag-gr'],
|
||||||
]);
|
];
|
||||||
|
|
||||||
|
$locales = Config::get('app.localeOptions', $localeOptions);
|
||||||
|
|
||||||
// Sort locales alphabetically
|
// Sort locales alphabetically
|
||||||
asort($locales);
|
asort($locales);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue