font size=-2 replaced with small
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Mar 2004 13:48:52 +0000 (13:48 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Mar 2004 13:48:52 +0000 (13:48 +0000)
fixed strings that are not extracted with gettext 0.10.40
input tags made xhtml compatible.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6958 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/spamcop/options.php
plugins/spamcop/spamcop.php

index 32e69f1383cad5bafd74145a8b00448731922b54..4b3d092242d1e5f7ad4acc7591b28b11d33917b5 100755 (executable)
@@ -82,7 +82,9 @@ spamcop_load();
       <br />
       <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0">
       <tr><td bgcolor="<?php echo $color[0]; ?>">
       <br />
       <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0">
       <tr><td bgcolor="<?php echo $color[0]; ?>">
-         <center><b><?php echo _("Options") . " - " . _("Spam reporting"); ?></b></center>
+         <center><b>
+        <?php echo _("Options") . " - " . _("Spam reporting"); ?>
+        </b></center>
       </td></tr></table>
       <br />
       
       </td></tr></table>
       <br />
       
@@ -96,7 +98,7 @@ spamcop_load();
         <tr>
          <?php
          echo html_tag('td',_("Delete spam when reported:") . "<br />\n" .
         <tr>
          <?php
          echo html_tag('td',_("Delete spam when reported:") . "<br />\n" .
-         '<font size="-2">(' . _("Only works with email-based reporting") . ')</font>',
+         '<small>(' . _("Only works with email-based reporting") . ')</small>',
          'right','','valign="top"');
          echo html_tag('td', spamcop_enable_disable($spamcop_delete,'save','delete'),'','','valign="top"');
          ?>
          'right','','valign="top"');
          echo html_tag('td', spamcop_enable_disable($spamcop_delete,'save','delete'),'','','valign="top"');
          ?>
@@ -129,14 +131,16 @@ spamcop_load();
                ?>
              </option>
            </select>
                ?>
              </option>
            </select>
-           <input type="hidden" name="action" value="meth">
-           <input type="submit" value="<?php echo _("Save Method"); ?>">
+           <input type="hidden" name="action" value="meth" />
+           <?php
+               echo '<input type="submit" value="' . _("Save Method") . "\" />\n";
+           ?>
          </td></form>
        </tr>
        <tr>
          </td></form>
        </tr>
        <tr>
-                 <?php
-         echo html_tag('td',_("Spam Service Type:"),'right');
-         ?>
+           <?php
+               echo html_tag('td',_("Spam Service Type:"),'right');
+           ?>
          <form method="post" action="options.php">
          <td>
            <select name="type">
          <form method="post" action="options.php">
          <td>
            <select name="type">
@@ -153,19 +157,23 @@ spamcop_load();
                ?>
              </option>
            </select>
                ?>
              </option>
            </select>
-           <input type="hidden" name="action" value="type">
-           <input type="submit" value="<?php echo _("Save Service Type"); ?>">
+           <?php
+           echo '<input type="hidden" name="action" value="type" />' .
+                '<input type="submit" value="' . _("Save Service Type") . "\" />\n";
+           ?>
           </td></form>
        </tr>
        <tr>
          <?php
            echo html_tag('td',_("Your SpamCop authorization code:") . "<br />" .
           </td></form>
        </tr>
        <tr>
          <?php
            echo html_tag('td',_("Your SpamCop authorization code:") . "<br />" .
-           '<font size="-2">(' . _("see below") . ')</font>','right','','valign="top"');
+           '<small>(' . _("see below") . ')</small>','right','','valign="top"');
          ?>
          <form method="post" action="options.php"><td valign="top">
            <input type="text" size="30" name="ID" value="<?php echo htmlspecialchars($spamcop_id) ?>" />
            <input type="hidden" name="action" value="save_id" />
          ?>
          <form method="post" action="options.php"><td valign="top">
            <input type="text" size="30" name="ID" value="<?php echo htmlspecialchars($spamcop_id) ?>" />
            <input type="hidden" name="action" value="save_id" />
-           <input type="submit" value="<?php echo _("Save ID"); ?>" />
+           <?php
+               echo '<input type="submit" value="' . _("Save ID") . "\" />\n";
+           ?>
          </td></form>
        </tr>
       </table>
          </td></form>
        </tr>
       </table>
index e3b005689f8087359a9d700c1f9103cb1270f06f..7a69bca7673e7bc6bb0042aa855b47325246d94f 100644 (file)
@@ -92,7 +92,7 @@ if(! sqgetGlobalVar('composesession', $composesession, SQ_SESSION) ) {
 // js_web variable is 1 only when link opens web based report page in new window
 // and in new window menu line or extra javascript code is not needed.
 if ($js_web) {
 // js_web variable is 1 only when link opens web based report page in new window
 // and in new window menu line or extra javascript code is not needed.
 if ($js_web) {
-  displayHTMLHeader('SpamCop reporting');
+  displayHTMLHeader(_("SpamCop reporting"));
   echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n";
 } else {
   displayPageHeader($color,$mailbox);
   echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n";
 } else {
   displayPageHeader($color,$mailbox);
@@ -149,16 +149,14 @@ echo "</p>";
 <tr>
 <td align="left" valign="top">
 <?PHP if (isset($js_web) && $js_web) {
 <tr>
 <td align="left" valign="top">
 <?PHP if (isset($js_web) && $js_web) {
-   ?><form method="post" action="javascript:return false">
-  <input type="button" value="Close Window" 
-  onClick="window.close(); return true;">
-   <?PHP
+  echo '<form method="post" action="javascript:return false">';
+  echo '<input type="button" value="' . _("Close Window") . "\" onClick=\"window.close(); return true;\" />\n";
 } else {
    ?><form method="post" action="../../src/right_main.php">
 } else {
    ?><form method="post" action="../../src/right_main.php">
-  <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>">
-  <input type="hidden" name="startMessage" value="<?PHP echo htmlspecialchars($startMessage) ?>">
-  <input type="submit" value="Cancel / Done">
-   <?PHP
+  <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>" />
+  <input type="hidden" name="startMessage" value="<?PHP echo htmlspecialchars($startMessage) ?>" />
+<?PHP
+  echo '<input type="submit" value="' . _("Cancel / Done") . "\" />";
 }
   ?></form>
 </td>
 }
   ?></form>
 </td>
@@ -171,14 +169,15 @@ echo "</p>";
       $report_email = 'quick.' . $spamcop_id . '@spam.spamcop.net';
    $form_action = SM_PATH . 'src/compose.php';
 ?>  <form method="post" action="<?PHP echo $form_action?>">
       $report_email = 'quick.' . $spamcop_id . '@spam.spamcop.net';
    $form_action = SM_PATH . 'src/compose.php';
 ?>  <form method="post" action="<?PHP echo $form_action?>">
-  <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>">
-  <input type="hidden" name="spamcop_is_composing" value="<?PHP echo htmlspecialchars($passed_id) ?>">
-  <input type="hidden" name="send_to" value="<?PHP echo $report_email?>">
-  <input type="hidden" name="subject" value="reply anyway">
-  <input type="hidden" name="identity" value="0">
-  <input type="hidden" name="session" value="<?PHP echo $session?>">
-  <input type="submit" name="send" value="Send Spam Report">
-<?PHP } else {
+  <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>" />
+  <input type="hidden" name="spamcop_is_composing" value="<?PHP echo htmlspecialchars($passed_id) ?>" />
+  <input type="hidden" name="send_to" value="<?PHP echo $report_email?>" />
+  <input type="hidden" name="subject" value="reply anyway" />
+  <input type="hidden" name="identity" value="0" />
+  <input type="hidden" name="session" value="<?PHP echo $session?>" />
+<?php
+  echo '<input type="submit" name="send" value="' . _("Send Spam Report") . "\" />\n";
+} else {
    $spam_message = mime_fetch_body ($imap_stream, $passed_id, $passed_ent_id, 50000);
 
    if (strlen($spam_message) == 50000) {
    $spam_message = mime_fetch_body ($imap_stream, $passed_id, $passed_ent_id, 50000);
 
    if (strlen($spam_message) == 50000) {
@@ -197,15 +196,16 @@ echo "</p>";
      echo "<form method=\"post\" action=\"$action_url\" name=\"submitspam\"".
        " enctype=\"multipart/form-data\" target=\"_blank\">\n";
    } ?>
      echo "<form method=\"post\" action=\"$action_url\" name=\"submitspam\"".
        " enctype=\"multipart/form-data\" target=\"_blank\">\n";
    } ?>
-  <input type="hidden" name="action" value="submit">
-  <input type="hidden" name="oldverbose" value="1">
-  <input type="hidden" name="code" value="<?PHP echo $spamcop_id ?>">
-  <input type="hidden" name="spam" value="<?PHP echo htmlspecialchars($spam_message); ?>">
-  <input type="submit" name="x1" value="Send Spam Report">
-<?PHP }
+  <input type="hidden" name="action" value="submit" />
+  <input type="hidden" name="oldverbose" value="1" />
+  <input type="hidden" name="code" value="<?PHP echo $spamcop_id ?>" />
+  <input type="hidden" name="spam" value="<?PHP echo htmlspecialchars($spam_message); ?>" />
+    <?php
+       echo '<input type="submit" name="x1" value="' . _("Send Spam Report") . "\" />\n";
+    }
 ?>  </form>
 </td>
 </tr>
 </table>
 ?>  </form>
 </td>
 </tr>
 </table>
-  </body>
+</body>
 </html>
 </html>