[jQuery] Re: validate - Change the message language

2009-09-07 Thread Avangelist
I guess that you could shorten it further by creating a pseudo boot file to initialise all your scripts rather than requesting them all? Think if you were to expand your language set even further you could end up with a lot of conditional includes there.

[jQuery] Re: validate - Change the message language

2009-07-23 Thread Mats Hellman
Yes. Got it now. Thanks! On Thu, Jul 23, 2009 at 3:35 PM, Jörn Zaefferer wrote: > > You include the js file for the language of the page. Load no > additional file for english, and messages_se.js for swedish. There is > no support to load two locales at once and switch after page load. > > You co

[jQuery] Re: validate - Change the message language

2009-07-23 Thread Mats Hellman
so adding should load the swedish messages instead of the english ones? And using PHP to check $lang and output nothing for english and the statement above for swedish should be enough. On Thu, Jul 23, 2009 at 3:35 PM, Jörn Zaefferer wrote: > > You include the js file for the language of the pa

[jQuery] Re: validate - Change the message language

2009-07-23 Thread Jörn Zaefferer
You include the js file for the language of the page. Load no additional file for english, and messages_se.js for swedish. There is no support to load two locales at once and switch after page load. You could hack that by putting the swedish properties into a different variable, then modifying $.