Make radio page translatable

This makes the radio page use the station default language if one is set. Previously the pages where not really getting translated.
This commit is contained in:
Lucas Bickel 2017-03-24 17:23:21 +01:00
parent 3196603dde
commit c2deb94c16
5 changed files with 23 additions and 15 deletions

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