Fix locale generation for js dicts
This commit is contained in:
parent
559fdd0659
commit
caaa0c0e2a
|
@ -1,12 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class LocaleController extends Zend_Controller_Action
|
final class LocaleController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
|
|
||||||
public function init()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function datatablesTranslationTableAction()
|
public function datatablesTranslationTableAction()
|
||||||
{
|
{
|
||||||
$this->view->layout()->disableLayout();
|
$this->view->layout()->disableLayout();
|
||||||
|
@ -443,7 +438,6 @@ class LocaleController extends Zend_Controller_Action
|
||||||
$this->view->layout()->disableLayout();
|
$this->view->layout()->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender(true);
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
header("Content-type: text/javascript");
|
header("Content-type: text/javascript");
|
||||||
echo "var general_dict=".json_encode($translations);
|
echo "var general_dict=".$this->_helper->json->encodeJson($translations);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@ class PageLayoutInitPlugin extends Zend_Controller_Plugin_Abstract
|
||||||
"api",
|
"api",
|
||||||
"auth",
|
"auth",
|
||||||
"error",
|
"error",
|
||||||
"locale",
|
|
||||||
"upgrade",
|
"upgrade",
|
||||||
'whmcs-login',
|
'whmcs-login',
|
||||||
"provisioning",
|
"provisioning",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Application_Model_Locale
|
final class Application_Model_Locale
|
||||||
{
|
{
|
||||||
private static $domains = array(
|
private static $domains = array(
|
||||||
'airtime',
|
'airtime',
|
||||||
|
|
Loading…
Reference in New Issue