Sure you can. Just use the 2 letter codes in url and set the same for Config.language. Keep using 3 letter code for locale directories. The L10n class takes care of mapping the 2 letter codes to 3 letter directories.
On Tuesday, August 6, 2013 12:57:45 PM UTC+5:30, [email protected] wrote: > > Hello, > > I'm creating a multiligual website with language code in the URL, for > example : > > http://www.example.com/*fre*/products > or : > http://www.example.com/*eng*/products > or : > http://www.example.com/*ita*/products > > Is there a way to use two letters for the language code ? > *fr* instead of *fre*, *it* instead of *ita* and *en *for *eng *? > > Last thing, I'm using CakePhp 2.3.8. > > Thanks in advance. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
