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?
Asked
Active
Viewed 133 times
1
-
Make sure that your JavaScript files are in UTF-8 – Baidaly Jul 23 '15 at 16:06
1 Answers
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