I am learning the locale function 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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/orexample.com/sethen 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.