Thursday, September 6, 2012

How to provide validation error message in Danish language in Cakephp 2.1

public $validate = array(

'username' => array(

'unique' => array(

'rule' => array('isUnique'),

'message' => 'Brugernavnet er allerade taken',

'allowEmpty' => false,

'required' => true,

),

'email' => array(

'rule' => array('email'),

'message' => "De følgende resultater er fundet ",

'allowEmpty' => false,

'required' => true,

),

),

);

This is a danish website. My validation array is as above. For the second rule ('email') for username, validation message is coming on the page if the username is not valid email. I guess its because of special danish character inside the message string. How can I solve this problem. Please help.

--
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate