Merge pull request #123 from radiorabe/feature/translatable-radio-page
Translatable radio page
This commit is contained in:
commit
d6b7a86048
39 changed files with 14112 additions and 13671 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