Hi, Michael and I have been working on a multiselect widget (trunk
here http://www.quasipartikel.at/multiselect/ and my branch here
http://github.com/yanickrochon/multiselect/tree/master) I've seen a
thread somewhere where Michale was discussing the widget, but can't
find it anymore... moving on.

What are the thoughts about localization?

I propose a similar approach than what we used for our widget. It
requires two components: a localization script loader and a template
function (second may be optional, but very important IMHO)

The localization script that we are using is here
http://plugins.jquery.com/project/localisation and the template engine
is an implementation similar to Prototype's one here
http://andrew.hedges.name/blog/2008/09/03/introducing-jquery-simple-templates.

Basically, our current implementation works even if the localization
script isn't loaded, thanks to the default options. If a locale is
found, the script simply overrides the options.locale object within
the widget. The template function is simply a way to customize the
messages by putting placeholders like "#{count} items total" within
the string (so it is translated as "5 items total" when displayed),
allowing locales to reorder the placeholders to fit the language
structure : ex: (hypothetical: fr) "Total de #{count} items".
Templating the locale string is optional, but eventually inevitable
for many use cases. Currently, using the template engine is done
through : ex. alert( $.tmpl($.ui.multiselect.locale.itemsTotal,
{count: 5})); This, of course, could be simplified, but it works.

What do you think?


On Jun 10, 2:14 pm, James <[email protected]> wrote:
> http://jqueryui.pbworks.com/
>
> On Jun 9, 7:41 pm, Ashish <[email protected]> wrote:
>
> > HI
>
> > i  have good knowledge of Object oriented javascript. i want to do
> > some development in jqueryUI
>
> > let me know how can i proceed with this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to