• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

AutoCode & Multilanguage support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AutoCode & Multilanguage support

    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.

  • #2
    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.

    Comment

    Working...
    X