mirror of https://github.com/BOINC/boinc.git
Web: fix language selection mechanism
New browsers pass "auto" as the first accepted language. This broke the language selection logic. BTW, the language selection logic is a kludge and I don't think it works correctly for e.g. "es en da"
This commit is contained in:
parent
5722bf5f94
commit
3ba2d9c83d
|
@ -277,7 +277,7 @@ for ($i=0; $i<sizeof($client_languages); $i++) {
|
||||||
|
|
||||||
// if main language is english, look no further
|
// if main language is english, look no further
|
||||||
//
|
//
|
||||||
if ($i == 0 && ($language == 'en' || $language2 == 'en')) {
|
if ((count($languages_in_use)==0) && ($language == 'en' || $language2 == 'en')) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue