Some small bugfixes. Still testing.
[squirrelmail.git] / plugins / squirrelspell / sqspell_functions.php
index 00b031bde17627741e9fe4723cec3cdd1a6527e8..189a0e206ccd2fbaef62c09894c718355d624a9b 100644 (file)
@@ -367,6 +367,14 @@ function sqspell_getWords(){
         . '<p align="center"><input type="submit" value="' 
         . _("Proceed") . ' &gt;&gt;"></p>'
         . '</form>';
         . '<p align="center"><input type="submit" value="' 
         . _("Proceed") . ' &gt;&gt;"></p>'
         . '</form>';
+      /**
+       * Add some string vars so they can be i18n'd.
+       */
+      $msg .= "<script type='text/javascript'><!--\n"
+        . "var ui_choice = \"" . _("You must make a choice") ."\";\n"
+        . "var ui_candel = \"" . _("You can either delete your dictionary or type in the old password. Not both.") . "\";\n"
+        . "var ui_willdel = \"" . _("This will delete your personal dictionary file. Proceed?") . "\";\n"
+        . "//--></script>\n";
       /**
        * See if this happened in the pop-up window or when accessing
        * the SpellChecker options page. 
       /**
        * See if this happened in the pop-up window or when accessing
        * the SpellChecker options page. 
@@ -374,7 +382,7 @@ function sqspell_getWords(){
        */
       global $SCRIPT_NAME;
       if (strstr($SCRIPT_NAME, "sqspell_options")){
        */
       global $SCRIPT_NAME;
       if (strstr($SCRIPT_NAME, "sqspell_options")){
-       sqspell_makePage( _("Error Decrypting Dictionary"), 
+       sqspell_makePage(_("Error Decrypting Dictionary"), 
                          "decrypt_error.js", $msg);
       } else {
        sqspell_makeWindow(null, _("Error Decrypting Dictionary"), 
                          "decrypt_error.js", $msg);
       } else {
        sqspell_makeWindow(null, _("Error Decrypting Dictionary"),