1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default Answered: Ext.Msg button text change

    Answered: Ext.Msg button text change


    Hi,

    In my application i want to change the "yes" and "no" texts of message confirm boxes to "Oui" and "Non" (in french). I can't figure out how to do that.

    Thank you

  2. You can try

    Code:
    Ext.apply(Ext.MessageBox, {
        YES : { text : 'Oui', itemId : 'yes', ui : 'action' },
        NO  : { text : 'Non', itemId : 'no' }
    });
    
    Ext.apply(Ext.MessageBox, {
        YESNO       : [Ext.MessageBox.NO, Ext.MessageBox.YES]
    });
    
    Ext.Msg.confirm('Title', 'Message');

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Answers
    3356
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can try

    Code:
    Ext.apply(Ext.MessageBox, {
        YES : { text : 'Oui', itemId : 'yes', ui : 'action' },
        NO  : { text : 'Non', itemId : 'no' }
    });
    
    Ext.apply(Ext.MessageBox, {
        YESNO       : [Ext.MessageBox.NO, Ext.MessageBox.YES]
    });
    
    Ext.Msg.confirm('Title', 'Message');
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default


    Thx buddy, working great

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar