Monday, April 4, 2011

cakephp multilingual + route

Hi,

i have two languages to allow user to choose/switch: en or fr

i want the url as:

xxx.com/en/ --> default language is en


xxx.com/en/stock/stockName1/ -> dynamic page in EN language, it is
similar to xxx.com/stock.php?lang=en&stockid=123


xxx.com/fr/stock/stockName1/ -> dynamic page in FR language


I do not need cookie.

I do want to split two language folders for all files, except images.

How to make the url route correctly??

I tested the following tutorial, it works fine:

http://bakery.cakephp.org/articles/p0windah/2007/09/12/p28n-the-top-to-bottom-persistent-internationalization-tutorial

But, the language is not appears in the URL. Anyone can help on these?

Thanks.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: