JQuery UI Dialog Buttons translation
Hi !
I would be able to translate text of the buttons in the modal Dialog
for example.
Unfortunately, I can not provide any function as a key in "buttons"
Array.
For example, this code does not work :
var cancelBtn = function() {
return MyAppli.t('Cancel');
};
var okBtn = MyAppli.t('Delete all selected items');
With this dictionnary in Dialog constructor options :
buttons: {
okBtn: function() {
$(this).dialog('close');
},
cancelBtn: function() {
$(this).dialog('close');
}
}
Thank you in advance for your help.