i18n
[old-projects.git] / philter / philter / index.php
index bdddba1..0ba4f99 100644 (file)
@@ -39,8 +39,7 @@ require("include/js_factory.inc.php");
 
 /********** globals plugins **********/
 ?>
-<div class="rubrique">The global configuration
-</div>
+<div class="rubrique"><?php i18n('global_title'); ?></div>
 <?php
 if(count($philter->config['global_plugin'])) {
     echo "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
@@ -60,8 +59,7 @@ if(count($philter->config['global_plugin'])) {
 /********** emails **********/
 ?>
 <br />
-<div class="rubrique">The redirection address pool
-</div>
+<div class="rubrique"><?php i18n('pool_title'); ?></div>
 <?php
 echo $mail_pool->to_form();
 
@@ -69,13 +67,12 @@ echo $mail_pool->to_form();
 ?>
 
 <br />
-<div class="rubrique">The individuals rules
-</div>
+<div class="rubrique"><?php i18n('filter_title'); ?></div>
 <table width="95%" cellspacing="0" cellpadding="2" align="center">
 <tr><td width="25%" valign="top">
         <form action="<?php echo $_SERVER['REQUEST_URI']?>" method="post" id="order" name="order" onsubmit="return false;">
         <table class="bicol" width="100%" cellpadding="1" cellspacing="1">
-        <tr><th>Filter List</th></tr>
+        <tr><th><?php i18n('filter_list_title');?></th></tr>
         <tr><td>
 <?php
             foreach($filter->rules as $id=>$rule)
@@ -85,8 +82,9 @@ echo $mail_pool->to_form();
                         : (isset($_POST['order']['select']) ? $_POST['order']['select'] : 0));
                 
             echo "<select size=\"16\" style=\"width:100%;\" id=\"orderSelect\" name=\"order[select]\" onchange=\"createRuleForm()\">\n";
-            echo "<option value=\"0\" ".($presel ? "" : " selected=\"selected\"")
-                .">[ new rule ]</option>\n";
+            echo "<option value=\"0\" ".($presel ? "" : " selected=\"selected\"").">";
+            i18n('new_rule');
+            echo "</option>\n";
             
             foreach($filter->rules as $id=>$rule)
                 echo "<option value=\"$id\""
@@ -95,10 +93,10 @@ echo $mail_pool->to_form();
 ?>
             </select>
         </td></tr><tr><td>
-            <input type="submit" value="Up" name="order[up]" onclick="order_up();" />
-            <input type="submit" value="Down" name="order[dn]" onclick="order_dn();" /><br />
-            <input type="submit" value="Delete" name="order[delete]" onclick="order_submit(this)" />
-            <input type="submit" value="Submit" name="order[submit]" onclick="order_submit(this)" />
+            <input type="submit" value="<?php i18n('up');?>" name="order[up]" onclick="order_up();" />
+            <input type="submit" value="<?php i18n('dn');?>" name="order[dn]" onclick="order_dn();" /><br />
+            <input type="submit" value="<?php i18n('del');?>" name="order[delete]" onclick="order_submit(this)" />
+            <input type="submit" value="<?php i18n('submit');?>" name="order[submit]" onclick="order_submit(this)" />
             <input type="hidden" value="" name="order[action]" />
         </td></tr>
         </table>
@@ -107,25 +105,27 @@ echo $mail_pool->to_form();
     <td valign="top">
         <form action="<?php echo $_SERVER['REQUEST_URI']?>" method="post" id="rule" name="rule" onsubmit="return false;">
         <table width="100%" class="bicol" cellspacing="1" cellpadding="1">
-        <tr class="impair"><th>Rule Configuration
+        <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 :
             <input type="text" size="60" value="" id="ruleName" name="rule[name]"
-                onfocus="text_onfocus(this,'[ new rule ]')" onblur="text_onblur(this,'[ new rule ]')" />
+                onfocus="text_onfocus(this,'<?php i18n('new_rule');?>')"
+                onblur="text_onblur(this,'<?php i18n('new_rule');?>')" />
             <br />
-            <input type="radio" value="1" id="ruleAll1" name="rule[all]" />All matches
-            <input type="radio" value="0" id="ruleAll0" name="rule[all]" />One match
+            <input type="radio" value="1" id="ruleAll1" name="rule[all]" /><?php i18n('all_matches');?>
+            <input type="radio" value="0" id="ruleAll0" name="rule[all]" /><?php i18n('one_match');?>
             <br />
-            <input type="checkbox" checked="checked" id="ruleBlock" name="rule[block]" />Blocking Rule
-        </td></tr><tr class="impair"><th>Matches List
+            <input type="checkbox" checked="checked" id="ruleBlock" name="rule[block]" />
+            <?php i18n('blocking_rule');?>
+        </td></tr><tr class="impair"><th><?php i18n('filter_matches_list');?>
         </th></tr><tr class="impair"><td id="matchesRow">
-        </td></tr><tr class="impair"><th>Actions List
+        </td></tr><tr class="impair"><th><?php i18n('filter_actions_list');?>
         </th></tr><tr class="impair"><td id="actionsRow">
         </td></tr><tr class="impair"><td>
-            <input type="submit" value="New Match" name="rule[new_match]" onclick="newMatch() "/>
-            <input type="submit" value="New Action" name="rule[new_action]" onclick="newAction()" />
-            <input type="submit" value="Submit" name="rule[submit]" onclick="this.form.submit()" />
+            <input type="submit" value="<?php i18n('new_match');?>" name="rule[new_match]" onclick="newMatch() "/>
+            <input type="submit" value="<?php i18n('new_action');?>" name="rule[new_action]" onclick="newAction()" />
+            <input type="submit" value="<?php i18n('submit');?>" name="rule[submit]" onclick="this.form.submit()" />
         </td></tr>
         </table>
         </form>