rickharrison/validate.js — pull request #79 by chilijung (2013-07-12 10:20:32+00:00)
Title: setting & editing  multi-language in an easy way.

I've add a new parameter in the validate function for setting the language.

``` javascript
var validator = new FormValidator('example_form', [{
name: 'req',
display: 'required',
rules: 'required'
}, {
name: 'alphanumeric',
rules: 'alpha_numeric'
}, {
name: 'password',
rules: 'required'
}, {
name: 'password_confirm',
display: 'password confirmation',
rules: 'required|matches[password]'
}, {
name: 'email',
rules: 'valid_email'
}, {
name: 'minlength',
display: 'min length',
rules: 'min_length[8]'
}], 'english', function(errors) {
if (errors.length > 0) {
// Show the errors
}
});

```

a new parameter in the function `english` -> for setting up english version.

also you can setting up chinese, chinese_zh version, just change by just changing the parameter.