fr i18n bugfixes
authorPierre Habouzit <madcoder@debian.org>
Wed, 10 Sep 2003 16:42:48 +0000 (16:42 +0000)
committerPierre Habouzit <madcoder@debian.org>
Wed, 10 Sep 2003 16:42:48 +0000 (16:42 +0000)
philter/philter/include/filter.inc.php
philter/philter/index.php
philter/philter/locales/philter.en.inc.php
philter/philter/locales/philter.fr.inc.php

index 7b4c38f..ce95d9d 100644 (file)
@@ -82,7 +82,7 @@ class Filter {
     }
 
     function to_js() {
-        $res = "filter[0] = { all: 1, block:1, name:'[ new rule ]', matches: [], actions: [] };\n";
+        $res = "filter[0] = { all: 1, block:1, name:'"._i18n('new_rule')."', matches: [], actions: [] };\n";
         
         foreach($this->rules as $id=>$rule)
             $res .= "filter[$id] = ".$rule->to_js().";\n";
index 0ba4f99..f2a13d1 100644 (file)
@@ -108,7 +108,7 @@ echo $mail_pool->to_form();
         <tr class="impair"><th><?php i18n('filter_rule_conf');?>
         </th></tr><tr class="impair"><td>
             <input type="hidden" value="0" id="ruleId" name="rule[id]" />
-            Name of this rule :
+            <?php i18n('rule_name'); ?>
             <input type="text" size="60" value="" id="ruleName" name="rule[name]"
                 onfocus="text_onfocus(this,'<?php i18n('new_rule');?>')"
                 onblur="text_onblur(this,'<?php i18n('new_rule');?>')" />
index 18a0663..d58da15 100644 (file)
@@ -27,6 +27,7 @@ $philter->config['i18n'] = Array(
     'new_rule' => '[ new rule ]',
     
     'filter_rule_conf' => 'Global Options',
+    'rule_name' => 'Name of this rule : ',
     'all_matches' => 'each match must be true',
     'one_match' => 'only one match need to be true',
     'blocking_rule' => 'stop after this rule if matched',
index d2d8fb9..b65f60f 100644 (file)
@@ -8,7 +8,7 @@
 
 $philter->config['i18n'] = Array(
 // index.php
-    'up' => 'Haut'
+    'up' => 'Haut',
     'dn' => 'Bas',
     'del' => 'Suppr.',
     'submit' => 'Valider',
@@ -27,6 +27,7 @@ $philter->config['i18n'] = Array(
     'new_rule' => '[ nvlle règle ]',
     
     'filter_rule_conf' => 'Options globales',
+    'rule_name' => 'Nom pour cette règle : ',
     'all_matches' => 'chaque critère doit être validé',
     'one_match' => 'un unique critère vérifié suffit',
     'blocking_rule' => 'arrêter de filtrer après cette règle si applicable',