I have two JavaScript files with translations, which will be included depending on the users language. This works fine for most cases. But not for the Buttons object inside an jQuery UI Dialog. Any ideas how to solve this?
if (data.status == 'success') {
options = {
buttons: {
CLOSE: function() {
$(this).dialog('close');
}
}
};
CLOSE must be translated.