CC-1960: Internationalize Airtime / Support translations

-added gettext wrapper function to all strings missing it
-i18n of jquery timepicker and datepicker
-i18n of jquery datatables columnFilter input place holder labels
This commit is contained in:
denise 2012-11-22 17:32:24 -05:00
parent f3fe05c014
commit dd0e71efcc
16 changed files with 136 additions and 64 deletions

View file

@ -12,7 +12,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
$relativeDates = array();
$relativeDates[""] = "";
for ($i=0; $i<=30; $i++) {
$relativeDates["$i days"] = "+$i days";
$relativeDates["$i days"] = "+$i "._("days");
}
for ($i=1; $i<=10; $i++) {

View file

@ -11,9 +11,9 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
'label' => _('Repeat Type:'),
'class' => ' input_select',
'multiOptions' => array(
"0" => "weekly",
"1" => "bi-weekly",
"2" => "monthly"
"0" => _("weekly"),
"1" => _("bi-weekly"),
"2" => _("monthly")
),
));
@ -25,13 +25,13 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
'label' => _('Select Days:'),
'required' => false,
'multiOptions' => array(
"0" => "Sun",
"1" => "Mon",
"2" => "Tue",
"3" => "Wed",
"4" => "Thu",
"5" => "Fri",
"6" => "Sat",
"0" => _("Sun"),
"1" => _("Mon"),
"2" => _("Tue"),
"3" => _("Wed"),
"4" => _("Thu"),
"5" => _("Fri"),
"6" => _("Sat"),
),
));

View file

@ -27,7 +27,7 @@ class Application_Form_AddShowWhat extends Zend_Form_SubForm
'required' => true,
'filters' => array('StringTrim'),
'validators' => array('NotEmpty'),
'value' => 'Untitled Show',
'value' => _('Untitled Show'),
'validators' => array(array('StringLength', false, array(0, $maxLens['name'])))
));

View file

@ -45,8 +45,8 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$third_party_api = new Zend_Form_Element_Radio('thirdPartyApi');
$third_party_api->setLabel(
sprintf(_('Allow Remote Websites To Access "Schedule" Info?%s (Enable this to make front-end widgets work.'), '<br>'));
$third_party_api->setMultiOptions(array("Disabled",
"Enabled"));
$third_party_api->setMultiOptions(array(_("Disabled"),
_("Enabled")));
$third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi());
$third_party_api->setDecorators(array('ViewHelper'));
$this->addElement($third_party_api);
@ -105,13 +105,13 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
private function getWeekStartDays()
{
$days = array(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
_('Sunday'),
_('Monday'),
_('Tuesday'),
_('Wednesday'),
_('Thursday'),
_('Friday'),
_('Saturday')
);
return $days;
@ -120,7 +120,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
private function getLocales()
{
$locales = array(
'en_CA' => 'English'
'en_CA' => _('English')
);
return $locales;