1. #1
    Sencha User
    Join Date
    Aug 2007
    Posts
    21
    Vote Rating
    0
    exebenus is on a distinguished road

      0  

    Default Answered: How to apply Locale in RowEditing's buttons ('Update' & 'Cancel')

    Answered: How to apply Locale in RowEditing's buttons ('Update' & 'Cancel')


    Hi,

    I'm using the locale file correctly (I think) but how can I apply the locale options in those dinamic buttons shown when editing inside grids using rowEditing plugin?

    extjs_problem.PNG

    Thanks in advance!

  2. Seems to be missing from the locale files. User-facing strings like these are usually placed on the prototype of the relevant class so that they can be easily modified. I haven't tested it but from a quick look at the source code I think something like this will probably work:

    Code:
    Ext.apply(Ext.grid.RowEditor.prototype, {
        saveBtnText  : 'abc',
        cancelBtnText: 'abc',
        errorsText: 'abc',
        dirtyText: 'abc'
    });

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,624
    Vote Rating
    331
    Answers
    550
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Seems to be missing from the locale files. User-facing strings like these are usually placed on the prototype of the relevant class so that they can be easily modified. I haven't tested it but from a quick look at the source code I think something like this will probably work:

    Code:
    Ext.apply(Ext.grid.RowEditor.prototype, {
        saveBtnText  : 'abc',
        cancelBtnText: 'abc',
        errorsText: 'abc',
        dirtyText: 'abc'
    });

  4. #3
    Sencha User
    Join Date
    Aug 2007
    Posts
    21
    Vote Rating
    0
    exebenus is on a distinguished road

      0  

    Default


    Thank you!!! It worked perfectly!!

    Sorry taking so long to answer... I've been away for a long time..

Thread Participants: 1