diff --git a/airtime_mvc/application/controllers/LocaleController.php b/airtime_mvc/application/controllers/LocaleController.php
index 7084acc9f..0e236bd6b 100644
--- a/airtime_mvc/application/controllers/LocaleController.php
+++ b/airtime_mvc/application/controllers/LocaleController.php
@@ -51,6 +51,7 @@ class LocaleController extends Zend_Controller_Action
//"Adding 1 Item" => _("Adding 1 Item"),
//"Adding %s Items" => _("Adding %s Items"),
//library/library.js
+ " Add to selected show" => _(" Add to selected show"),
"Select" => _("Select"),
"Select this page" => _("Select this page"),
"Deselect this page" => _("Deselect this page"),
@@ -100,9 +101,8 @@ class LocaleController extends Zend_Controller_Action
"Input must be in the format: yyyy-mm-dd" => _("Input must be in the format: yyyy-mm-dd"),
"Input must be in the format: hh:mm:ss.t" => _("Input must be in the format: hh:mm:ss.t"),
//library/plupload.js
- "You are currently uploading files." => _("You are currently uploading files."),
- "Going to another screen will cancel the upload process." => _("Going to another screen will cancel the upload process."),
- "Are you sure you want to leave the page?" => _("Are you sure you want to leave the page?"),
+ "You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?"
+ => _("You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?"),
//library/spl.js
"please put in a time '00:00:00 (.0)'" => _("please put in a time '00:00:00 (.0)'"),
"please put in a time in seconds '00 (.0)'" => _("please put in a time in seconds '00 (.0)'"),
@@ -127,8 +127,8 @@ class LocaleController extends Zend_Controller_Action
=> _("A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show."),
"A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library."
=> _("A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library."),
- "If your criteria is too strict, Airtime may not be able to fill up the desired smart block length. Hence, if you check this option, tracks will be used more than once."
- => _("If your criteria is too strict, Airtime may not be able to fill up the desired smart block length. Hence, if you check this option, tracks will be used more than once."),
+ "The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block."
+ => _("The desired block length will not be reached if Airtime cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block."),
"Smart block shuffled" => _("Smart block shuffled"),
"Smart block generated and criteria saved" => _("Smart block generated and criteria saved"),
"Smart block saved" => _("Smart block saved"),
@@ -302,7 +302,26 @@ class LocaleController extends Zend_Controller_Action
//dataTables/ColVis.js
"Show / hide columns" => _("Show / hide columns"),
//datatables.columnFilter.js
- "From {from} to {to}" => _("From {from} to {to}")
+ "From {from} to {to}" => _("From {from} to {to}"),
+ " kbps" => _(" kbps"),
+ " yyyy-mm-dd" => _(" yyyy-mm-dd"),
+ " hh:mm:ss.t" => _(" hh:mm:ss.t"),
+ " kHz" => _(" kHz"),
+ //datepicker
+ //months are already in schedule/schedule.js
+ "Su" => _("Su"),
+ "Mo" => _("Mo"),
+ "Tu" => _("Tu"),
+ "We" => _("We"),
+ "Th" => _("Th"),
+ "Fr" => _("Fr"),
+ "Sa" => _("Sa"),
+ "Close" => _("Close"),
+ //timepicker
+ "Hour" => _("Hour"),
+ "Minute" => _("Minute"),
+ "Done" => _("Done")
+
);
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
diff --git a/airtime_mvc/application/forms/AddShowRebroadcastDates.php b/airtime_mvc/application/forms/AddShowRebroadcastDates.php
index d05dfcba3..74725c98c 100644
--- a/airtime_mvc/application/forms/AddShowRebroadcastDates.php
+++ b/airtime_mvc/application/forms/AddShowRebroadcastDates.php
@@ -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++) {
diff --git a/airtime_mvc/application/forms/AddShowRepeats.php b/airtime_mvc/application/forms/AddShowRepeats.php
index 0028e1711..f0c2609e2 100644
--- a/airtime_mvc/application/forms/AddShowRepeats.php
+++ b/airtime_mvc/application/forms/AddShowRepeats.php
@@ -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"),
),
));
diff --git a/airtime_mvc/application/forms/AddShowWhat.php b/airtime_mvc/application/forms/AddShowWhat.php
index 436bcef07..75ae8724b 100644
--- a/airtime_mvc/application/forms/AddShowWhat.php
+++ b/airtime_mvc/application/forms/AddShowWhat.php
@@ -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'])))
));
diff --git a/airtime_mvc/application/forms/GeneralPreferences.php b/airtime_mvc/application/forms/GeneralPreferences.php
index 80c11e2d5..390b9fa43 100644
--- a/airtime_mvc/application/forms/GeneralPreferences.php
+++ b/airtime_mvc/application/forms/GeneralPreferences.php
@@ -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.'), '
'));
- $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;
diff --git a/airtime_mvc/application/models/Webstream.php b/airtime_mvc/application/models/Webstream.php
index 9297cb1d9..700ecdf64 100644
--- a/airtime_mvc/application/models/Webstream.php
+++ b/airtime_mvc/application/models/Webstream.php
@@ -50,7 +50,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
list($hours, $min, $sec) = $arr;
$di = new DateInterval("PT{$hours}H{$min}M{$sec}S");
- return $di->format("%Hh %Im");
+ return $di->format("%H"._("h")." %I"._("m"));
}
return "";
diff --git a/airtime_mvc/application/views/scripts/form/register-dialog.phtml b/airtime_mvc/application/views/scripts/form/register-dialog.phtml
index a6ee40f6d..1c51d010d 100644
--- a/airtime_mvc/application/views/scripts/form/register-dialog.phtml
+++ b/airtime_mvc/application/views/scripts/form/register-dialog.phtml
@@ -1,4 +1,4 @@
-