diff --git a/airtime_mvc/application/controllers/EmbedController.php b/airtime_mvc/application/controllers/EmbedController.php index eba37c93c..dbe12cb0b 100644 --- a/airtime_mvc/application/controllers/EmbedController.php +++ b/airtime_mvc/application/controllers/EmbedController.php @@ -2,11 +2,13 @@ class EmbedController extends Zend_Controller_Action { - public function init() - { - + public function init() { + // translate widgets to station default language + $locale = Application_Model_Preference::GetDefaultLocale(); + if ($locale) { + Application_Model_Locale::configureLocalization($locale); + } } - /** * This is the action that is called to insert the player onto a web page. * It passes all the js and css files to the view, as well as all the diff --git a/airtime_mvc/application/controllers/IndexController.php b/airtime_mvc/application/controllers/IndexController.php index 8a04b85ca..619b85bd8 100644 --- a/airtime_mvc/application/controllers/IndexController.php +++ b/airtime_mvc/application/controllers/IndexController.php @@ -34,6 +34,12 @@ class IndexController extends Zend_Controller_Action $this->_helper->layout->setLayout('radio-page'); + // translate page to station default language + $locale = Application_Model_Preference::GetDefaultLocale(); + if ($locale) { + Application_Model_Locale::configureLocalization($locale); + } + $this->view->stationLogo = Application_Model_Preference::GetStationLogo(); $stationName = Application_Model_Preference::GetStationName(); diff --git a/airtime_mvc/application/views/scripts/embed/player.phtml b/airtime_mvc/application/views/scripts/embed/player.phtml index c14de15e2..853dbddc1 100644 --- a/airtime_mvc/application/views/scripts/embed/player.phtml +++ b/airtime_mvc/application/views/scripts/embed/player.phtml @@ -395,7 +395,7 @@
- Powered by + diff --git a/airtime_mvc/application/views/scripts/embed/weekly-program.phtml b/airtime_mvc/application/views/scripts/embed/weekly-program.phtml index 59202bf26..548f9e233 100644 --- a/airtime_mvc/application/views/scripts/embed/weekly-program.phtml +++ b/airtime_mvc/application/views/scripts/embed/weekly-program.phtml @@ -84,7 +84,7 @@