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

      0  

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

    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,596
    Answers
    541
    Vote Rating
    324
    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
    118
    Answers
    2
    Vote Rating
    0
    Asken is an unknown quantity at this point

      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
    Answers
    1
    Vote Rating
    0
    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