protected function init()
 {
     parent::init();
     $this->setMessage('incorrect_date', _ws("Incorrect date"));
 }
Ejemplo n.º 2
0
 protected function init()
 {
     parent::init();
     $this->setMessage('max_length', sprintf(_ws('No more than %d character please', 'No more than %d characters please', $this->getOption('max_length')), $this->getOption('max_length')));
     $this->setMessage('min_length', sprintf(_ws('No less than %d character please', 'No less than %d characters please', $this->getOption('min_length')), $this->getOption('min_length')));
 }