so adding <script type="text/javascript" src="script/messages_se.js"></script> 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<joern.zaeffe...@googlemail.com> 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 could hack that by putting the swedish properties into a different > variable, then modifying $.validator.messages at runtime. > > Jörn > > On Thu, Jul 23, 2009 at 1:25 PM, Mats Hellman<matsh...@gmail.com> wrote: >> >> How do I change the language for the messages being displayed ones an >> error in a form is found? >> Just as an example, say I have Swedish and English at a site and load >> validate on both pages. How do I set the language correctly? >> >