graf25 23 năm trước cách đây
mục cha
commit
7a2a41dd73

+ 1 - 1
plugins/squirrelspell/modules/edit_dic.mod

@@ -85,7 +85,7 @@ if (!$words){
 	   . "value=\"$words_ary[$j]\"> $words_ary[$j]<br>";
       }
       $msg .= '</td></tr></table></td></tr>'
-	 . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>".
+	 . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>"
 	 . '<input type="submit" value="' . _("Delete checked words") 
 	 . '"></form>'
 	 . '</td></tr><tr><td><hr>'

+ 2 - 2
plugins/squirrelspell/modules/forget_me.mod

@@ -25,7 +25,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 +68,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 {
   /**

+ 1 - 4
plugins/squirrelspell/setup.php

@@ -48,9 +48,7 @@ function squirrelspell_optpage_register_block() {
        array(
 	     'name' => _("SpellChecker Options"),
 	     'url'  => '../plugins/squirrelspell/sqspell_options.php',
-	     'desc' => _("Here you may set up how your personal dictionary "
-			 . "is stored, edit it, or choose which languages "
-			 . "should be available to you when spell-checking."),
+	     'desc' => _("Here you may set up how your personal dictionary is stored, edit it, or choose which languages should be available to you when spell-checking."),
 	     'js'   => TRUE);
   }
 }
@@ -84,5 +82,4 @@ function squirrelspell_setup() {
       . "</script>\n";
   }
 }
-
 ?>

+ 2 - 1
plugins/squirrelspell/sqspell_config.php

@@ -21,7 +21,8 @@ global $username, $data_dir;
  * $SQSPELL_APP = array( 'English' => 'ispell -a',
  *                     'Spanish' => 'ispell -d spanish -a' );
  */
-$SQSPELL_APP = array('English' => 'ispell -a');
+$SQSPELL_APP = array('English' => 'ispell -a',
+			'Spanish' => 'ispell -d spanish -a');
 $SQSPELL_APP_DEFAULT = 'English';
 $SQSPELL_WORDS_FILE = 
    getHashedFile($username, $data_dir, "$username.words");