1778 Posts in 581 Topics by 555 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 787 Views |
-
error message in Chinese

18 June 2011 at 11:16am
My web site has 3 languages: English, Japanese and Chinese.
There are form page and English and Japanese error message is showing fine but Chinese page still show English message,
ex)
Chinese page - "电邮" is required.
"is required" should be in ChineseWhen I edit _config.php adding code bellow.
Japanese error message immediately start showing._config.php
======================================================
Translatable::set_allowed_locales(array(
'en_US', //US English
'ja_JP', //Japanese
'zh_yue' //Chinese (Cantonese)
)
);Object::add_extension('SiteTree', 'Translatable');
Object::add_extension('SiteConfig', 'Translatable');
======================================================What do I need to do to show Chinese(zh_yue) error message?
-
Re: error message in Chinese

18 June 2011 at 9:15pm
Hi leafchild.
Not quite sure, but i think this is happening, because there are no language files for
'zh_yue' (have a look at /sapphire/lang and /cms/lang dirs). So the default messages are shown.You could change 'zh_yue'//Chinese (Cantonese) to 'zh_CN'//Chinese (China) and check if the correct error message appears.
If so, you might have to create a language file for zh_yue (... and share it with us
)
Cheers
Christian -
Re: error message in Chinese

21 June 2011 at 6:01am
Thanks, Invader_Zim
Actually, I already created both file and place to the directory:"sapphire/lang/zh_YUE.php" and "cms/lang/zh_YUE.php"
I copied form zh_CH.php file and inside of file replace all "zh_Ch" to "zh_YUE" but
the error message is still same.
| 787 Views | ||
|
Page:
1
|
Go to Top |


