CC-1960: Internationalize Airtime / Support translations

- overwrote default zend form error messages
This commit is contained in:
denise 2012-11-27 17:11:29 -05:00
parent 37ce75f686
commit 9acfb6c181
10 changed files with 94 additions and 29 deletions

View file

@ -6,6 +6,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
public function init()
{
$notEmptyValidator = Application_Form_Helper_ValidationTypes::overrideNotEmptyValidator();
$this->setDecorators(array(
array('ViewScript', array('viewScript' => 'form/preferences_general.phtml'))
));
@ -31,9 +32,9 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$this->addElement('text', 'stationDefaultFade', array(
'class' => 'input_text',
'label' => _('Default Fade (s):'),
'required' => false,
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(array('regex', false,
'validators' => array(array($notEmptyValidator, 'regex', false,
array('/^[0-9]{1,2}(\.\d{1})?$/',
'messages' => _('enter a time in seconds 0{.0}')))),
'value' => $defaultFade,