allRules appears to be a var (global?) inside the validationEngine function, not a property. Isn't it easier to just rewrite the whole validation js?
On Feb 6, 12:46 pm, Karnius <cedric.du...@gmail.com> wrote: > Hi guys, I got a plugin I want to do the localisation in french. I > decided to go with a similar solution of the UI datepicker. > > Adding a french js and reparse my json object in french from there. > But it just do not work and i don't have a clue how. > > Please help > > Live english version :http://www.position-relative.net/formValidator/test.html > > The core js : > jQuery.fn.validationEngine = function(settings) { > allRules = {"required":{ // Add your regex rules here, you can take > telephone as an example > "regex":"none", > "alertText":"* This field is required"} > > } > > .............................. > > }; > > The French js: > > jQuery(function($){ > $.validationEngine.allRules = {"required":{ "regex":"none", > "alertText":"* Ce champs est requis"} } > > });