victorjonsson/jQuery-Form-Validator — pull request #9 by stevewasiura (2012-05-08 19:38:16+00:00)
Title: modified jquery.formvalidation.js to refresh language var after jQueryFormUtils.LANG extended with customized localization strings

minimized version needs updating after you approve this pull

I discovered an issue when trying to use localization (changing the error dialogs to show customized strings).

when creating an var object to hold customized strings for the error dialogs, and only setting values for a 1 or 2 of those strings, i.e. errorTitle, requiredFields, etc., the other default values were showing as "undefined".

tracing through the code, it appeared the object being passed to the validate and doValidate functions was not the updated jQueryFormUtils.LANG object, but the var object that contained the customized strings.

so I modified the code that extended the jQueryFormUtils.LANG object, to refresh the language var with the updated jQueryFormUtils.LANG object.

I did that in two places, in the validate and doValidation functions, as you'll see if my branch.