I have an ordinary jquery dialog like this:
<div id="dialog-confirm" title="Empty the recycle bin?">
<p>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
</div>
<script>
$(function(){
$('#dialog-confirm').dialog({
resizable: false,
height: 140,
modal: true,
buttons:
{
"Delete all items": function() { $(this).dialog('close'); },
"Cancel": function() { $(this).dialog('close'); }
}
});
})
</script>
Sometimes I need to change the text buttons (if user language is french for example). In this case, when the jquery dialog is loaded I would like to adjust buttons. Is it possible?
Thanks