i18n extract console wont extract from models, the error messages is
supposed to be put in the form at the frontend, not at the model
level.
$form->input('field', array('error' => array('validationName' =>
__('your validation error string here', true)));
or
$form->error('field', array('validat
You could build the variable into a __construct() function :
$this->validate = __('must be alphanumeric')
On 15 avr, 18:04, gino pilotino <[EMAIL PROTECTED]> wrote:
> Hello,
> i was wondering... when setting custom messages in validation arrays
> for Models
> how can i use international
Hello,
i was wondering... when setting custom messages in validation arrays
for Models
how can i use internationalization ?
i.e.
var $validate = array(
'item' =>
array(
'rule' => 'alphaNumeric',
'message' => 'must be alphanumeric'
)