Fixing lines that cause warnings with xgettext
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Oct 2003 13:08:04 +0000 (13:08 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Oct 2003 13:08:04 +0000 (13:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5887 7612ce4b-ef26-0410-bec9-ea0150e637f0

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

index d9ec771cc9b2062e18a2b8992726544b70b0536d..085fd21dfa6b7e1f76f88f22879f31a7824be2cb 100755 (executable)
@@ -107,67 +107,47 @@ spamcop_load();
            <font size="-2">(see below)</font>
          </td>
          <form method="post" action="options.php"><td valign="top">
-           <input type="text" size="30" name="ID" value="<?php
-             echo htmlspecialchars($spamcop_id) ?>" />
+           <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="Save ID" />
          </td></form>
        </tr>
       </table>
+<?php
+echo "<p>";
+echo _("SpamCop is a free service that greatly assists in finding the true source of the spam and helps in letting the proper people know about the abuse.");
+echo "</p>\n";
+
+echo "<p>";
+echo _("To use it, you must get a SpamCop authorization code. There is a free <a href=\"http://spamcop.net/anonsignup.shtml\">sign up page</a> so you can use SpamCop.");
+echo "</p>\n";
+
+echo "<p>";
+echo _("<b>Before you sign up, be warned:</b> Some users have reported that the email addresses used with SpamCop find their way onto spam lists. To be safe, you can just create an email forwarding account and have all SpamCop reports get sent to there. Also, if it gets flooded with spam, you can then just delete that account with no worries about losing your real email address. Just go create an email forwarder somewhere (<a href=\"http://www.yahoo.com/\">Yahoo!</a> has a <a href=\"http://dir.yahoo.com/Business_and_Economy/Business_to_Business/Communications_and_Networking/Internet_and_World_Wide_Web/Email_Providers/Forwarding_Services/Free_Forwarding/\">list of places</a>) so that messages from system administrators and whatnot can be sent to you.");
+echo "</p>\n";
+
+echo "<p>";
+echo _("Once you have signed up with SpamCop and have received your SpamCop authorization code, you need to enable this plugin -- just click the link above.  Once enabled, you go about your normal life.  If you encounter a spam message in your mailbox, just view it.  On the right-hand side, near the top of where the message is displayed, you will see a link to report this message as spam.  Clicking on it brings you to a confirmation page. Confirming that you want the spam report sent will do different things with different reporting methods.");
+echo "</p>\n";
 
-<p>SpamCop is a free service that greatly assists in finding the true source
-of the spam and helps in letting the proper people know about the abuse.</p>
-
-<p>To use it, you must get a SpamCop authorization code.  There is a free <a
-href="http://spamcop.net/anonsignup.shtml">sign up page</a> so you can use
-SpamCop.</p>
-
-<p><b>Before you sign up, be warned:</b>  Some users have reported that the
-email addresses used with SpamCop find their way onto spam lists.  To be
-safe, you can just create an email forwarding account and have all SpamCop
-reports get sent to there.  Also, if it gets flooded with spam, you can then
-just delete that account with no worries about losing your real email address.
-Just go create an email forwarder somewhere (<a 
-href="http://www.yahoo.com/">Yahoo!</a> has a <a
-href="http://dir.yahoo.com/Business_and_Economy/Business_to_Business/Communications_and_Networking/Internet_and_World_Wide_Web/Email_Providers/Forwarding_Services/Free_Forwarding/">list
-of places</a>) so that messages from system administrators and whatnot can
-be sent to you.</p>
-
-<p>Once you have signed up with SpamCop and have received your SpamCop
-authorization code, you need to enable this plugin -- just click the link
-above.  Once enabled, you go about your normal life.  If you encounter a
-spam message in your mailbox, just view it.  On the right-hand side, near
-the top of where the message is displayed, you will see a link to report 
-this message as spam.  Clicking on it brings you to a confirmation page.
-Confirming that you want the spam report sent will do different things with
-different reporting methods.</p>
-
-<p><b>Email-based Reporting</b><br />
-Pressing the button forwards the message to the SpamCop service and will
-optionally delete the message.  From there, you just need to go to your 
-INBOX and quite soon a message should appear from SpamCop.  (It gets sent to
-the account you registered with, so make sure that your mail forwarder works!)
-Open it up, click on the appropriate link at the top, and a new browser 
-window will open.</p>
-
-<p>Currently, the quick reporting just forwards the request to the thorough
-reporting.  Also, it appears that this is for members (non-free) only.
-Hopefully this will change soon.</p>
-
-<p><b>Web-based Reporting</b><br />
-When you press the button on the confirmation page, this will pop open a new
-browser window and the SpamCop service should appear inside.  The message
-will not be deleted (working on that part), but you won't need to wait for a
-response email to start the spam reporting.</p>
-
-<p>The SpamCop service will display information as it finds it, so scroll
-down until you see a form button.  It might pause a little while it is
-looking up information, so be a little patient.  Read what it says, and 
-submit the spam.  Close the browser window.  Press Cancel or click on the
-appropriate mail folder to see messages and/or delete the spam.</p>
-
-<p><b>For more information</b> about SpamCop, it's services, spam in general, 
-and many related topics, try reading through SpamCop's <a
-href="http://spamcop.net/help.shtml">Help and Feedback</a> section.</p>
+echo "<p><b>" . _("Email-based Reporting") . "</b><br />";
+echo _("Pressing the button forwards the message to the SpamCop service and will optionally delete the message.  From there, you just need to go to your INBOX and quite soon a message should appear from SpamCop.  (It gets sent to the account you registered with, so make sure that your mail forwarder works!) Open it up, click on the appropriate link at the top, and a new browser window will open.");
+echo "</p>";
 
+echo "<p>";
+echo _("Currently, the quick reporting just forwards the request to the thorough reporting.  Also, it appears that this is for members (non-free) only. Hopefully this will change soon.");
+echo "</p>\n";
+
+echo "<p><b>" . _("Web-based Reporting") . "</b><br />";
+echo _("When you press the button on the confirmation page, this will pop open a new browser window and the SpamCop service should appear inside. The message will not be deleted (working on that part), but you won't need to wait for a response email to start the spam reporting.");
+echo "</p>\n";
+
+echo "<p>";
+echo _("The SpamCop service will display information as it finds it, so scroll down until you see a form button.  It might pause a little while it is looking up information, so be a little patient.  Read what it says, and submit the spam.  Close the browser window.  Press Cancel or click on the appropriate mail folder to see messages and/or delete the spam.");
+echo "</p>\n";
+
+echo "<p>";
+echo _("<b>For more information</b> about SpamCop, it's services, spam in general, and many related topics, try reading through SpamCop's <a href=\"http://spamcop.net/help.shtml\">Help and Feedback</a> section.";
+echo "</p>\n";
+?>
 </body></html>
index 8c7d5e4da737cf2386f2d7c150d57406ca594232..f44a7134577fa8641262f95ae17b996982207769 100755 (executable)
@@ -71,24 +71,17 @@ function spamcop_show_link() {
    
    if ($spamcop_method == 'web_form') {
 ?><script language="javascript" type="text/javascript">
-document.write('<a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP
-echo urlencode($passed_id); ?>&amp;js_web=1&amp;mailbox=<?PHP
-echo urlencode($mailbox); ?>" target="_blank">');
+document.write('<a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP echo urlencode($passed_id); ?>&amp;js_web=1&amp;mailbox=<?PHP echo urlencode($mailbox); ?>" target="_blank">');
 document.write("<?PHP echo _("Report as Spam"); ?>");
 document.write("</a>");
 </script><noscript>
-<a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP
-echo urlencode($passed_id); ?>&amp;mailbox=<?PHP
-echo urlencode($mailbox); ?>&amp;startMessage=<?PHP
-echo urlencode($startMessage); ?>"><?PHP
-echo _("Report as Spam"); ?></a>
+<a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP echo urlencode($passed_id); ?>&amp;mailbox=<?PHP echo urlencode($mailbox); ?>&amp;startMessage=<?PHP echo urlencode($startMessage); ?>">
+<?PHP echo _("Report as Spam"); ?></a>
 </noscript><?PHP
    } else {
-?><a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP
-echo urlencode($passed_id); ?>&amp;mailbox=<?PHP
-echo urlencode($mailbox); ?>&amp;startMessage=<?PHP
-echo urlencode($startMessage); ?>"><?PHP
-echo _("Report as Spam"); ?></a><?PHP
+?><a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP echo urlencode($passed_id); ?>&amp;mailbox=<?PHP echo urlencode($mailbox); ?>&amp;startMessage=<?PHP echo urlencode($startMessage); ?>">
+<?PHP echo _("Report as Spam"); ?></a>
+<?PHP
    }
 }
 
index a3f0577e7ce4012892380c03ed29a36165e9bbd1..9dc4062a2e8128ad29236a844d675377aca7b952 100644 (file)
@@ -122,12 +122,12 @@ if(! sqgetGlobalVar('composesession', $composesession, SQ_SESSION) ) {
           $HowItLooks .= '<' . $em . '>';
      }
 
-?>
 
-<p>Sending this spam report will give you back a reply with URLs that you
-can click on to properly report this spam message to the proper authorities.
-This is a free service.  By pressing the "Send Spam Report" button, you
-agree to follow SpamCop's rules/terms of service/etc.</p>
+echo "<p>";
+echo _("Sending this spam report will give you back a reply with URLs that you can click on to properly report this spam message to the proper authorities. This is a free service.  By pressing the \"Send Spam Report\" button, you agree to follow SpamCop's rules/terms of service/etc.");
+echo "</p>";
+
+?>
 
 <table align="center" width="75%" border="0" cellpadding="0" cellspacing="0">
 <tr>
@@ -139,10 +139,8 @@ agree to follow SpamCop's rules/terms of service/etc.</p>
    <?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="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
 }
@@ -157,10 +155,8 @@ agree to follow SpamCop's rules/terms of service/etc.</p>
       $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="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">
@@ -188,9 +184,7 @@ agree to follow SpamCop's rules/terms of service/etc.</p>
   <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($Message);
-  ?>">
+  <input type="hidden" name="spam" value="<?PHP echo htmlspecialchars($Message); ?>">
   <input type="submit" name="x1" value="Send Spam Report">
 <?PHP }
 ?>  </form>