PDA

View Full Version : AutoCode & Multilanguage support


rodiusd
04-14-2010, 03:48 PM
When we create a maintenance program via the autocode, the fieldlabels are blank

items:[{
xtype:'numberfield',
id:'edit_MBRLICNUM',
autoCreate:{
tag:'input',
maxlength:'9'
},
fieldLabel:''

Could in a future release it be possible when creating a new autocode to have an options who says that we like a multilanguage app.

When the code generated the fieldlabel could then maybe already set as follows:

items:[{
xtype:'numberfield',
id:'edit_MBRLICNUM',
autoCreate:{
tag:'input',
maxlength:'9'
},
fieldLabel:'literal.MBRLICNUM'

Where MBRLICNUM is the shortname of the field.

Also add in the generated code the arrays:

literals = {};
messages = {};

and the code
Ext.onReady(function() {
Valence.util.execScriptFiles({
urls: ['/vvresources/locale/examples/MBR100-' + Valence.lang.getLanguage() + '.js'],
callback: simpleformML
});
});

This where MBR100 is the name of the RPG pgm already given.

The only thing then to do is creating MBR100-xx.js file for each language we need.

Hope you can consider this to be included as new feature because we are living in a multilanguage country nl.Belgium and so this multilanguage thing is very needed.

richard.milone
04-14-2010, 03:53 PM
I'll put this on our list of enhancements for Valence 2.2. I moved this thread to the Valence Feature Requests forum so we don't lose track of it.