mirror of https://github.com/BOINC/boinc.git
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:
parent
8af015681a
commit
c2ffa60527
|
@ -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
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue