]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/language.php
Fixed: Browser language preference's not used when using Google Chrome
[quix0rs-gnu-social.git] / lib / language.php
index 3ea3dd2aa0a5237412a980fb1266fce75d10e9e9..9ad2d31bd4b7cd21e75076cb102e9d97807ea2b3 100644 (file)
@@ -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