i18n bugfix
authorPierre Habouzit <madcoder@debian.org>
Wed, 10 Sep 2003 16:44:52 +0000 (16:44 +0000)
committerPierre Habouzit <madcoder@debian.org>
Wed, 10 Sep 2003 16:44:52 +0000 (16:44 +0000)
philter/philter/include/emails.inc.php

index 7c302f8..8bf6c3c 100644 (file)
@@ -97,11 +97,10 @@ class EmailPool {
      * @return  the string containing the form
      */
     function to_form() {
-        global $philter;
         $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>".$philter->i18n('email')."</th>\n"
-            .  "    <th>".$philter->i18n('active')."</th>\n"
+            .  "<tr><th>"._i18n('email')."</th>\n"
+            .  "    <th>"._i18n('active')."</th>\n"
             .  "    <th>&nbsp;</th>\n"
             .  "</tr>\n";
 
@@ -114,7 +113,7 @@ 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;
         }
@@ -123,17 +122,17 @@ class EmailPool {
             .   "<center>\n"
             .   "    <input id=\"emailsDel\" type=\"hidden\" name=\"emails[del]\" value=\"-1\" />\n"
             .   "    <input type=\"submit\" name=\"emails[apply]\" value=\""
-            .   $philter->i18n('apply_changes')."\" />\n"
+            .   _i18n('apply_changes')."\" />\n"
             .   "</center>\n"
             .   "</form>\n";
 
-        $val = $philter->i18n('your_email');
+        $val = _i18n('your_email');
         
         $res .= "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
             .   "<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=\"".
-                $philter->i18n('add')."\" />\n"
+                _i18n('add')."\" />\n"
             .   "</form>\n";
         
         return $res;