I completly agree. I stumbled upon this this week aswell.
Would be much nicer if there was a better way to localize the button
texts.
Though it would require backwards incompatible changes. I dont know
how the core team feels about that.
On Apr 28, 9:51 pm, Jörn Zaefferer <
joern.zaeffe...@googlemail.com>
wrote:
> Using an object to specify a list of buttons makes it difficult to
> localize the title. Consider this example:
>
> buttons: {
> // invalid syntax
> [messages.primaryButton]: { ...}
>
> }
>
> Instead you have to split that:
>
> var buttons = {};
> buttons[primaryButton] = { ... }
> [...]
> buttons: buttons, ...
>
> Using an array, you could do:
>
> buttons: [
> {
> title: message.primaryButton,
> click: function() { ... }
> },
> { ... }
> ]
>
> And it would be clear that the buttons are ordered.
>
> Jörn
>
> On Tue, Apr 28, 2009 at 3:16 PM, Andreas <
andr...@klydd.se> wrote:
>
> > Part 1:
http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/fa4...