Hello !
In the moment i look for an way to translate the fieldlabe's of a form.
I have same languages a in the moment i know not how many.
I will send an Ajax.request to the server. The Server became the language and the
fieldlabel string. I became back the translated string.
My form:
Code:
xtype: 'textfield',
fieldLabel: SprachUebermittlung('E-Mail Adresse'),
name: 'email',
id: 'email',
width: 200,
vtype: 'email',
allowBlank: false
},{
xtype: 'textfield',
fieldLabel: 'Passwort',
name: 'passwort',
id: 'passwort',
inputType: 'password',
width: 200,
allowBlank: false
The Ajax script:
Code:
// return "New Label";
Ext.Ajax.request({
method: 'post',
url: 'kontroller.php',
params: {
aktion: 'sprache',
modul: 'sprache',
sprache: language, // the aktuell language
inhalt: wert // the string to translate
},
success: function(response){
var rueck = Ext.util.JSON.decode(response.responseText);
// console.dir(rueck);
// return rueck.sprache;
// console.warn('Sprachuebersetzung');
return rueck.sprache;
}
});
I have tested 2 version.
When i use the red version.
No label is in the form.
When i use the green version it works fine.
Wy ?????????? 
Your sincerly
Stephan