From: Craig Andrews Date: Tue, 21 Jul 2009 19:10:00 +0000 (-0400) Subject: Fixed: Browser language preference's not used when using Google Chrome X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=52d51fad3c4716a1978553921ececee571cf9971;p=quix0rs-gnu-social.git Fixed: Browser language preference's not used when using Google Chrome Thanks bambeeq http://laconi.ca/trac/ticket/620 --- diff --git a/lib/language.php b/lib/language.php index 3ea3dd2aa0..9ad2d31bd4 100644 --- a/lib/language.php +++ b/lib/language.php @@ -53,7 +53,7 @@ function client_prefered_language($httplang) if (!empty($httplang[2][$i])) { // if no q default to 1.0 $client_langs[$httplang[2][$i]] = - ($httplang[6][$i]? (float) $httplang[6][$i] : 1.0); + ($httplang[6][$i]? (float) $httplang[6][$i] : 1.0 - ($i*0.01)); } if (!empty($httplang[3][$i]) && empty($client_langs[$httplang[3][$i]])) { // if a catchall default 0.01 lower