Thursday, December 24, 2009

Localization for Model validation messages

Hi All,

Is there a way to use localization for validation messages in the
Model $validate array?

eg: $validate = array ( 'name' => array('rule'=>'notEmpty',
'message'=>'Name is mandatory' ));

I need the message 'Name is mandatory' in five different languages.

In other words: How can we use functions like __('message') like
functions in model?

Please help me. Thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate