From 50f4c0cf17d85a405097cc237ef4a6d07d704cd9 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Mon, 13 Oct 2003 09:54:39 +0000 Subject: [PATCH] bugfix --- philter/philter/include/plugin_header.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/philter/philter/include/plugin_header.inc.php b/philter/philter/include/plugin_header.inc.php index fa26d49..e4294e1 100644 --- a/philter/philter/include/plugin_header.inc.php +++ b/philter/philter/include/plugin_header.inc.php @@ -13,6 +13,9 @@ class HdrPlugin extends MatchPlugin { function name() { return _i18n('2_hdr'); } function to_js() { + $_2_dests = _i18n('2_dests'); + $_2_contains = _i18n('2_contains'); + $_2_not_contains = _i18n('2_not_contains'); return <<',0,false,data[1]==0); + hdr_s.options[0] = new Option('<$_2_dests>',0,false,data[1]==0); hdr_s.options[1] = new Option('Subject:',1,false,data[1]==1); hdr_s.options[2] = new Option('From:',2,false,data[1]==2); hdr_s.options[3] = new Option('To:',3,false,data[1]==3); @@ -40,8 +43,8 @@ function(Node, data) { op_s.setAttribute('name', Node.name+'[2]'); Node.appendChild(op_s); - op_s.options[0] = new Option('"._i18n('2_contains')."',0,false,data[2]==0); - op_s.options[1] = new Option('"._i18n('2_not_contains')."',1,false,data[2]==1); + op_s.options[0] = new Option('$_2_contains',0,false,data[2]==0); + op_s.options[1] = new Option('$_2_not_contains',1,false,data[2]==1); op_s.options[2] = new Option(' = ',2,false,data[2]==2); op_s.options[3] = new Option(' != ',3,false,data[2]==3); op_s.options[4] = new Option(' >= ',4,false,data[2]==4); -- 2.1.4