diff options
author | RedMatrix <info@friendica.com> | 2014-05-24 08:51:50 +1000 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-05-24 08:51:50 +1000 |
commit | 47bd0b3211102aacfcf60911e33e8ada359a93c6 (patch) | |
tree | e3349d4b1f3ed3c69350690d5b586ce87bc70aa3 /include/language.php | |
parent | 059b6cd411e7034bd6b1b6de02dc34984259bd11 (diff) | |
parent | bc389ff9341d8efec367b2b07c2d1b55be11b8d0 (diff) | |
download | volse-hubzilla-47bd0b3211102aacfcf60911e33e8ada359a93c6.tar.gz volse-hubzilla-47bd0b3211102aacfcf60911e33e8ada359a93c6.tar.bz2 volse-hubzilla-47bd0b3211102aacfcf60911e33e8ada359a93c6.zip |
Merge pull request #471 from solstag/master
Language selection: case-insensitive and system language
Diffstat (limited to 'include/language.php')
-rw-r--r-- | include/language.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/language.php b/include/language.php index cfaa855dd..855d94505 100644 --- a/include/language.php +++ b/include/language.php @@ -43,8 +43,6 @@ function get_browser_language() { arsort($langs, SORT_NUMERIC); } } - else - $langs['en'] = 1; return $langs; } @@ -65,6 +63,7 @@ function get_best_language() { if(isset($langs) && count($langs)) { foreach ($langs as $lang => $v) { + $lang = strtolower($lang); if(file_exists("view/$lang") && is_dir("view/$lang")) { $preferred = $lang; break; |