forked from guillaumepotier/Parsley.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/guillaumepotier/Parsley.js …
…into luhn-validator Conflicts: dist/parsley.extend.min.js parsley.extend.js tests/index.html tests/tests.js
- Loading branch information
Showing
11 changed files
with
261 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* /!\ This file is just an example template to create/update your own language file /!\ | ||
*/ | ||
|
||
window.ParsleyConfig = window.ParsleyConfig || {}; | ||
|
||
(function ($) { | ||
window.ParsleyConfig = $.extend( true, {}, window.ParsleyConfig, { | ||
messages: { | ||
// parsley ////////////////////////////////////// | ||
defaultMessage: "This value seems to be invalid." | ||
, type: { | ||
email: "This value should be a valid email." | ||
, url: "This value should be a valid url." | ||
, urlstrict: "This value should be a valid url." | ||
, number: "This value should be a valid number." | ||
, digits: "This value should be digits." | ||
, dateIso: "This value should be a valid date (YYYY-MM-DD)." | ||
, alphanum: "This value should be alphanumeric." | ||
} | ||
, notnull: "This value should not be null." | ||
, notblank: "This value should not be blank." | ||
, required: "This value is required." | ||
, regexp: "This value seems to be invalid." | ||
, min: "This value should be greater than %s." | ||
, max: "This value should be lower than %s." | ||
, range: "This value should be between %s and %s." | ||
, minlength: "This value is too short. It should have %s characters or more." | ||
, maxlength: "This value is too long. It should have %s characters or less." | ||
, rangelength: "This value length is invalid. It should be between %s and %s characters long." | ||
, mincheck: "You must select at least %s choices." | ||
, maxcheck: "You must select %s choices or less." | ||
, rangecheck: "You must select between %s and %s choices." | ||
, equalto: "This value should be the same." | ||
|
||
// parsley.extend /////////////////////////////// | ||
, minwords: "Aquest valor ha de tenir %s paraules com a mínim." | ||
minwords: "This value should have %s words at least." | ||
, maxwords: "This value should have %s words maximum." | ||
, rangewords: "This value should have between %s and %s words." | ||
, greaterthan: "This value should be greater than %s." | ||
, lessthan: "This value should be less than %s." | ||
, beforedate: "This date should be before %s." | ||
, afterdate: "This date should be after %s." | ||
} | ||
}); | ||
}(window.jQuery || window.Zepto)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters