Topic: Translation problem (to Chinese Simplified)
Just as what 1.2.x Simplified Chinese language file (common.php) has indicated me, so I use the following code to translate:
<?php
// Simplified Chinese (UTF-8) was Translated by CoolHD
// Any suggestion just feel free to mail me.
// coolhd.tw@yahoo.com.tw
// Determine what locale to use
switch (PHP_OS)
{
case 'WINNT':
case 'WIN32':
$locale = 'chinese-simplified';
break;
case 'FreeBSD':
case 'NetBSD':
case 'OpenBSD':
$locale = 'zh_CN.UTF-8';
break;
default:
$locale = 'zh_CN';
break;
}
// Attempt to set the locale
setlocale(LC_CTYPE, $locale);
// Language definitions for frequently used strings
$lang_common = array(
// Text orientation and encoding
'lang_direction' => 'ltr', // ltr (Left-To-Right) or rtl (Right-To-Left)
'lang_identifier' => 'chinese',
'lang_encoding' => 'UTF-8',
'lang_multibyte' => true,
However I find that in 1.3 there is a new variable called lang_encoding but I dont know how to set it correctly to display Chinese characters ... so any one may help?
Thanks!
The following screenshot may help show the problem: