This is weird: I can successfully change the language with $this- >Session->write('Config.language', 'fr'); in the beforeRender() function in apps_controller.php
Why does it not work in beforeFilter()? Does it matter where it's being done? On Mar 10, 2:09 pm, jakobjp <m...@jakobjp.net> wrote: > On Mar 10, 2:25 am, "jitka (poLK)" <slunii...@gmail.com> wrote: > > > > I have created two test languages in: > > > /app/locale/eng/LC_MESSAGES/default.php > > > /app/locale/fre/LC_MESSAGES/default.php > > > php extension is reason. CakePHP assumes there plaintext .po (or > > preferrable binary .mo) files. > > Yeah that was a mistake in my email. The files are already ".po" files > in plaintext. The content is as follows (in the english one): > msgid "test" > msgstr "The Test" > > Both my testing language work fine when setting the language in > core.php, but I can't switch away from the default language in the > application controller. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---