Tuesday, July 28, 2009

internationalization in model

Hi,

I am using __() internationalization in my model as described here:

http://groups.google.com/group/cake-php/browse_thread/thread/fa32c81acc043eef/6a49c6d9fdc6f158?lnk=st&q=#6a49c6d9fdc6f158

It works great, but there is one problem. I set the language of the
app in the beforefilter of the app_controller. Apparently the models
are loaded before this and so the models always return the default
language.

Where do you guys set the language of the app? Especially if you are
using the __contruct method as mentioned in the post from above.

Thanks!

Cheers,
tobi_one
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: