Obsolete array.php
[squirrelmail.git] / plugins / translate / setup.php
index 202edcde0480f606b78bfd5be4b598c09e327f78..c01cebcae2c3e92ab5f758786134e75ea54a2aa5 100644 (file)
@@ -1,5 +1,14 @@
 <?php
 
+/**
+ * setup.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
+
 /* Easy plugin that sends the body of the message to a new browser
 window using the specified translator.  It can also translate your
 outgoing message if you send it to someone in a different country. 
@@ -51,8 +60,8 @@ function translate_read_form() {
     if (is_int($pos)) {
         $new_body = substr($new_body, 0, $pos);
     }
-                     
-    $trans = get_html_translation_table('HTMLENTITIES');
+
+    $trans = get_html_translation_table(HTML_ENTITIES);
     $trans[' '] = '&nbsp;';
     $trans = array_flip($trans);
     $new_body = strtr($new_body, $trans);
@@ -472,7 +481,7 @@ function translate_form_dictionary($message) {
                             sprintf( _("%s to %s"),
                                      _("Spanish"),
                                      _("English"))) .
-         '<\SELECT>'.
+         '</SELECT>'.
          'Dictionary.com: <INPUT TYPE="submit" VALUE="'._("Translate").'">';
 
   translate_table_end();