Re: internationalization in validation

2008-04-26 Thread Jippi
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

Re: internationalization in validation

2008-04-15 Thread [EMAIL PROTECTED]
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

internationalization in validation

2008-04-15 Thread gino pilotino
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' )