Merge pull request #123 from radiorabe/feature/translatable-radio-page

Translatable radio page
This commit is contained in:
Robb 2017-03-26 00:02:36 -04:00 committed by GitHub
commit d6b7a86048
39 changed files with 14112 additions and 13671 deletions

View file

@ -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

View file

@ -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();