CC-4876: Default interface language setting does not appear to affect text or drop-down menu on login page?
-fixed
This commit is contained in:
parent
56c61d4ab7
commit
1873022a13
|
@ -4,10 +4,6 @@ class LocaleController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$ajaxContext = $this->_helper->getHelper("AjaxContext");
|
|
||||||
$ajaxContext->addActionContext("general-translation-table", "json")
|
|
||||||
->addActionContext("datatables-translation-table", "json")
|
|
||||||
->initContext();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function datatablesTranslationTableAction()
|
public function datatablesTranslationTableAction()
|
||||||
|
|
|
@ -110,7 +110,7 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
|
||||||
{
|
{
|
||||||
$controller = strtolower($request->getControllerName());
|
$controller = strtolower($request->getControllerName());
|
||||||
|
|
||||||
if (in_array($controller, array("api", "auth"))) {
|
if (in_array($controller, array("api", "auth", "locale"))) {
|
||||||
|
|
||||||
$this->setRoleName("G");
|
$this->setRoleName("G");
|
||||||
} elseif (!Zend_Auth::getInstance()->hasIdentity()) {
|
} elseif (!Zend_Auth::getInstance()->hasIdentity()) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
$(window).load(function(){
|
$(window).load(function(){
|
||||||
$("#username").focus();
|
$("#username").focus();
|
||||||
$("#locale").val($.cookie("airtime_locale")!== null?$.cookie("airtime_locale"):'en_CA');
|
$("#locale").val($.cookie("airtime_locale")!== null?$.cookie("airtime_locale"):$.cookie("default_airtime_locale"));
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
|
@ -111,6 +111,7 @@ $(document).ready(function() {
|
||||||
$.post(url, {format: "json", data: data}, function(data){
|
$.post(url, {format: "json", data: data}, function(data){
|
||||||
var json = $.parseJSON(data);
|
var json = $.parseJSON(data);
|
||||||
$('#content').empty().append(json.html);
|
$('#content').empty().append(json.html);
|
||||||
|
$.cookie("default_airtime_locale", $('#locale').val(), {path: '/'});
|
||||||
setTimeout(removeSuccessMsg, 5000);
|
setTimeout(removeSuccessMsg, 5000);
|
||||||
showErrorSections();
|
showErrorSections();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue