Hi guys,

I'm currently localizing my application in English and German.
Everything works as expected. Except the authError and loginError
messages of the Auth component. I'm trying to set these messages in
the app_controller beforeFilter event. But the messages are always
shown in German (default language).

This is my beforeFilter code (excerpt):

function beforeFilter() {
 if (isset($this->Auth)) {
   $this->Auth->fields = array('username' => 'email', 'password' =>
'password');
   $this->Auth->userScope = array('activated' => 1);
   $this->Auth->loginAction = array('controller' => 'users', 'action'
=> 'login');
   $this->Auth->loginRedirect = array('controller' => 'pages',
'action' => 'display', 'home');
   $this->Auth->logoutRedirect = array('controller' => 'users',
'action' => 'login', 'admin' => false);
   $this->Auth->loginError = __('auth_loginerror', true);
   $this->Auth->authError = __('auth_autherror', true);
   $this->Auth->autoRedirect = true;
   $this->Auth->authorize = 'controller';
 }
}

Can anybody help me to solve the problem?

Thanks,
Brain

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to