[dialog] - button-label by language-object ?

[dialog] - button-label by language-object ?


Hi,
i'm building a site with some of your jqueryUI Plugins, like the
dialogbox. Now i want to create a confirmationbox, but i want to label
the buttons by an language-object. e.g. :
buttons: {
    language['yes'] : function() {
        $(this).dialog('close');
    },
    language['no']: function() {
        $(this).dialog('close');
    }
}
But this way do not work. Any help ?