1

I am working with different languages with the Sencha Touch framework, and translating MessageBox buttons to different languages, I have added it and it is working but with the russian I am having problems, instead of appears the correct translation appears "???" doesn´t detect correctly the translation with special characters. Any clue?

Tarabass
  • 3,132
  • 2
  • 17
  • 35
inane
  • 626
  • 10
  • 26

1 Answers1

0

Yes, I am working with UTF8 charset, but I have solved this issue receiving the labels from the backend here the code:

 var language = 'RU', //sent from the backend
            overWriting = Ext.MessageBox.YESNO;
        switch (language) {
            case "RU" :
                var b = Ext.MessageBox;

                Ext.apply(b, {
                    YES: {text: 'russian text YES', itemId: 'yes', ui: 'action'},
                    NO: {text:'russian text NO', itemId: 'no'}
                });

                Ext.apply(b, {
                    YESNO: [b.NO, b.YES]
                });
                overWriting = b.YESNO;
                break;
}
inane
  • 626
  • 10
  • 26