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

src/load_prefs.php
src/login.php

index c714429..05e3c57 100644 (file)
       if (file_exists($theme[0]["PATH"])) {
          require($theme[0]["PATH"]);
       } else {
-         echo "Theme: " . $theme[0]["PATH"] . " was not found.<BR>";
-         echo "Exiting abnormally";
+         echo _("Theme: ");
+        echo . $theme[0]["PATH"] .;
+        echo _(" was not found.");
+        echo "<BR>";
+         echo _("Exiting abnormally");
          exit;
       }
    }
index 55259bf..d79d978 100644 (file)
@@ -18,7 +18,9 @@
    echo "<BODY TEXT=000000 BGCOLOR=FFFFFF LINK=0000CC VLINK=0000CC ALINK=0000CC>\n";
    echo "<FORM ACTION=webmail.php METHOD=\"POST\" NAME=f>\n";
    echo "<CENTER><IMG SRC=\"$org_logo\"</CENTER>\n";
-   echo "<CENTER><FONT FACE=\"Arial,Helvetica\" SIZE=-2>SquirrelMail version $version<BR>By the SquirrelMail Development Team<BR></FONT><CENTER>\n";
+   echo "<CENTER><FONT FACE=\"Arial,Helvetica\" SIZE=-2>";
+   echo _("SquirrelMail version $version<BR>By the SquirrelMail Development Team");
+   echo "<BR></FONT><CENTER>\n";
    echo "<TABLE COLS=1 WIDTH=350>\n";
    echo "   <TR>\n";
    echo "      <TD BGCOLOR=DCDCDC>\n";
    echo "         <TABLE COLS=2 WIDTH=100%>\n";
    echo "            <TR>\n";
    echo "               <TD WIDTH=30% ALIGN=right>\n";
-   echo "                  <FONT FACE=\"Arial,Helvetica\">Name:</FONT>\n";
+   echo "                  <FONT FACE=\"Arial,Helvetica\">";
+   echo _("Name:");
+   echo "                 </FONT>\n";
    echo "               </TD><TD WIDTH=* ALIGN=left>\n";
    echo "                  <CENTER><INPUT TYPE=TEXT NAME=username></CENTER>\n";
    echo "               </TD>\n";
    echo "            </TR><TR>\n";
    echo "               <TD WIDTH=30% ALIGN=right>\n";
-   echo "                  <FONT FACE=\"Arial,Helvetica\">Password:</FONT>\n";
+   echo "                  <FONT FACE=\"Arial,Helvetica\">";
+   echo _("Password:");
+   echo "                 </FONT>\n";
    echo "               </TD><TD WIDTH=* ALIGN=left>\n";
    echo "                  <CENTER><INPUT TYPE=PASSWORD NAME=key></CENTER>\n";
    echo "               </TD>\n"; 
@@ -43,7 +49,9 @@
    echo "      </TD>\n";
    echo "   </TR><TR>\n";
    echo "      <TD>\n";
-   echo "         <CENTER><INPUT TYPE=SUBMIT VALUE=Login></CENTER>\n";
+   echo "         <CENTER><INPUT TYPE=SUBMIT VALUE=\"";
+   echo _("Login");
+   echo "></CENTER>\n";
    echo "      </TD>\n";
    echo "   </TR>\n";
    echo "</TABLE>\n";