added gettext support.
authorserek <serek@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 13 Jan 2000 18:48:36 +0000 (18:48 +0000)
committerserek <serek@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 13 Jan 2000 18:48:36 +0000 (18:48 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@160 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/move_messages.php
src/options.php
src/options_submit.php

index 8573b82..6a3abfb 100644 (file)
@@ -56,7 +56,7 @@
          }
          messages_deleted_message($mailbox, $sort, $startMessage, $color);
       } else {
-         error_message("No messages were selected.", $mailbox, $sort, $startMessage, $color);
+         error_message(_("No messages were selected."), $mailbox, $sort, $startMessage, $color);
       }
    } else {    // Move messages
       displayPageHeader($color, $mailbox);
@@ -82,7 +82,7 @@
 
          messages_moved_message($mailbox, $sort, $startMessage, $color);
       } else {
-         error_message("No messages were selected.", $mailbox, $sort, $startMessage, $color);
+         error_message(_("No messages were selected."), $mailbox, $sort, $startMessage, $color);
       }
    }
 
index 701fa36..399ca53 100644 (file)
@@ -23,7 +23,9 @@
 
    echo "<TABLE WIDTH=100% COLS=1 ALIGN=CENTER>\n";
    echo "   <TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>\n";
-   echo "      <FONT FACE=\"Arial,Helvetica\">Options</FONT>\n";
+   echo "      <FONT FACE=\"Arial,Helvetica\">";
+   echo _("Options");
+   echo "</FONT>\n";
    echo "   </TD></TR>\n";
    echo "</TABLE>\n";
 
@@ -33,7 +35,7 @@
    echo "   <TR>";
    echo "      <TD WIDTH=20% ALIGN=RIGHT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         Full Name:";
+   echo _("         Full Name:");
    echo "         </FONT>";
    echo "      </TD>";
    echo "      <TD WIDTH=80% ALIGN=LEFT>";
@@ -46,7 +48,7 @@
    echo "   <TR>";
    echo "      <TD WIDTH=20% ALIGN=RIGHT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         Reply-to:";
+   echo _("         Reply-to:");
    echo "         </FONT>";
    echo "      </TD>";
    echo "      <TD WIDTH=80% ALIGN=LEFT>";
@@ -59,7 +61,7 @@
    echo "   <TR>";
    echo "      <TD WIDTH=20% ALIGN=RIGHT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         Theme:";
+   echo _("         Theme:");
    echo "         </FONT>";
    echo "      </TD>";
    echo "      <TD WIDTH=80% ALIGN=LEFT>";
@@ -83,7 +85,8 @@
    echo "   <TR>";
    echo "      <TD WIDTH=60% ALIGN=RIGHT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         Move deleted messages to \"$trash_folder\"?";
+   echo _("         Move deleted messages to ");
+   echo "\"$trash_folder\"?";
    echo "         </FONT>";
    echo "      </TD>";
    echo "      <TD WIDTH=40% ALIGN=LEFT>";
    echo "   <TR>";
    echo "      <TD WIDTH=60% ALIGN=RIGHT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         Wrap incoming text at:";
+   echo _("         Wrap incoming text at:");
    echo "         </FONT>";
    echo "      </TD>";
    echo "      <TD WIDTH=40% ALIGN=LEFT>";
    echo "   <TR>";
    echo "      <TD WIDTH=60% ALIGN=RIGHT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         Size of editor window (in characters):";
+   echo _("         Size of editor window (in characters):");
    echo "         </FONT>";
    echo "      </TD>";
    echo "      <TD WIDTH=40% ALIGN=LEFT>";
    if ($use_signature == true)
       echo "<INPUT TYPE=CHECKBOX VALUE=\"1\" NAME=usesignature CHECKED>&nbsp;&nbsp;Use a signature?<BR>";
    else
-      echo "<INPUT TYPE=CHECKBOX VALUE=\"1\" NAME=usesignature>&nbsp;&nbsp;Use a signature?<BR>";
+      echo "<INPUT TYPE=CHECKBOX VALUE=\"1\" NAME=usesignature>&nbsp;&nbsp;";
+      echo _("Use a signature?");
+      echo "<BR>";
 
    if ($editor_size < 5)
       $sig_size = 76;
 
 
    // SUBMIT BUTTON
-   echo "<BR><CENTER><INPUT TYPE=SUBMIT VALUE=\"Submit\"></CENTER>\n";
+   echo "<BR><CENTER><INPUT TYPE=SUBMIT VALUE=\"";
+   echo _("Submit");
+   echo "\"></CENTER>\n";
    echo "</FORM>";
 
    echo "</BODY></HTML>";
-?>
\ No newline at end of file
+?>
index 7b7d823..b8228e9 100644 (file)
    setSig($data_dir, $username, stripslashes($signature_edit));
 
    echo "<FONT FACE=\"Arial,Helvetica\">";
-   echo "<BR><BR><BR><CENTER><B>Options Saved!</B><BR><BR>";
-   echo "Your options have been saved.<BR><A HREF=\"webmail.php\" TARGET=_top>Click here</A> to continue.";
+   echo "<BR><BR><BR><CENTER><B>";
+   echo _("Options Saved!");
+   echo "</B><BR><BR>";
+   echo _("Your options have been saved.");
+   echo "<BR><A HREF=\"webmail.php\" TARGET=_top>";
+   echo _("Click here");
+   echo "</A>";
+   echo _("to continue.");
    echo "</CENTER></FONT>";
    echo "</BODY></HTML>";
-?>
\ No newline at end of file
+?>