0

I am using cakephp 2.x to make one site multilingual and I am using the i18n extract and the TranslateBehavior Core Library.

The i18n works fine and the TranslateBehavior Core Library works fine when I try to save data. But when I want to read it I have to say to the controller the specific locale with:

$this->Home->locale = 'spa';

or

$this->Home->locale = 'eng';

Instead the core library makes it automatically by me. I have to specify all the times the locale? Or does exist something that do it automatically?

Thank you very much

4

1 回答 1

0

Cakephp 1.3 上有一篇关于 i18n 的详细文章,我希望你的 2.x 也能在这个说理论上工作,所以你可以尝试一下http://codeatomic.com/developing-cakephp-multilingual-website/

于 2013-05-18T09:33:48.717 回答