next up previous contents
Next: imap_general.php Up: 目錄 functions Previous: global.php   Contents

i18n.php

  1. 預設中文編碼由 big5 改成 utf-8。
    [root@mail squirrelmail-1.4.8]# diff -uwN ./functions/i18n.php /var/www/squirrelmail/functions/i18n.php
    --- ./functions/i18n.php	2006-04-30 12:49:34.000000000 +0800
    +++ /var/www/squirrelmail/functions/i18n.php	2012-05-21 16:07:39.000000000 +0800
    @@ -836,13 +836,13 @@
     $languages['tr']['ALIAS']      = 'tr_TR';
     
     $languages['zh_TW']['NAME']    = 'Chinese Trad';
    -$languages['zh_TW']['CHARSET'] = 'big5';
    -$languages['zh_TW']['LOCALE']  = 'zh_TW.BIG5';
    +$languages['zh_TW']['CHARSET'] = 'utf-8';
    +$languages['zh_TW']['LOCALE']  = array('zh_TW.UTF-8','zh_TW.Big5');
     $languages['tw']['ALIAS']      = 'zh_TW';
     
     $languages['zh_CN']['NAME']    = 'Chinese Simp';
     $languages['zh_CN']['CHARSET'] = 'gb2312';
    -$languages['zh_CN']['LOCALE']  = 'zh_CN.GB2312';
    +$languages['zh_CN']['LOCALE']  = array('zh_CN.GB2312','zh_CN.GBK');
     $languages['cn']['ALIAS']      = 'zh_CN';
     
     $languages['uk_UA']['NAME']    = 'Ukrainian';
    



2016-03-11