Fredrik Jervfors 20 年之前
父節點
當前提交
565315b004

+ 27 - 27
plugins/squirrelspell/modules/check_me.mod

@@ -389,23 +389,23 @@ if ($errors){
        <tr>
        <tr>
         <td colspan="4">
         <td colspan="4">
          <table border="0" cellpadding="0" cellspacing="3" width="100%">
          <table border="0" cellpadding="0" cellspacing="3" width="100%">
-              <tr align="center" bgcolor="<?php echo $color[9] ?>">
+          <tr align="center" bgcolor="<?php echo $color[9] ?>">
            <?php
            <?php
-              SpellLink('sqspellChange()',
-                  _("Change this word"),
-                  _("Change"));
-              SpellLink('sqspellChangeAll()',
-                  _("Change ALL occurances of this word"),
-                  _("Change All"));
-              SpellLink('sqspellIgnore()',
-                  _("Ignore this word"),
-                  _("Ignore"));
-              SpellLink('sqspellIgnoreAll()',
-                  _("Ignore ALL occurances this word"),
-                  _("Ignore All"));
-              SpellLink('sqspellRemember()',
-                  _("Add this word to your personal dictionary"),
-                  _("Add to Dic"));
+           SpellLink('sqspellChange()',
+                   _("Change this word"),
+                   _("Change"));
+         SpellLink('sqspellChangeAll()',
+                 _("Change ALL occurances of this word"),
+                 _("Change All"));
+         SpellLink('sqspellIgnore()',
+                 _("Ignore this word"),
+                 _("Ignore"));
+         SpellLink('sqspellIgnoreAll()',
+                 _("Ignore ALL occurances this word"),
+                 _("Ignore All"));
+         SpellLink('sqspellRemember()',
+                 _("Add this word to your personal dictionary"),
+                 _("Add to Dic"));
            ?>
            ?>
           </tr>
           </tr>
          </table>
          </table>
@@ -418,15 +418,15 @@ if ($errors){
         <td colspan="4" align="center" bgcolor="<?php echo $color[9] ?>">
         <td colspan="4" align="center" bgcolor="<?php echo $color[9] ?>">
          <?php
          <?php
              echo '<input type="button" value="  '
              echo '<input type="button" value="  '
-                . _("Close and Commit")
-                . '  " onclick="if (confirm(\''
-                . _("The spellcheck is not finished. Really close and commit changes?")
-                . '\')) sqspellCommitChanges()" />'
-                . ' <input type="button" value="  '
-                . _("Close and Cancel")
-                . '  " onclick="if (confirm(\''
-                . _("The spellcheck is not finished. Really close and discard changes?")
-                . '\')) self.close()" />';
+                 . _("Close and Commit")
+                 . '  " onclick="if (confirm(\''
+                 . _("The spellcheck is not finished. Really close and commit changes?")
+                 . '\')) sqspellCommitChanges()" />'
+                 . ' <input type="button" value="  '
+                 . _("Close and Cancel")
+                 . '  " onclick="if (confirm(\''
+                 . _("The spellcheck is not finished. Really close and discard changes?")
+                 . '\')) self.close()" />';
          ?>
          ?>
         </td>
         </td>
        </tr>
        </tr>
@@ -441,7 +441,7 @@ if ($errors){
   /**
   /**
    * AREN'T YOU SUCH A KNOW-IT-ALL!
    * AREN'T YOU SUCH A KNOW-IT-ALL!
    */
    */
-  $msg='<form onsubmit="return false"><div align="center">'.
+  $msg='<form onsubmit="return false"><div align="center">' .
        '<input type="submit" value="  ' . _("Close") .
        '<input type="submit" value="  ' . _("Close") .
        '  " onclick="self.close()" /></div></form>';
        '  " onclick="self.close()" /></div></form>';
   sqspell_makeWindow(null, _("No errors found"), null, $msg);
   sqspell_makeWindow(null, _("No errors found"), null, $msg);
@@ -454,4 +454,4 @@ if ($errors){
  * End:
  * End:
  * vim: syntax=php et ts=4
  * vim: syntax=php et ts=4
  */
  */
-?>
+?>

+ 4 - 4
plugins/squirrelspell/modules/crypto_badkey.mod

@@ -84,10 +84,10 @@ function sqspell_dict_reencrypted() {
     sqspell_makePage(_("Successful re-encryption"), null, $msg);
     sqspell_makePage(_("Successful re-encryption"), null, $msg);
   } else {
   } else {
     $msg = '<p>'
     $msg = '<p>'
-      . _("Your personal dictionary was re-encrypted successfully. Please close this window and click \"Check Spelling\" button again to start your spellcheck over.")
-      . '</p><form><p align="center"><input type="button" value=" '
-      . _("Close this Window") . ' "'
-      . 'onclick="self.close()" /></p></form>';
+        . _("Your personal dictionary was re-encrypted successfully. Please close this window and click \"Check Spelling\" button again to start your spellcheck over.")
+        . '</p><form><p align="center"><input type="button" value=" '
+        . _("Close this Window") . ' "'
+        . 'onclick="self.close()" /></p></form>';
     sqspell_makeWindow(null, _("Dictionary re-encrypted"), null, $msg);
     sqspell_makeWindow(null, _("Dictionary re-encrypted"), null, $msg);
   }
   }
   exit;
   exit;

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

@@ -94,7 +94,7 @@ if ($crypted){
         . '</form>';
         . '</form>';
 }
 }
 sqspell_makePage(_("Personal Dictionary Crypto Settings"),
 sqspell_makePage(_("Personal Dictionary Crypto Settings"),
-    "crypto_settings.js", $msg);
+        "crypto_settings.js", $msg);
 
 
 /**
 /**
  * For Emacs weenies:
  * For Emacs weenies:

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

@@ -60,7 +60,7 @@ if (! empty($words_ary)){
    * Click on some words first, Einstein!
    * Click on some words first, Einstein!
    */
    */
   sqspell_makePage(_("Personal Dictionary"), null,
   sqspell_makePage(_("Personal Dictionary"), null,
-      '<p>' . _("No changes requested.") . '</p>');
+          '<p>' . _("No changes requested.") . '</p>');
 }
 }
 
 
 /**
 /**

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

@@ -67,7 +67,7 @@ if (sizeof($new_langs)>1) {
 sqspell_saveSettings($new_langs);
 sqspell_saveSettings($new_langs);
 
 
 sqspell_makePage(_("International Dictionaries Preferences Updated"),
 sqspell_makePage(_("International Dictionaries Preferences Updated"),
-    null, $msg);
+        null, $msg);
 
 
 /**
 /**
  * For Emacs weenies:
  * For Emacs weenies:

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

@@ -42,7 +42,7 @@ if (function_exists("mcrypt_generic")) {
 } else {
 } else {
   $msg .= '<li>'
   $msg .= '<li>'
     . _("Personal dictionary encryption options are not available") 
     . _("Personal dictionary encryption options are not available") 
-    . ')</em></li>';
+    . '</li>';
 }
 }
 $msg .= "</ul>\n";
 $msg .= "</ul>\n";
 sqspell_makePage( _("SquirrelSpell Options Menu"), null, $msg);
 sqspell_makePage( _("SquirrelSpell Options Menu"), null, $msg);

+ 8 - 4
plugins/squirrelspell/setup.php

@@ -18,23 +18,25 @@ if (! defined('SM_PATH')) define('SM_PATH','../../');
 
 
 /**
 /**
  * Standard SquirrelMail plugin initialization API.
  * Standard SquirrelMail plugin initialization API.
+ *
  * @return void
  * @return void
  */
  */
 function squirrelmail_plugin_init_squirrelspell() {
 function squirrelmail_plugin_init_squirrelspell() {
   global $squirrelmail_plugin_hooks;
   global $squirrelmail_plugin_hooks;
   $squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
   $squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
-    'squirrelspell_setup';
+      'squirrelspell_setup';
   $squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
   $squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
-    'squirrelspell_optpage_register_block';
+      'squirrelspell_optpage_register_block';
   $squirrelmail_plugin_hooks['options_link_and_description']['squirrelspell'] =
   $squirrelmail_plugin_hooks['options_link_and_description']['squirrelspell'] =
-    'squirrelspell_options';
+      'squirrelspell_options';
   $squirrelmail_plugin_hooks['right_main_after_header']['squirrelspell'] =
   $squirrelmail_plugin_hooks['right_main_after_header']['squirrelspell'] =
-    'squirrelspell_upgrade';
+      'squirrelspell_upgrade';
 }
 }
 
 
 /**
 /**
  * This function formats and adds the plugin and its description to the
  * This function formats and adds the plugin and its description to the
  * Options screen.
  * Options screen.
+ *
  * @return void
  * @return void
  */
  */
 function squirrelspell_optpage_register_block() {
 function squirrelspell_optpage_register_block() {
@@ -59,6 +61,7 @@ function squirrelspell_optpage_register_block() {
 /**
 /**
  * This function adds a "Check Spelling" link to the "Compose" row
  * This function adds a "Check Spelling" link to the "Compose" row
  * during message composition.
  * during message composition.
+ *
  * @return void
  * @return void
  */
  */
 function squirrelspell_setup() {
 function squirrelspell_setup() {
@@ -127,4 +130,5 @@ function squirrelspell_upgrade() {
 function squirrelspell_version() {
 function squirrelspell_version() {
   return '0.5cvs';
   return '0.5cvs';
 }
 }
+
 ?>
 ?>