CC-1960: Internationalize Airtime / Support translations
- overwrote default zend form error messages
This commit is contained in:
parent
37ce75f686
commit
9acfb6c181
10 changed files with 94 additions and 29 deletions
|
@ -7,9 +7,7 @@ class ConditionalNotEmpty extends Zend_Validate_Abstract
|
|||
{
|
||||
const KEY_IS_EMPTY = 'keyIsEmpty';
|
||||
|
||||
protected $_messageTemplates = array(
|
||||
self::KEY_IS_EMPTY => 'Value is required and can\'t be empty'
|
||||
);
|
||||
protected $_messageTemplates;
|
||||
|
||||
protected $_fieldValues;
|
||||
|
||||
|
@ -24,6 +22,9 @@ class ConditionalNotEmpty extends Zend_Validate_Abstract
|
|||
public function __construct($fieldValues)
|
||||
{
|
||||
$this->_fieldValues = $fieldValues;
|
||||
$this->_messageTemplates = array(
|
||||
self::KEY_IS_EMPTY => _("Value is required and can't be empty")
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue