i18n
[old-projects.git] / philter / philter / include / plugin_autoreply.inc.php
index 561e4f9..c1924aa 100644 (file)
@@ -10,7 +10,7 @@
 class AutoReplyPlugin extends ActionPlugin {
     function FwdPlugin() { $this->ActionPlugin(); }
     function rtti() { return 2; }
-    function name() { return "Auto-Reply"; }
+    function name() { return _i18n('2_auto_reply'); }
 
     function to_js() {
         $res  = "function(Node, data) {\n"
@@ -18,13 +18,11 @@ class AutoReplyPlugin extends ActionPlugin {
             .   "    var ta = document.createElement('textarea');\n"
             .   "    ta.setAttribute('name', Node.name+'[1]');\n"
             .   "    ta.setAttribute('cols', '74');\n"
-            .   "    ta.setAttribute('rows', '2');\n"
-            .   "    ta.setAttribute('onfocus', 'ta_onfocus(this);');\n"
-            .   "    ta.setAttribute('onblur', 'ta_onblur(this);');\n"
+            .   "    ta.setAttribute('rows', '10');\n"
             .   "    if(data[1]) ta.value = data[1];\n"
             .   "\n"
             .   "    Node.appendChild(document.createElement('br'));\n"
-            .   "    Node.appendChild(document.createTextNode(' Your mail : '));\n"
+            .   "    Node.appendChild(document.createTextNode('"._i18n('2_your_mail')."'));\n"
             .   "    Node.appendChild(document.createElement('br'));\n"
             .   "    Node.appendChild(ta);\n"
             .   "}";