Fixes major bug in the translation system.

The bug caused the default language to be ignored if set to "English" 
regardless of whether this was done through the browser or through a
cookie.

svn path=/trunk/boinc/; revision=17012
This commit is contained in:
Janus B. Kristensen 2009-01-25 10:45:07 +00:00
parent db8f15e396
commit a9e7cea54b
1 changed files with 4 additions and 1 deletions

View File

@ -154,6 +154,9 @@ function tra($text /* ...arglist... */){
if (isset($language_lookup_array[$language][$text])) {
$text = $language_lookup_array[$language][$text];
break;
} else if ($language=="en"){
// This language is defined in the code and is always available
break;
}
}