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:
parent
3196603dde
commit
c2deb94c16
5 changed files with 23 additions and 15 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue