1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    10
    Vote Rating
    0
    Piotr_Kim is on a distinguished road

      0  

    Default Grid LoadMask Locale message not working

    Hello

    I've added locale polish file and grids messages "sort ascending, sort descending, column" I have in polish languages.

    I looked into ext-lang-pl.js file and I saw a LoadMask message in polish language.


    But when grid is loading/reloading/paging it only shows english "Loading...".

    I tried to add new loadmask object, change grid.loadmask.msg after grid initializing, option loadMask: { msg: 'new polish text' } and it dont work.

    Any suggestions ?!?

  2. #2
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    11
    Vote Rating
    0
    jaapdev is on a distinguished road

      0  

    Default Localize loading text

    This localization option is forgotten in the ExtJs library. Even in version 4.0.7, which I'm using, the problem is still there. Here's the solution:

    Code:
    Ext.onReady(function () {
    
        if (Ext.view.AbstractView) {
            Ext.view.AbstractView.prototype.loadingText = 'Your localized loading text...';
        }
        
    });
    Add this code after the ExtJs localization file and before your application files.

  3. #3
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    983
    Vote Rating
    116
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      0  

Thread Participants: 2

Tags for this Thread