I tried to bring that up earlier...
The label of the button shouldn't be the key in the first place.
I suggested something like this:
buttons: [
close: {
// or messages.buttons.close for i18n
label: "Schließen",
click: function() { ... }
}
]
The key, here "close", could then be used to generate a class, without
having to filter.
Jörn
2009/8/6 Scott González <
scott.gonzalez@gmail.com>:
> What about internationalized buttons?
> $('#dialog').dialog({
> buttons: {
> 'schließen': function() {
> $(this).dialog('close');
> }
> }
> });
> On Thu, Aug 6, 2009 at 10:21 AM, Richard D. Worth <
rdworth@gmail.com>