submitted patch from Stefan Sels that fixes the i18n problem (hopefully)
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 9 Dec 2000 14:55:58 +0000 (14:55 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 9 Dec 2000 14:55:58 +0000 (14:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@878 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php
functions/page_header.php

index 9d1f0f1..c2e5816 100644 (file)
@@ -15,6 +15,7 @@
 
    // This array specifies the available languages.
    $languages["en"]["NAME"]    = "English";
+       $languages["en"]["CHARSET"] = "iso-8859-1";
    $languages["no"]["NAME"]    = "Norwegian (Bokm&aring;l)";
    $languages["no"]["CHARSET"] = "iso-8859-1";
    $languages["no_NO_ny"]["NAME"] = "Norwegian (Nynorsk)";
    function set_up_language($sm_language, $do_search = false)
    {
       static $SetupAlready = 0;
-      global $HTTP_ACCEPT_LANGUAGE;
+               global $HTTP_ACCEPT_LANGUAGE, $use_gettext, $languages, $squirrelmail_language;
       
       if ($SetupAlready)
          return;
       }
       
       if (isset($sm_language) && $use_gettext &&
-         $sm_language != "en" && $squirrelmail_language != "" &&
+         $squirrelmail_language != "" &&
          $languages[$sm_language]["CHARSET"]) {
          putenv("LC_ALL=".$sm_language);
          bindtextdomain("squirrelmail", "../locale/");
index 4684a95..3aeae33 100644 (file)
@@ -92,7 +92,7 @@
       do_hook("menuline");
 
       echo "      </TD><TD ALIGN=right nowrap WIDTH=\"1%\">\n";
-      echo "         <A HREF=\"http://www.squirrelmail.org/index.php3?from=1\" TARGET=\"_top\">SquirrelMail</A>\n";
+      echo "         <A HREF=\"http://www.squirrelmail.org/\" TARGET=\"_top\">SquirrelMail</A>\n";
       echo "      </TD>\n";
       echo "   </TR>\n";
       echo "</TABLE>\n\n";