1. #1
    Sencha User hoanghuu's Avatar
    Join Date
    Oct 2011
    Location
    Viet Nam
    Posts
    13
    Vote Rating
    0
    Answers
    1
    hoanghuu is on a distinguished road

      0  

    Default Answered: How to change text for grid header context menu?

    hi there,

    I used Ext JS 4.0.2a and i have a question, how can i change text of grid header context menu? (ex: sortAscText, sortDescText, columnsText, ...)

    I tried override them as code below, but it not work.
    Code:
    Ext.onReady(function(){
    Ext.override(Ext.grid.column.Column, { sortAscText: 'Sắp xếp tăng', sortDescText: 'Sắp xếp giảm', columnsText: 'Hiển thị cột' });
    });

  2. If you're trying to localise the extjs application you should include the extjs/locale/ext-lang-vn.js file or your own version of it to get it in Vietnamese.

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,750
    Vote Rating
    363
    Answers
    572
    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

    Try doing the override on Ext.grid.header.Container instead.

  4. #3
    Ext JS Premium Member Asken's Avatar
    Join Date
    Feb 2010
    Location
    sweden
    Posts
    121
    Vote Rating
    2
    Answers
    2
    Asken is on a distinguished road

      0  

    Default

    If you're trying to localise the extjs application you should include the extjs/locale/ext-lang-vn.js file or your own version of it to get it in Vietnamese.

  5. #4
    Sencha User hoanghuu's Avatar
    Join Date
    Oct 2011
    Location
    Viet Nam
    Posts
    13
    Vote Rating
    0
    Answers
    1
    hoanghuu is on a distinguished road

      0  

    Default

    Quote Originally Posted by Asken View Post
    If you're trying to localise the extjs application you should include the extjs/locale/ext-lang-vn.js file or your own version of it to get it in Vietnamese.
    It work fine. Thanks.

Thread Participants: 2