[debugged] browser language undetected with IE8
-
all is in the title, if you set xililanguage with browser language with IE8, and two favorite language (fr-FR and en-EN ) it won’t work. I didn’t test with IE7 and IE6 but should be the same bug. There is below the corrected function match_languages() line 2386 of the xili-language.php file.
// to debug just add “$browserlanguage = strtolower($browserlanguage);” after the first foreach loop of match_languages() function, because IE send HTTP header in uppercase, and the function match_languages() line 2386 of xili-language.php file compare with lowercase.
function match_languages ( $listofprefs, $listlanguages ) { foreach($listofprefs as $browserlanguage => $priority) { /* match root languages to give similar in site - first : five chars langs*/ // HERE THE CORRECTION $browserlanguage = strtolower($browserlanguage); [...]
I wish it will save times. Great add-on, better written than q-translate, congratulation ! i luv the autocreation of translated post. For more information, you can contact me on z8po.dyndns.info or @z8po.
- The topic ‘[debugged] browser language undetected with IE8’ is closed to new replies.