diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-04 15:21:51 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-04 15:21:51 -0500 |
commit | e402b079cfeaa4ecc7019df79c75b45c036fae00 (patch) | |
tree | fed39f2764f6669e52052875ce2aeab4949602db /src/etc/inc/pfsense-utils.inc | |
parent | 1e0c91d35b299c6650bfb215835a18338006af64 (diff) | |
download | pfsense-e402b079cfeaa4ecc7019df79c75b45c036fae00.zip pfsense-e402b079cfeaa4ecc7019df79c75b45c036fae00.tar.gz |
Do not sort the list of locales. That way it is easier to get to the language you want afte accidentally selecting something you no longer understand.
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 77f9bb0..0bff33f 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -2801,7 +2801,13 @@ function get_locale_list() { "tr" => gettext("Turkish"), "zh_Hans_CN" => gettext("Chinese (Simplified, China)"), ); - asort($locales); + + // If the locales are sorted, the order changes depending on the language selected. If the user accidentally + // selects the wrong language, this makes it very difficult to guess the intended language. NOT sorting + // allows the user to remember that English (say) is the second on the list and to get back to it more easily + + //asort($locales); + return $locales; } |