开发者

Switch between different languages interface in cakePhp

开发者 https://www.devze.com 2022-12-29 14:15 出处:网络
I am learning the locale f开发者_StackOverflow社区unction in Cakephp. I am not sure how to design my own locale files so that

I am learning the locale f开发者_StackOverflow社区unction in Cakephp.

I am not sure how to design my own locale files so that

users can switch between Spanish and English in my web sites.

Please advise.


The first place I'd go is here, http://book.cakephp.org/view/162/Internationalizing-Your-Application

I've not tried this before, as the project I was working on, English and Swedish, someone had already done the setup.

From what I understand you can manage the language in your routes, to have example.com/en/ or example.com/se then your other routes, and that will load up the correct language translations.

As I understand it there are multiple methods for managing how you switch the language from routes to sessions.

0

精彩评论

暂无评论...
验证码 换一张
取 消