BUG 9216 Al cambiar el idioma por system settings... SOLVED
- By selecting the language in settings the Dropdown shows no language predefined. - was add posts to language in the login and system for more information, and was modified the Dropdown for show the language predefined.
This commit is contained in:
@@ -321,6 +321,7 @@ class Main extends Controller
|
|||||||
$availableLangArray = $this->getLanguagesList();
|
$availableLangArray = $this->getLanguagesList();
|
||||||
|
|
||||||
$this->includeExtJSLib('ux/virtualkeyboard');
|
$this->includeExtJSLib('ux/virtualkeyboard');
|
||||||
|
$this->setJSVar('sysLang', SYS_LANG);
|
||||||
$this->includeExtJS('main/sysLogin');
|
$this->includeExtJS('main/sysLogin');
|
||||||
|
|
||||||
$this->setVar('logo_company', $this->getCompanyLogo());
|
$this->setVar('logo_company', $this->getCompanyLogo());
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ $_DBArray ['availableWorkspace'] = $availableWorkspaceArray;
|
|||||||
$_SESSION ['_DBArray'] = $_DBArray;
|
$_SESSION ['_DBArray'] = $_DBArray;
|
||||||
|
|
||||||
$aField ['LOGIN_VERIFY_MSG'] = G::loadTranslation ( 'LOGIN_VERIFY_MSG' );
|
$aField ['LOGIN_VERIFY_MSG'] = G::loadTranslation ( 'LOGIN_VERIFY_MSG' );
|
||||||
|
$aField['USER_LANG'] = SYS_LANG;
|
||||||
//Get Server Configuration
|
//Get Server Configuration
|
||||||
G::LoadClass ( 'serverConfiguration' );
|
G::LoadClass ( 'serverConfiguration' );
|
||||||
$oServerConf = & serverConf::getSingleton ();
|
$oServerConf = & serverConf::getSingleton ();
|
||||||
|
|||||||
@@ -91,11 +91,9 @@ Ext.onReady(function(){
|
|||||||
handler : saveSettings
|
handler : saveSettings
|
||||||
});
|
});
|
||||||
|
|
||||||
xfields = new Ext.form.FieldSet({
|
xfieldsUp = new Ext.form.FieldSet({
|
||||||
title: _('ID_SYSTEM_SETTINGS'),
|
title: _('ID_SYSTEM_SETTINGS'),
|
||||||
items : [
|
items : [
|
||||||
cmbSkins,
|
|
||||||
cmbLang,
|
|
||||||
cmbTimeZone,
|
cmbTimeZone,
|
||||||
{
|
{
|
||||||
xtype: 'numberfield',
|
xtype: 'numberfield',
|
||||||
@@ -109,22 +107,28 @@ Ext.onReady(function(){
|
|||||||
changeSettings();
|
changeSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}/*,
|
|
||||||
{
|
|
||||||
name: 'forgotPasswd',
|
|
||||||
xtype: 'checkbox',
|
|
||||||
checked: false, //forgotPasswd,
|
|
||||||
fieldLabel: _('ID_ENABLE_FOTGOT_PASSWORD'),
|
|
||||||
listeners:{
|
|
||||||
check:function(){
|
|
||||||
changeSettings();
|
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}*/
|
|
||||||
],
|
|
||||||
buttons : [saveButton]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
xfieldsBelow = new Ext.form.FieldSet({
|
||||||
|
title: '',
|
||||||
|
items : [
|
||||||
|
cmbSkins,
|
||||||
|
cmbLang,
|
||||||
|
{
|
||||||
|
xtype: 'panel',
|
||||||
|
anchor: '100%',
|
||||||
|
bodyStyle:'padding:5px',
|
||||||
|
frame: true,
|
||||||
|
height: 'auto',
|
||||||
|
html:'The language that is set by default applies directly when the domain is entered '+
|
||||||
|
' (eg.- http://127.0.0.1:8081), the system reads the configuration and redirects '+
|
||||||
|
' the link to the selected language (eg.- http://127.0.0.1:8081/sys/en/classic/login/login),'+
|
||||||
|
' it should be emphasized that this configuration is for all environments.'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
var frm = new Ext.FormPanel({
|
var frm = new Ext.FormPanel({
|
||||||
title: ' ',
|
title: ' ',
|
||||||
@@ -133,7 +137,7 @@ Ext.onReady(function(){
|
|||||||
width:460,
|
width:460,
|
||||||
labelAlign:'right',
|
labelAlign:'right',
|
||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
bodyStyle:'padding:2px',
|
bodyStyle:'padding:5px',
|
||||||
waitMsgTarget : true,
|
waitMsgTarget : true,
|
||||||
frame: true,
|
frame: true,
|
||||||
|
|
||||||
@@ -142,7 +146,8 @@ Ext.onReady(function(){
|
|||||||
msgTarget: 'side',
|
msgTarget: 'side',
|
||||||
align:'center'
|
align:'center'
|
||||||
},
|
},
|
||||||
items:[ xfields ]
|
items:[ xfieldsUp, xfieldsBelow ],
|
||||||
|
buttons : [saveButton]
|
||||||
|
|
||||||
});
|
});
|
||||||
//render to process-panel
|
//render to process-panel
|
||||||
|
|||||||
@@ -203,10 +203,10 @@ Login.initComponents = function()
|
|||||||
}),
|
}),
|
||||||
listeners : {
|
listeners : {
|
||||||
afterrender : function() {
|
afterrender : function() {
|
||||||
if (defaultLang == '') return;
|
if (sysLang == '') return;
|
||||||
|
|
||||||
var store = languagesCmb.getStore();
|
var store = languagesCmb.getStore();
|
||||||
var i = store.findExact('id', defaultLang, 0);
|
var i = store.findExact('id', sysLang, 0);
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
Ext.getCmp('language').setValue(store.getAt(i).data.id);
|
Ext.getCmp('language').setValue(store.getAt(i).data.id);
|
||||||
Ext.getCmp('language').setRawValue(store.getAt(i).data.name);
|
Ext.getCmp('language').setRawValue(store.getAt(i).data.name);
|
||||||
|
|||||||
@@ -60,6 +60,15 @@ Ext.onReady(function(){
|
|||||||
changeSettings();
|
changeSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
xtype: 'panel',
|
||||||
|
anchor: '100%',
|
||||||
|
bodyStyle:'padding:5px',
|
||||||
|
frame: true,
|
||||||
|
height: 'auto',
|
||||||
|
html:'The default language that is configured in this place is for the "dropdown" of the '+
|
||||||
|
'languages that are displaying on the login screen, this configuration is set for each workspace.'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
buttons : [saveButton]
|
buttons : [saveButton]
|
||||||
|
|||||||
Reference in New Issue
Block a user