Fixed setting of charset, you have to set sm_notAlias charset and not sm_language...
authorondrass <ondrass@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 8 Nov 2001 12:28:28 +0000 (12:28 +0000)
committerondrass <ondrass@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 8 Nov 2001 12:28:28 +0000 (12:28 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1699 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index 2ce053d..4444acd 100644 (file)
@@ -31,6 +31,7 @@
        */
    $languages['cs_CZ']['NAME']    = 'Czech';
    $languages['cs_CZ']['CHARSET'] = 'iso-8859-2';
+   $languages['cs']['ALIAS']      = 'cs_CZ';
    
    $languages['da']['NAME']    = 'Danish';
    $languages['da']['CHARSET'] = 'iso-8859-1';
    
    $languages['sk_SK']['NAME']     = 'Slovak';
    $languages['sk_SK']['CHARSET']  = 'iso-8859-2';
+   $languages['sk']['ALIAS']       = 'sk_SK';
    
    $languages['ro']['NAME']    = 'Romanian';
    $languages['ro']['CHARSET'] = 'iso-8859-2';
          setlocale('LC_ALL', $sm_notAlias);
          bindtextdomain('squirrelmail', '../locale/');
          textdomain('squirrelmail');
-         header ('Content-Type: text/html; charset=' . $languages[$sm_language]['CHARSET']);
+         header ('Content-Type: text/html; charset=' . $languages[$sm_notAlias]['CHARSET']);
       }
    }
 
      if ($my_charset) $default_charset=$my_charset;
    }
 
-?>
\ No newline at end of file
+?>