Johnson, If you look here: http://api.cakephp.org/1.2/l10n_8php-source.html#l00180
You'll find that the code you are trying to use is set with "-" instead of "_". I think the codes must be used as defined in this array. Here you have some additional info: http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial On 17 abr, 09:09, Johnson <[EMAIL PROTECTED]> wrote: > i want to support eng and zh_tw in my website.the locale's directories > are > > app\locale\eng\LC_MESSAGES\default.po > app\locale\zh_tw\LC_MESSAGES\default.po > > then, i use $this->Session->write('Config.language', $language); to > control current language. > if i want to display english , i set $language='eng' is work. > but when i set $language='zh_tw', it's not work! > > so, i tried $language='zh-tw', then it's work! > > can anyone please tell me why? this is confused me. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---