user web: fix boolean type preferences for non-english languages where PREF_BOOL is used

svn path=/trunk/boinc/; revision=21553
This commit is contained in:
Rytis Slatkevičius 2010-05-17 16:13:23 +00:00
parent 8af015681a
commit c2ffa60527
2 changed files with 11 additions and 4 deletions

View File

@ -3681,3 +3681,10 @@ Charlie 17 May 2010
BOINCListCtrl.cpp, .h
mac/
MacAccessiblity.cpp, .h
Rytis 17 May 2010
- user web: fix boolean type preferences for non-english languages where
PREF_BOOL is used
html/inc/
prefs_util.inc

View File

@ -96,12 +96,12 @@ class PREF_BOOL extends PREF {
function show_form($prefs, $error) {
$tag = $this->tag;
if ($this->invert) {
$disp_yes = tra("no");
$disp_no = tra("yes");
$disp_yes = "no";
$disp_no = "yes";
$val = !$prefs->$tag;
} else {
$disp_yes = tra("yes");
$disp_no = tra("no");
$disp_yes = "yes";
$disp_no = "no";
$val = $prefs->$tag;
}
echo "<td class=fieldvalue>"