Translate buttons "Yes", "No" and "Cancel"
I mean, when I type on Linux terminal "echo $LANG" I get message that I am using "en_US.UTF-8". So, if I create a file by copying to that name (ext-lang-en_US.js) under source/locale, should it work then?
I can't make it work. Is there any other possible way? I mean, it would be nice if I can just give as a parameters to MessageBox my language setttings without external file, because if it depends on locale, it won't help me in this case (because same server -> many users -> should use difrerent localization settings).
For example if you're writing software for german users, you include ext-all, then ext-lang-de.
if(Ext.MessageBox){
Ext.MessageBox.buttonText = {
ok : "OK",
cancel : "Abbrechen",
yes : "Ja",
no : "Nein"
};
}
(or you could dynamically load a locale script depending on the preferred browser language)
#If you have any other info about this subject , Please add it free.# |