some help texts, only in french for the moment
[old-projects.git] / philter / philter / include / emails.inc.php
index 4ef2277..1cc1eaf 100644 (file)
@@ -99,8 +99,8 @@ class EmailPool {
     function to_form() {
         $res = "<form id=\"emails\" action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
             .  "<table class=\"bicol\" cellpadding=\"1\" cellspacing=\"1\" width=\"95%\" align=\"center\">\n"
-            .  "<tr><th>Email</th>\n"
-            .  "    <th>Active</th>\n"
+            .  "<tr><th>"._i18n('email')."</th>\n"
+            .  "    <th>"._i18n('active')."</th>\n"
             .  "    <th>&nbsp;</th>\n"
             .  "</tr>\n";
 
@@ -113,24 +113,27 @@ class EmailPool {
                 .   "    <input type=\"checkbox\" name=\"emails[$id][active]\""
                 .   ($email->is_active() ? " checked=\"checked\"" : "")." /></td>\n"
                 .   "<td align=\"center\"><input type=\"button\" "
-                .   "value=\"Del\" onclick=\"del_onclick($id)\" /></td>\n"
+                .   "value=\""._i18n('del')."\" onclick=\"del_onclick($id)\" /></td>\n"
                 .   "</tr>\n";
             $pair = !$pair;
         }
 
         $res .= "</table>\n"
-            .   "<center>\n"
+            .   "<br /><center>\n"
             .   "    <input id=\"emailsDel\" type=\"hidden\" name=\"emails[del]\" value=\"-1\" />\n"
-            .   "    <input type=\"submit\" name=\"emails[apply]\" value=\"Apply changes\" />\n"
-            .   "</center>\n"
+            .   "    <input type=\"submit\" name=\"emails[apply]\" value=\""
+            .   _i18n('apply_changes')."\" />\n"
+            .   "</center><br />\n"
             .   "</form>\n";
 
-        $val = 'your email ...';
+        $val = _i18n('your_email');
         
         $res .= "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
+            .   _i18n('pool_help2')
             .   "<input type=\"text\" name=\"emails[new]\" size=\"50\" value='$val' "
             .   "    onfocus=\"text_onfocus(this,'$val')\" onblur=\"text_onblur(this,'$val')\" />\n"
-            .   "<input type=\"submit\" name=\"emails[add]\" value=\"Add\" />\n"
+            .   "<input type=\"submit\" name=\"emails[add]\" value=\"".
+                _i18n('add')."\" />\n"
             .   "</form>\n";
         
         return $res;