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