All I call in my AppController beforeFilter() is this:
$l10n = new L10n();
$l10n->get($locale);
Cake takes care of all the rest. And as for file structure:
// default.po
// __('login');
msgid "login"
msgid "Login"
// homepage.po
// __d('homepage', 'welcome');
msgid "welcome"
msgstr "Welcome"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---