UrlValidator: translate error message

This commit is contained in:
Alexander A. Klimov 2017-10-20 14:27:33 +02:00
parent 88074aeb74
commit c22efa4519
1 changed files with 7 additions and 8 deletions

View File

@ -11,15 +11,14 @@ use Zend_Validate_Abstract;
class UrlValidator extends Zend_Validate_Abstract class UrlValidator extends Zend_Validate_Abstract
{ {
/** /**
* Error templates * Constructor
*
* @var array
*
* @see Zend_Validate_Abstract::$_messageTemplates
*/ */
protected $_messageTemplates = array( public function __construct()
'HAS_QUOTES' => 'The url must not contain raw double quotes. If you really need double quotes, use %22 instead.' {
); $this->_messageTemplates = array('HAS_QUOTES' => t(
'The url must not contain raw double quotes. If you really need double quotes, use %22 instead.'
));
}
/** /**
* Validate the input value * Validate the input value