utf-8 is already converted by ja_JP extra functions.
[squirrelmail.git] / plugins / squirrelspell / modules / forget_me.mod
index cdfa6abe93d24775af2114cc9d6603c84d533714..24a5421d181b0bd68fa9b7b9f6486352deb7f75b 100644 (file)
@@ -4,7 +4,7 @@
  * --------------
  * Squirrelspell module
  *
- * Copyright (c) 1999-2002 The SquirrelMail development team
+ * Copyright (c) 1999-2003 The SquirrelMail development team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This module deletes the words from the user dictionary. Called
  * @version $Date$
  */
 
-global $words_ary, $sqspell_use_app, $SQSPELL_VERSION;
+global $SQSPELL_VERSION;
+
+$words_ary = $_POST['words_ary'];
+$sqspell_use_app = $_POST['sqspell_use_app'];
+
 /**
  * If something needs to be deleted, then $words_ary will be
  * non-zero length.
@@ -25,7 +29,7 @@ if (sizeof($words_ary)){
   $words=sqspell_getWords();
   $lang_words = sqspell_getLang($words, $sqspell_use_app);
   $msg = '<p>'
-     . sprintf(_("Deleting the following entries from <strong>%s</strong> dictionary:", $sqspell_use_app)) .
+     . sprintf(_("Deleting the following entries from <strong>%s</strong> dictionary:"), $sqspell_use_app)
      . '</p>'
      . "<ul>\n";
   for ($i=0; $i<sizeof($words_ary); $i++){
@@ -68,7 +72,7 @@ if (sizeof($words_ary)){
   }
   $words_dic .= "# End\n";
   sqspell_writeWords($words_dic);
-  $msg .= '</ul><p>' _("All done!") . "</p>\n";
+  $msg .= '</ul><p>' _("All done!") . "</p>\n";
   sqspell_makePage(_("Personal Dictionary Updated"), null, $msg);
 } else {
   /**