And this to enable default language to work.
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Dec 2001 11:05:39 +0000 (11:05 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Dec 2001 11:05:39 +0000 (11:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1979 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index 64f094c..e495411 100644 (file)
@@ -702,8 +702,10 @@ function set_up_language($sm_language, $do_search = false) {
     if ($do_search && ! $sm_language && isset($HTTP_ACCEPT_LANGUAGE)) {
         $sm_language = substr($HTTP_ACCEPT_LANGUAGE, 0, 2);
     }
+    
     if (!$sm_language && isset($squirrelmail_default_language)) {
         $squirrelmail_language = $squirrelmail_default_language;
+        $sm_language = $squirrelmail_default_language;
     }
     $sm_notAlias = $sm_language;
     while (isset($languages[$sm_notAlias]['ALIAS'])) {