1 (edited by AndyWxy 2008-09-10 03:28)

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:
http://i3.6.cn/cvbnm/f1/36/e8/71e9313e530ad5ec74f73b65240a8c6f.jpg

Re: Translation problem (to Chinese Simplified)

OK,I have solved it by setting editplus to UTF-8 when saving files. big_smile

Re: Translation problem (to Chinese Simplified)

AndyWxy wrote:

OK,I have solved it by setting editplus to UTF-8 when saving files. big_smile

Right, you should work with UTF-8 only in 1.3 ))
Please report, if you find more issues.

Carpe diem

Re: Translation problem (to Chinese Simplified)

Thank you for posting!

And I wanna know 2 following questions:

1. How can I set a user to become a moderator?

2. User can not modify his topics title later?

Re: Translation problem (to Chinese Simplified)

1.Choose a user from the users list on page <FORUM_URL>/userlist.php. Go to tab "Administration" in the user's profile. In the bottom of the page there is a listbox with user's group. Select "Moderator" and click "Save".

2. User can modify his topics' title only if he/she is a moderator or administrator.

Re: Translation problem (to Chinese Simplified)

Slavok wrote:

1.Choose a user from the users list on page <FORUM_URL>/userlist.php. Go to tab "Administration" in the user's profile. In the bottom of the page there is a listbox with user's group. Select "Moderator" and click "Save".

2. User can modify his topics' title only if he/she is a moderator or administrator.

Thank you so much!:D