CC-1960: Internationalize Airtime / Support translations

-added gettext wrapper functions for all strings in view/scripts, and forms
This commit is contained in:
denise 2012-11-15 10:59:06 -05:00
parent f0e2d5d295
commit b173b6dda4
78 changed files with 481 additions and 423 deletions

View file

@ -8,7 +8,7 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
//Add type select
$this->addElement('select', 'add_show_repeat_type', array(
'required' => true,
'label' => 'Repeat Type:',
'label' => _('Repeat Type:'),
'class' => ' input_select',
'multiOptions' => array(
"0" => "weekly",
@ -22,7 +22,7 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
'multiCheckbox',
'add_show_day_check',
array(
'label' => 'Select Days:',
'label' => _('Select Days:'),
'required' => false,
'multiOptions' => array(
"0" => "Sun",
@ -37,7 +37,7 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
// Add end date element
$this->addElement('text', 'add_show_end_date', array(
'label' => 'Date End:',
'label' => _('Date End:'),
'class' => 'input_text',
'value' => date("Y-m-d"),
'required' => false,
@ -50,7 +50,7 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
// Add no end element
$this->addElement('checkbox', 'add_show_no_end', array(
'label' => 'No End?',
'label' => _('No End?'),
'required' => false,
'checked' => true,
));
@ -76,7 +76,7 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
$end_epoch = strtotime($end_timestamp);
if ($end_epoch < $start_epoch) {
$this->getElement('add_show_end_date')->setErrors(array('End date must be after start date'));
$this->getElement('add_show_end_date')->setErrors(array(_('End date must be after start date')));
return false;
}