[Plugin: Polylang] Android language detection not done correctly
-
My Android 4.0.4 sends the header
HTTP_ACCEPT_LANGUAGE: de-CH, en-USthis is changed to:
$accept_langs = array( 'de-CH' => 1, 'en-US' => 1, )in the function
core.php:get_preferred_language().Expected behaviour: Going to the german version.
Real behaviour: Going to the english version.It seems that get_preferred_language() does not cope with identical q values and can lose the language order (first de-CH then en-US).
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[Plugin: Polylang] Android language detection not done correctly’ is closed to new replies.