In my AppController's beforeFilter I detect the language from the URL
and do the:

Configure::write('Config.language', $urlLang);

Language is either 'en' or 'ru'. In my \app\locale\ folder I have:
\eng\LC_MESSAGES\default.po
\rus\LC_MESSAGES\default.po

These files contain the translated strings.
But even if I pass 'ru' in the URL, all pages containing the strings
that should be translated (to Russian), appear in English. If I set
browser language to Russian, it shows Russian strings, but doesn't
switch to English if I click the corresponding URL.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to