From c2ffa6052756dd86e1d78a03055695615efcfc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Mon, 17 May 2010 16:13:23 +0000 Subject: [PATCH] user web: fix boolean type preferences for non-english languages where PREF_BOOL is used svn path=/trunk/boinc/; revision=21553 --- checkin_notes | 7 +++++++ html/inc/prefs_util.inc | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index 61cc4844e0..a63a611f8b 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/inc/prefs_util.inc b/html/inc/prefs_util.inc index a168b24cc6..4ddd4ff6d7 100644 --- a/html/inc/prefs_util.inc +++ b/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 ""