UrlValidator: translate error message
This commit is contained in:
parent
88074aeb74
commit
c22efa4519
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue