Reputation: 247
I have a model ex. posts that acts as translate and I want to validate the title which is a translated field. How is this possible. The below does not work.
'title' => array(
'notempty' => array(
'rule' => array('notempty'),
),
));
Upvotes: 0
Views: 518
Reputation: 21743
you translate your message in /Locale default.po
'title' => array(
'notEmpty' => array(
'rule' => array('notEmpty'),
'message' => 'your translated message',
),
));
whats the big deal?
Upvotes: 0