Browse Source

fixed several parse errors with gettext stuff

nehresma 25 năm trước cách đây
mục cha
commit
d213b06c5b

+ 3 - 3
config/config.php

@@ -10,17 +10,17 @@
     $org_title = "SquirrelMail $version";
     $org_title = "SquirrelMail $version";
 
 
 //  The server that your imap server is on
 //  The server that your imap server is on
-    $imapServerAddress = "localhost";
+    $imapServerAddress = "adam";
     $imapPort = 143;
     $imapPort = 143;
 
 
 //  The domain where your email address is.
 //  The domain where your email address is.
 //   Example:  in "luke@usa.om.org", usa.om.org is the domain.
 //   Example:  in "luke@usa.om.org", usa.om.org is the domain.
 //             this is for all the messages sent out.  Reply address
 //             this is for all the messages sent out.  Reply address
 //             is generated by $username@$domain
 //             is generated by $username@$domain
-    $domain = "localhost";
+    $domain = "usa.om.org";
 
 
 //  Your SMTP server and port number (usually the same as the IMAP server)
 //  Your SMTP server and port number (usually the same as the IMAP server)
-    $smtpServerAddress = "localhost";
+    $smtpServerAddress = "adam";
     $smtpPort = 25;
     $smtpPort = 25;
 
 
 //  Uncomment this if you want to deliver locally using sendmail instead
 //  Uncomment this if you want to deliver locally using sendmail instead

+ 1 - 1
functions/display_messages.php

@@ -103,7 +103,7 @@
       echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
       echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
       echo "   <TR>";
       echo "   <TR>";
       echo "      <TD BGCOLOR=\"$color[0]\">";
       echo "      <TD BGCOLOR=\"$color[0]\">";
-      echo "         <FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[2]\"><B><CENTER>. _("ERROR") .</CENTER></B></FONT>";
+      echo "         <FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . "</CENTER></B></FONT>";
       echo "   </TD></TR><TR><TD>";
       echo "   </TD></TR><TR><TD>";
       echo "      <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>$message";
       echo "      <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>$message";
       echo "      </FONT></CENTER>";
       echo "      </FONT></CENTER>";

+ 5 - 5
functions/mailbox_display.php

@@ -268,16 +268,16 @@
 
 
       echo "<TR BGCOLOR=\"$color[4]\"><TD>";
       echo "<TR BGCOLOR=\"$color[4]\"><TD>";
       if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) {
       if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) {
-         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">". _("Previous") ."</FONT></A>\n";
-         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">". _"(Next") ."</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">" . _("Previous") . "</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">" . _("Next") . "</FONT></A>\n";
       }
       }
       else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
       else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
-         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">". _("Previous") ."</FONT></A>\n";
-         echo "<FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[9]\">". _"(Next") ."</FONT>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">" . _("Previous") . "</FONT></A>\n";
+         echo "<FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[9]\">" . _("Next") . "</FONT>\n";
       }
       }
       else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
       else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
          echo "<FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[9]\">Previous</FONT>\n";
          echo "<FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[9]\">Previous</FONT>\n";
-         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">". _("Next") ."</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">" . _("Next") . "</FONT></A>\n";
       }
       }
       echo "</TD></TR></TABLE>"; /** End of message-list table */
       echo "</TD></TR></TABLE>"; /** End of message-list table */
    }
    }

+ 5 - 5
functions/page_header.php

@@ -12,17 +12,17 @@
       echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2>";
       echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2>";
       echo "   <TR BGCOLOR=\"$color[9]\" WIDTH=100%>";
       echo "   <TR BGCOLOR=\"$color[9]\" WIDTH=100%>";
       echo "      <TD ALIGN=left WIDTH=30%>";
       echo "      <TD ALIGN=left WIDTH=30%>";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"signout.php\" TARGET=_top><B>". _"(Sign Out") ."</B></A></FONT>";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"signout.php\" TARGET=_top><B>" . _("Sign Out") . "</B></A></FONT>";
       echo "      </TD><TD ALIGN=right WIDTH=70%>";
       echo "      </TD><TD ALIGN=right WIDTH=70%>";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><div align=right>". _("Current Folder: ") ".<B>$shortBoxName&nbsp;</div></B></FONT>";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><div align=right>" . _("Current Folder: ") . "<B>$shortBoxName&nbsp;</div></B></FONT>";
       echo "      </TD>";
       echo "      </TD>";
       echo "   </TR></TABLE>\n";
       echo "   </TR></TABLE>\n";
       echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2><TR>";
       echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2><TR>";
       echo "      <TD ALIGN=left WIDTH=70%>";
       echo "      <TD ALIGN=left WIDTH=70%>";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"compose.php\">". _("Compose") ."</A></FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"compose.php\">" . _("Compose") . "</A></FONT>&nbsp&nbsp";
       echo "         <FONT FACE=\"Arial,Helvetica\">". _("Addresses") ."</FONT>&nbsp&nbsp";
       echo "         <FONT FACE=\"Arial,Helvetica\">". _("Addresses") ."</FONT>&nbsp&nbsp";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"folders.php\">". _("Folders") ."</A></FONT>&nbsp&nbsp";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"options.php\">". _("Options") ."</A></FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"folders.php\">" . _("Folders") . "</A></FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"options.php\">" . _("Options") . "</A></FONT>&nbsp&nbsp";
       echo "      </TD><TD ALIGN=right WIDTH=30%>";
       echo "      </TD><TD ALIGN=right WIDTH=30%>";
       echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://squirrelmail.sourceforge.net\" TARGET=_top>SquirrelMail</A></FONT>";
       echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://squirrelmail.sourceforge.net\" TARGET=_top>SquirrelMail</A></FONT>";
       echo "      </TD>";
       echo "      </TD>";

+ 2 - 2
functions/prefs.php

@@ -9,7 +9,7 @@
    function getPref($data_dir, $username, $string) {
    function getPref($data_dir, $username, $string) {
       $filename = "$data_dir$username.pref";
       $filename = "$data_dir$username.pref";
       if (!file_exists($filename)) {
       if (!file_exists($filename)) {
-         echo _("Preference file ") "\"$filename\"" _(" not found.  Exiting abnormally");
+         echo _("Preference file ") . "\"$filename\"" . _(" not found.  Exiting abnormally");
          exit;
          exit;
       }
       }
 
 
@@ -32,7 +32,7 @@
       $filename = "$data_dir$username.pref";
       $filename = "$data_dir$username.pref";
       $found = false;
       $found = false;
       if (!file_exists($filename)) {
       if (!file_exists($filename)) {
-         echo _("Preference file, ") "\"$filename\"". _(", does not exist.  Log out, and log back in to create a default preference file. ") ."<BR>";
+         echo _("Preference file, ") . "\"$filename\"" . _(", does not exist.  Log out, and log back in to create a default preference file. ") ."<BR>";
          exit;
          exit;
       }
       }
       $file = fopen($filename, "r");
       $file = fopen($filename, "r");

+ 1 - 1
src/read_body.php

@@ -142,7 +142,7 @@
    echo "      <TR>\n";
    echo "      <TR>\n";
    echo "         <TD BGCOLOR=\"$color[4]\" WIDTH=15% ALIGN=RIGHT>\n";
    echo "         <TD BGCOLOR=\"$color[4]\" WIDTH=15% ALIGN=RIGHT>\n";
    echo "            <FONT FACE=\"Arial,Helvetica\">";
    echo "            <FONT FACE=\"Arial,Helvetica\">";
-   echo _("Date:")
+   echo _("Date:");
    echo "</FONT>\n";
    echo "</FONT>\n";
    echo "         </TD><TD BGCOLOR=\"$color[4]\" WIDTH=85%>\n";
    echo "         </TD><TD BGCOLOR=\"$color[4]\" WIDTH=85%>\n";
    echo "            <FONT FACE=\"Arial,Helvetica\"><B>$dateString</B></FONT>\n";
    echo "            <FONT FACE=\"Arial,Helvetica\"><B>$dateString</B></FONT>\n";