├── images ├── bg.jpg └── bg2.png ├── css ├── screenshot.png ├── style.css └── validationEngine.jquery.css ├── .gitignore ├── CHANGELOG.md ├── bower.json ├── package.json ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── js ├── contrib │ └── other-validations.js └── languages │ ├── jquery.validationEngine-uk │ ├── jquery.validationEngine-fi.js │ ├── jquery.validationEngine-lt.js │ ├── jquery.validationEngine-he.js │ ├── jquery.validationEngine-fr.js │ ├── jquery.validationEngine-et.js │ ├── jquery.validationEngine-de.js │ ├── jquery.validationEngine-ru.js │ ├── jquery.validationEngine-ca.js │ ├── jquery.validationEngine-es.js │ ├── jquery.validationEngine-nl.js │ ├── jquery.validationEngine-da.js │ ├── jquery.validationEngine-ja.js │ ├── jquery.validationEngine-pt_BR.js │ ├── jquery.validationEngine-sv.js │ ├── jquery.validationEngine-cz.js │ ├── jquery.validationEngine-tr.js │ ├── jquery.validationEngine-bg.js │ ├── jquery.validationEngine-pl.js │ └── jquery.validationEngine-hu.js └── less └── validationEngine.jquery.less /images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posabsolute/jQuery-Validation-Engine/HEAD/images/bg.jpg -------------------------------------------------------------------------------- /images/bg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posabsolute/jQuery-Validation-Engine/HEAD/images/bg2.png -------------------------------------------------------------------------------- /css/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posabsolute/jQuery-Validation-Engine/HEAD/css/screenshot.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .tmp_*~ 2 | .DS_Store 3 | /js/jquery.validationEngine.log.txt 4 | /js/jquery.validationEngine.js.min.js.log.txt 5 | /js/jquery.validationEngine-en.log.txt 6 | .idea -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 3.1.1 2 | 3 | Just cleaned the repository. 4 | 5 | ### Added 6 | 7 | - Nothing. 8 | 9 | ### Changed 10 | 11 | - Nothing. 12 | 13 | ### Deprecated 14 | 15 | - Nothing. 16 | 17 | ### Removed 18 | 19 | - Nothing. 20 | 21 | ### Fixed 22 | 23 | - Nothing. 24 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "validationengine", 3 | "description": "Validate your forms with style. Complete api included for advanced users", 4 | "main": [ 5 | "js/jquery.validationEngine.js", 6 | "css/validationEngine.jquery.css" 7 | ], 8 | "dependencies": { 9 | "jquery": ">=1.7" 10 | }, 11 | "keywords": [ 12 | "form", 13 | "field", 14 | "validation" 15 | ], 16 | "authors": [ 17 | { "name": "Cedric Dugas", "homepage": "http://www.position-absolute.com" }, 18 | { "name": "Olivier Refalo", "homepage": "http://www.crionics.com" } 19 | ], 20 | "license": "MIT", 21 | "ignore": [ 22 | "test/", 23 | "tests/" 24 | ] 25 | } -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background:url(../images/bg.jpg); 3 | text-shadow: 1px 1px 0px white; 4 | margin: 0; 5 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 6 | font-size: 13px; 7 | line-height: 18px; 8 | color: #333; 9 | } 10 | 11 | h1, h2, h3, h4, h5, h6 { 12 | margin: 0; 13 | font-family: inherit; 14 | font-weight: bold; 15 | color: inherit; 16 | text-rendering: optimizelegibility; 17 | } 18 | h1 { 19 | font-size: 30px; 20 | line-height: 36px; 21 | padding: 50px 0 20px; 22 | } 23 | #websiteContainer{ 24 | background:url(../images/bg2.png) top left no-repeat; 25 | height: 529px; 26 | } 27 | .containerRelease{ 28 | width:780px; 29 | margin-left:230px; 30 | } 31 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-engine", 3 | "version": "1.0.0", 4 | "description": "jQuery.validationEngine v2.6.2 =====", 5 | "main": "index.js", 6 | "directories": { 7 | "test": "tests" 8 | }, 9 | "dependencies":{ 10 | "jquery": ">=1.6" 11 | }, 12 | "scripts": { 13 | "test": "echo \"Error: no test specified\" && exit 1" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/posabsolute/jQuery-Validation-Engine.git" 18 | }, 19 | "author": "", 20 | "license": "ISC", 21 | "bugs": { 22 | "url": "https://github.com/posabsolute/jQuery-Validation-Engine/issues" 23 | }, 24 | "homepage": "https://github.com/posabsolute/jQuery-Validation-Engine#readme" 25 | } 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## I'm submitting a... 2 | 3 |
4 | [ ] Bug report
5 | [ ] Feature request
6 | [ ] Documentation issue or request
7 |
8 |
9 | ## Current behavior
10 |
11 |
12 |
13 | ## Expected behavior
14 |
15 |
16 |
17 |
18 | ## Minimal reproduction of the problem with instructions
19 |
20 | ## If this is a feature request please fill out the following:
21 |
22 |
23 | As a (user, developer, contributor, etc):
24 | I want:
25 | So that:
26 |
27 |
28 |
29 | ## Environment
30 |
31 |
32 | Browser:
33 | - [ ] Chrome (desktop) version XX
34 | - [ ] Chrome (Android) version XX
35 | - [ ] Chrome (iOS) version XX
36 | - [ ] Firefox version XX
37 | - [ ] Safari (desktop) version XX
38 | - [ ] Safari (iOS) version XX
39 | - [ ] IE version XX
40 | - [ ] Edge version XX
41 |
42 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | # jQuery Validation Engine PR Request Template
2 |
3 | #### Please note: Has this feature already been added? Sometimes, duplicate pull requests happen. It's worth checking the pull requests and issue page to see if the change you are requesting has already been made.
4 |
5 | #### Descriptive name.
6 | Your pull request should have a descriptive name.
7 |
8 | #### Type of Change was Made?
9 | What type of change does your code introduce? After creating the PR, tick the checkboxes that apply.
10 | - [ ] Small bug fix (non-breaking change which fixes an issue)
11 | - [ ] New feature (non-breaking change which adds new functionality)
12 | - [ ] Improvement (Enhance an existing functionality)
13 | - [ ] Breaking change (fix or feature that would change existing functionality)
14 |
15 | #### Description of the Change Being Made.
16 | It's helpful to outline what changes were made to which files so that I have an idea of what will be involved in reviewing the code and—hopefully—merging it into the codebase.
17 |
18 | #### Issue Number
19 | If your pull request is related to a specific issue, please included it in your description and or pull request name. It helps to keep changes linked. Any issues that are referenced in pull requests become part of the discussion history of the issue.
20 |
21 | #### Potential Performance Issues
22 | Does the PR have a potential impact on performance on the codebase? If so, to what degree and why does the PR warrant the performance hit?
23 |
24 | #### Tests/Checks
25 | What tests were conducted to ensure the PR functions have no impact on previous functionalities of the code base?
26 |
27 | #### New Dependencies
28 | Have new dependencies been introduced? Please list them with links to documentation and add installation steps to the README.
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/js/contrib/other-validations.js:
--------------------------------------------------------------------------------
1 | /*
2 | This file contains validations that are too specific to be part of the core
3 | Please reference the file AFTER the translation file or the rules will be overwritten
4 | Use at your own risk. We can't provide support for most of the validations
5 | */
6 | (function($){
7 | if($.validationEngineLanguage == undefined || $.validationEngineLanguage.allRules == undefined )
8 | alert("Please include other-validations.js AFTER the translation file");
9 | else {
10 | $.validationEngineLanguage.allRules["postcodeUK"] = {
11 | // UK zip codes
12 | "regex": /^([A-PR-UWYZa-pr-uwyz]([0-9]{1,2}|([A-HK-Ya-hk-y][0-9]|[A-HK-Ya-hk-y][0-9]([0-9]|[ABEHMNPRV-Yabehmnprv-y]))|[0-9][A-HJKS-UWa-hjks-uw])\ {0,1}[0-9][ABD-HJLNP-UW-Zabd-hjlnp-uw-z]{2}|([Gg][Ii][Rr]\ 0[Aa][Aa])|([Ss][Aa][Nn]\ {0,1}[Tt][Aa]1)|([Bb][Ff][Pp][Oo]\ {0,1}([Cc]\/[Oo]\ )?[0-9]{1,4})|(([Aa][Ss][Cc][Nn]|[Bb][Bb][Nn][Dd]|[BFSbfs][Ii][Qq][Qq]|[Pp][Cc][Rr][Nn]|[Ss][Tt][Hh][Ll]|[Tt][Dd][Cc][Uu]|[Tt][Kk][Cc][Aa])\ {0,1}1[Zz][Zz]))$/,
13 | "alertText": "* Invalid postcode"
14 | };
15 | $.validationEngineLanguage.allRules["postcodeNL"] = {
16 | // NL zip codes | Accepts 1234AA format zipcodes
17 | "regex": /^\d{4}[a-zA-Z]{2}?$/,
18 | "alertText": "* Ongeldige postcode, formaat moet 1234AA zijn"
19 | };
20 | $.validationEngineLanguage.allRules["postcodeUS"] = {
21 | // US zip codes | Accepts 12345 and 12345-1234 format zipcodes
22 | "regex": /^\d{5}(-\d{4})?$/,
23 | "alertText": "* Invalid zipcode"
24 | };
25 | $.validationEngineLanguage.allRules["postcodeDE"] = {
26 | // Germany zip codes | Accepts 12345 format zipcodes
27 | "regex": /^\d{5}?$/,
28 | "alertText": "* Invalid zipcode"
29 | };
30 | $.validationEngineLanguage.allRules["postcodeAT"] = {
31 | // Austrian zip codes | Accepts 1234 format zipcodes
32 | "regex": /^\d{4}?$/,
33 | "alertText": "* Invalid zipcode"
34 | };
35 | $.validationEngineLanguage.allRules["postcodePL"] = {
36 | // Polish zip codes | Accepts 80-000 format zipcodes
37 | "regex": /^\d{2}-\d{3}$/,
38 | "alertText": "* Niepoprawny kod pocztowy, poprawny format to: 12-345"
39 | };
40 | $.validationEngineLanguage.allRules["postcodeJP"] = {
41 | // JP zip codes | Accepts 123 and 123-1234 format zipcodes
42 | "regex": /^\d{3}(-\d{4})?$/,
43 | "alertText": "* 郵便番号が正しくありません"
44 | };
45 | $.validationEngineLanguage.allRules["postcodeBR"] = {
46 | // BR zip codes | Accepts 12345-123 format zipcodes
47 | "regex": /^\d{5}(-\d{3})?$/,
48 | "alertText": "* CEP inválido"
49 | };
50 | $.validationEngineLanguage.allRules["onlyLetNumSpec"] = {
51 | // Good for database fields
52 | "regex": /^[0-9a-zA-Z_-]+$/,
53 | "alertText": "* Only Letters, Numbers, hyphen(-) and underscore(_) allowed"
54 | };
55 | // # more validations may be added after this point
56 | }
57 | })(jQuery);
58 |
--------------------------------------------------------------------------------
/css/validationEngine.jquery.css:
--------------------------------------------------------------------------------
1 |
2 |
3 | /* Z-INDEX */
4 | .formError { z-index: 990; }
5 | .formError .formErrorContent { z-index: 991; }
6 | .formError .formErrorArrow { z-index: 996; }
7 |
8 | .ui-dialog .formError { z-index: 5000; }
9 | .ui-dialog .formError .formErrorContent { z-index: 5001; }
10 | .ui-dialog .formError .formErrorArrow { z-index: 5006; }
11 |
12 |
13 |
14 |
15 | .inputContainer {
16 | position: relative;
17 | float: left;
18 | }
19 |
20 | .formError {
21 | position: absolute;
22 | top: 300px;
23 | left: 300px;
24 | display: block;
25 | cursor: pointer;
26 | text-align: left;
27 | }
28 |
29 | .formError.inline {
30 | position: relative;
31 | top: 0;
32 | left: 0;
33 | display: inline-block;
34 | }
35 |
36 | .ajaxSubmit {
37 | padding: 20px;
38 | background: #55ea55;
39 | border: 1px solid #999;
40 | display: none;
41 | }
42 |
43 | .formError .formErrorContent {
44 | width: 100%;
45 | background: #ee0101;
46 | position:relative;
47 | color: #fff;
48 | min-width: 120px;
49 | font-size: 11px;
50 | border: 2px solid #ddd;
51 | box-shadow: 0 0 6px #000;
52 | -moz-box-shadow: 0 0 6px #000;
53 | -webkit-box-shadow: 0 0 6px #000;
54 | -o-box-shadow: 0 0 6px #000;
55 | padding: 4px 10px 4px 10px;
56 | border-radius: 6px;
57 | -moz-border-radius: 6px;
58 | -webkit-border-radius: 6px;
59 | -o-border-radius: 6px;
60 | }
61 |
62 | .formError.inline .formErrorContent {
63 | box-shadow: none;
64 | -moz-box-shadow: none;
65 | -webkit-box-shadow: none;
66 | -o-box-shadow: none;
67 | border: none;
68 | border-radius: 0;
69 | -moz-border-radius: 0;
70 | -webkit-border-radius: 0;
71 | -o-border-radius: 0;
72 | }
73 |
74 | .greenPopup .formErrorContent {
75 | background: #33be40;
76 | }
77 |
78 | .blackPopup .formErrorContent {
79 | background: #393939;
80 | color: #FFF;
81 | }
82 |
83 | .formError .formErrorArrow {
84 | width: 15px;
85 | margin: -2px 0 0 13px;
86 | position:relative;
87 | }
88 | body[dir='rtl'] .formError .formErrorArrow,
89 | body.rtl .formError .formErrorArrow {
90 | margin: -2px 13px 0 0;
91 | }
92 |
93 | .formError .formErrorArrowBottom {
94 | box-shadow: none;
95 | -moz-box-shadow: none;
96 | -webkit-box-shadow: none;
97 | -o-box-shadow: none;
98 | margin: 0px 0 0 12px;
99 | top:2px;
100 | }
101 |
102 | .formError .formErrorArrow div {
103 | border-left: 2px solid #ddd;
104 | border-right: 2px solid #ddd;
105 | box-shadow: 0 2px 3px #444;
106 | -moz-box-shadow: 0 2px 3px #444;
107 | -webkit-box-shadow: 0 2px 3px #444;
108 | -o-box-shadow: 0 2px 3px #444;
109 | font-size: 0px;
110 | height: 1px;
111 | background: #ee0101;
112 | margin: 0 auto;
113 | line-height: 0;
114 | font-size: 0;
115 | display: block;
116 | }
117 |
118 | .formError .formErrorArrowBottom div {
119 | box-shadow: none;
120 | -moz-box-shadow: none;
121 | -webkit-box-shadow: none;
122 | -o-box-shadow: none;
123 | }
124 |
125 | .greenPopup .formErrorArrow div {
126 | background: #33be40;
127 | }
128 |
129 | .blackPopup .formErrorArrow div {
130 | background: #393939;
131 | color: #FFF;
132 | }
133 |
134 | .formError .formErrorArrow .line10 {
135 | width: 13px;
136 | border: none;
137 | }
138 |
139 | .formError .formErrorArrow .line9 {
140 | width: 11px;
141 | border: none;
142 | }
143 |
144 | .formError .formErrorArrow .line8 {
145 | width: 11px;
146 | }
147 |
148 | .formError .formErrorArrow .line7 {
149 | width: 9px;
150 | }
151 |
152 | .formError .formErrorArrow .line6 {
153 | width: 7px;
154 | }
155 |
156 | .formError .formErrorArrow .line5 {
157 | width: 5px;
158 | }
159 |
160 | .formError .formErrorArrow .line4 {
161 | width: 3px;
162 | }
163 |
164 | .formError .formErrorArrow .line3 {
165 | width: 1px;
166 | border-left: 2px solid #ddd;
167 | border-right: 2px solid #ddd;
168 | border-bottom: 0 solid #ddd;
169 | }
170 |
171 | .formError .formErrorArrow .line2 {
172 | width: 3px;
173 | border: none;
174 | background: #ddd;
175 | }
176 |
177 | .formError .formErrorArrow .line1 {
178 | width: 1px;
179 | border: none;
180 | background: #ddd;
181 | }
182 |
--------------------------------------------------------------------------------
/less/validationEngine.jquery.less:
--------------------------------------------------------------------------------
1 | @popupBg: #00579a;
2 | @popupTextColor: #FFF;
3 | @borderColor: #FFF;
4 | @borderWidth: 1px;
5 | @popupFontSize: 12px;
6 | @popupRadius: 0;
7 | @popupShadowWidth: 2px;
8 | @popupShadowColor: #333;
9 |
10 | /* Z-INDEX */
11 | .formError { z-index: 990; }
12 | .formError .formErrorContent { z-index: 991; }
13 | .formError .formErrorArrow { z-index: 996; }
14 |
15 | .ui-dialog .formError { z-index: 5000; }
16 | .ui-dialog .formError .formErrorContent { z-index: 5001; }
17 | .ui-dialog .formError .formErrorArrow { z-index: 5006; }
18 |
19 |
20 |
21 |
22 | .inputContainer {
23 | position: relative;
24 | float: left;
25 | }
26 |
27 | .formError {
28 | position: absolute;
29 | top: 300px;
30 | left: 300px;
31 | display: block;
32 | cursor: pointer;
33 | text-align: left;
34 | }
35 |
36 | .formError.inline {
37 | position: relative;
38 | top: 0;
39 | left: 0;
40 | display: inline-block;
41 | }
42 |
43 | .ajaxSubmit {
44 | padding: 20px;
45 | background: #55ea55;
46 | border: 1px solid #999;
47 | display: none;
48 | }
49 |
50 | .formError .formErrorContent {
51 | width: 100%;
52 | background: @popupBg;
53 | position:relative;
54 | color: @popupTextColor;
55 | min-width: 120px;
56 | font-size: @popupFontSize;
57 | border: @borderWidth solid @borderColor;
58 | box-shadow: 0 0 @popupShadowWidth @popupShadowColor;
59 | -moz-box-shadow: 0 0 @popupShadowWidth @popupShadowColor;
60 | -webkit-box-shadow: 0 0 @popupShadowWidth @popupShadowColor;
61 | -o-box-shadow: 0 0 @popupShadowWidth @popupShadowColor;
62 | padding: 4px 10px 4px 10px;
63 | border-radius: @popupRadius;
64 | -moz-border-radius: @popupRadius;
65 | -webkit-border-radius: @popupRadius;
66 | -o-border-radius: @popupRadius;
67 | }
68 |
69 | .formError.inline .formErrorContent {
70 | box-shadow: none;
71 | -moz-box-shadow: none;
72 | -webkit-box-shadow: none;
73 | -o-box-shadow: none;
74 | border: none;
75 | border-radius: 0;
76 | -moz-border-radius: 0;
77 | -webkit-border-radius: 0;
78 | -o-border-radius: 0;
79 | }
80 |
81 | .greenPopup .formErrorContent {
82 | background: #33be40;
83 | }
84 |
85 | .blackPopup .formErrorContent {
86 | background: #393939;
87 | color: #FFF;
88 | }
89 |
90 | .formError .formErrorArrow {
91 | width: 15px;
92 | margin: -2px 0 0 13px;
93 | position:relative;
94 | }
95 | body[dir='rtl'] .formError .formErrorArrow,
96 | body.rtl .formError .formErrorArrow {
97 | margin: -2px 13px 0 0;
98 | }
99 |
100 | .formError .formErrorArrowBottom {
101 | box-shadow: none;
102 | -moz-box-shadow: none;
103 | -webkit-box-shadow: none;
104 | -o-box-shadow: none;
105 | margin: 0px 0 0 12px;
106 | top:2px;
107 | }
108 |
109 | .formError .formErrorArrow div {
110 | border-left: @borderWidth solid @borderColor;
111 | border-right: @borderWidth solid @borderColor;
112 | box-shadow: 0 ceil(@popupShadowWidth/3) ceil(@popupShadowWidth/2) lighten(@popupShadowColor,10%);
113 | -moz-box-shadow: 0 ceil(@popupShadowWidth/3) ceil(@popupShadowWidth/2) lighten(@popupShadowColor,10%);
114 | -webkit-box-shadow: 0 ceil(@popupShadowWidth/3) ceil(@popupShadowWidth/2) lighten(@popupShadowColor,10%);
115 | -o-box-shadow: 0 ceil(@popupShadowWidth/3) ceil(@popupShadowWidth/2) lighten(@popupShadowColor,10%);
116 | font-size: 0px;
117 | height: 1px;
118 | background: @popupBg;
119 | margin: 0 auto;
120 | line-height: 0;
121 | font-size: 0;
122 | display: block;
123 | }
124 |
125 | .formError .formErrorArrowBottom div {
126 | box-shadow: none;
127 | -moz-box-shadow: none;
128 | -webkit-box-shadow: none;
129 | -o-box-shadow: none;
130 | }
131 |
132 | .greenPopup .formErrorArrow div {
133 | background: #33be40;
134 | }
135 |
136 | .blackPopup .formErrorArrow div {
137 | background: #393939;
138 | color: #FFF;
139 | }
140 |
141 | .formError .formErrorArrow .line10 {
142 | width: 13px;
143 | border: none;
144 | }
145 |
146 | .formError .formErrorArrow .line9 {
147 | width: 11px;
148 | border: none;
149 | }
150 |
151 | .formError .formErrorArrow .line8 {
152 | width: 11px;
153 | }
154 |
155 | .formError .formErrorArrow .line7 {
156 | width: 9px;
157 | }
158 |
159 | .formError .formErrorArrow .line6 {
160 | width: 7px;
161 | }
162 |
163 | .formError .formErrorArrow .line5 {
164 | width: 5px;
165 | }
166 |
167 | .formError .formErrorArrow .line4 {
168 | width: 3px;
169 | }
170 |
171 | .formError .formErrorArrow .line3 {
172 | width: ceil(@borderWidth/2);
173 | border-left: @borderWidth solid @borderColor;
174 | border-right: @borderWidth solid @borderColor;
175 | border-bottom: 0 solid @borderColor;
176 | }
177 |
178 | .formError .formErrorArrow .line2 {
179 | width: 3px;
180 | border: none;
181 | background: @borderColor;
182 | }
183 |
184 | .formError .formErrorArrow .line1 {
185 | width: 1px;
186 | border: none;
187 | background: @borderColor;
188 | }
189 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-uk:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Необхідно заповнити",
10 | "alertTextCheckboxMultiple": "* Ви повинні вибрати варіант",
11 | "alertTextCheckboxe": "* Необхідно відмітити"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Значення поля повинно бути test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Мінімум ",
22 | "alertText2": " символа(ів)"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Максимум ",
27 | "alertText2": " символа(ів)"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Ви повинні заповнити одне за наступних полів"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Мінімальне значення "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Максимальне значення "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Дата до "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Дата від "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Не можна вибирати стільки варіантів"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Будь ласка, оберіть ",
56 | "alertText2": " опцію(ії)"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Поля не співпадають"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Невірний номер кредитної карти"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Неправильний формат телефону"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74 | "alertText": "* Невірний формат email"
75 | },
76 | "integer": {
77 | "regex": /^[\-\+]?\d+$/,
78 | "alertText": "* Не ціле число"
79 | },
80 | "number": {
81 | // Number, including positive, negative, and floating decimal. credit: orefalo
82 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83 | "alertText": "* Невірне число з плаваючою точкою"
84 | },
85 | "date": {
86 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
87 | "alertText": "* Неправильна дата (повинно бути у форматі ДД.MM.РРРР)"
88 | },
89 | "ipv4": {
90 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
91 | "alertText": "* Неправильна IP-адреса"
92 | },
93 | "url": {
94 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
95 | "alertText": "* Невірний URL"
96 | },
97 | "onlyNumberSp": {
98 | "regex": /^[0-9\ ]+$/,
99 | "alertText": "* Тільки числа"
100 | },
101 | "onlyLetterSp": {
102 | "regex": /^[a-zA-Z\u0400-\u04FF\ \']+$/,
103 | "alertText": "* Тільки літери"
104 | },
105 | "onlyLetterNumber": {
106 | "regex": /^[0-9a-zA-Z\u0400-\u04FF]+$/,
107 | "alertText": "* Заборонені спеціальні символи"
108 | },
109 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
110 | "ajaxUserCall": {
111 | "url": "ajaxValidateFieldUser",
112 | // you may want to pass extra data on the ajax call
113 | "extraData": "name=eric",
114 | "alertText": "* Цей користувач уже зайнятий",
115 | "alertTextLoad": "* Перевірка, зачекайте..."
116 | },
117 | "ajaxNameCall": {
118 | // remote json service location
119 | "url": "ajaxValidateFieldName",
120 | // error
121 | "alertText": "* Це ім'я уже зайнято",
122 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
123 | "alertTextOk": "* Це ім'я доступне",
124 | // speaks by itself
125 | "alertTextLoad": "* Перевірка, зачекайте..."
126 | },
127 | "validate2fields": {
128 | "alertText": "* Будь ласка, введіть HELLO"
129 | }
130 | };
131 |
132 | }
133 | };
134 | $.validationEngineLanguage.newLang();
135 | })(jQuery);
136 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-fi.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Kenttä on pakollinen",
10 | "alertTextCheckboxMultiple": "* Yksi valikoima, kiitos",
11 | "alertTextCheckboxe": "* Tarkistusmerkki on pakollinen"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Vähintään ",
22 | "alertText2": " merkkiä sallittu"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Enintään ",
27 | "alertText2": " merkkiä sallittu"
28 | },
29 | "min": {
30 | "regex": "none",
31 | "alertText": "* Vähittäisluku on "
32 | },
33 | "max": {
34 | "regex": "none",
35 | "alertText": "* Enimmäisluku on "
36 | },
37 | "past": {
38 | "regex": "none",
39 | "alertText": "* Päivämäärä ennen "
40 | },
41 | "future": {
42 | "regex": "none",
43 | "alertText": "* Päivämäärä jälkeen "
44 | },
45 | "maxCheckbox": {
46 | "regex": "none",
47 | "alertText": "* Enintään ",
48 | "alertText2": " valikoimaa sallittu"
49 | },
50 | "minCheckbox": {
51 | "regex": "none",
52 | "alertText": "* Valitse ",
53 | "alertText2": " valikoima(a)"
54 | },
55 | "equals": {
56 | "regex": "none",
57 | "alertText": "* Kentät eivät täsmää"
58 | },
59 | "creditCard": {
60 | "regex": "none",
61 | "alertText": "* Luottokortin numero ei kelpaa"
62 | },
63 | "phone": {
64 | // credit: jquery.h5validate.js / orefalo
65 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
66 | "alertText": "* Viallinen puhelinnumero"
67 | },
68 | "email": {
69 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
70 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
71 | "alertText": "* Viallinen sähköpostiosoite"
72 | },
73 | "integer": {
74 | "regex": /^[\-\+]?\d+$/,
75 | "alertText": "* Sopimaton numero"
76 | },
77 | "number": {
78 | // Number, including positive, negative, and floating decimal. credit: orefalo
79 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
80 | "alertText": "* Viallinen luku"
81 | },
82 | "date": {
83 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
84 | "alertText": "* Viallinen päivämäärä. Päivämäärän täytyy olla VVVV-KK-PP muodossa"
85 | },
86 | "ipv4": {
87 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
88 | "alertText": "* Viallinen IP-osoite"
89 | },
90 | "ip": {
91 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
92 | "alertText": "* Viallinen IP-osoite"
93 | },
94 | "url": {
95 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
96 | "alertText": "* Viallinen URL"
97 | },
98 | "onlyNumberSp": {
99 | "regex": /^[0-9\ ]+$/,
100 | "alertText": "* Ainostaan numeroin"
101 | },
102 | "onlyLetterSp": {
103 | "regex": /^[a-zA-Z\ \']+$/,
104 | "alertText": "* Ainoastaan kirjaimin"
105 | },
106 | "onlyLetterAccentSp":{
107 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
108 | "alertText": "* Ainoastaan kirjaimin"
109 | },
110 | "onlyLetterNumber": {
111 | "regex": /^[0-9a-zA-Z]+$/,
112 | "alertText": "* Erikoismerkit eivät ole sallittuja"
113 | }
114 | };
115 |
116 | }
117 | };
118 | $.validationEngineLanguage.newLang();
119 | })(jQuery);
120 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-lt.js:
--------------------------------------------------------------------------------
1 | (function($) {
2 | $.fn.validationEngineLanguage = function() {
3 | };
4 | $.validationEngineLanguage = {
5 | newLang : function() {
6 | $.validationEngineLanguage.allRules = {
7 |
8 | // global messages
9 | "required" : { // Add your regex rules here, you can take
10 | // telephone as an example
11 | "regex" : "none",
12 | "alertText" : "* Privalomas laukas",
13 | "alertTextCheckboxMultiple" : "* Pasirinkite reikšmę",
14 | "alertTextCheckboxe" : "* Pasirinkite reikšmę",
15 | "alertTextDateRange" : "* Pasirinkite reikšmę"
16 | },
17 | "requiredInFunction" : {
18 | "func" : function(field, rules, i, options) {
19 | return (field.val() == "test") ? true : false;
20 | },
21 | "alertText" : "* Laukas turi būti lygus test laukui"
22 | },
23 | "dateRange" : {
24 | "regex" : "none",
25 | "alertText" : "* Neteisinga reikšmė ",
26 | "alertText2" : "Datos intervalas"
27 | },
28 | "dateTimeRange" : {
29 | "regex" : "none",
30 | "alertText" : "* Neteisinga reikšmė ",
31 | "alertText2" : "Datos ir laiko intervalas"
32 | },
33 | "minSize" : {
34 | "regex" : "none",
35 | "alertText" : "* Ne mažiau ",
36 | "alertText2" : " simbolių"
37 | },
38 | "maxSize" : {
39 | "regex" : "none",
40 | "alertText" : "* Ne daugiau ",
41 | "alertText2" : " simbolių"
42 | },
43 | "groupRequired" : {
44 | "regex" : "none",
45 | "alertText" : "* Užpildykite šiuos laukus "
46 | },
47 | "min" : {
48 | "regex" : "none",
49 | "alertText" : "* Mažiausia galima reikšmė: "
50 | },
51 | "max" : {
52 | "regex" : "none",
53 | "alertText" : "* Didžiausia galima reikšmė: "
54 | },
55 | "past" : {
56 | "regex" : "none",
57 | "alertText" : "* Data iki "
58 | },
59 | "future" : {
60 | "regex" : "none",
61 | "alertText" : "* Data po "
62 | },
63 | "maxCheckbox" : {
64 | "regex" : "none",
65 | "alertText" : "* Daugiausiai ",
66 | "alertText2" : " leidžiama pasirinkti"
67 | },
68 | "minCheckbox" : {
69 | "regex" : "none",
70 | "alertText" : "* Pasirinkite ",
71 | "alertText2" : " laukus"
72 | },
73 | "equals" : {
74 | "regex" : "none",
75 | "alertText" : "* Laukai nesutampa"
76 | },
77 | "creditCard" : {
78 | "regex" : "none",
79 | "alertText" : "* Neteisingi kreditinės kortelės duomenys"
80 | },
81 | "phone" : {
82 | // credit: jquery.h5validate.js / orefalo
83 | "regex" : /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
84 | "alertText" : "* Invalid phone number"
85 | },
86 | "email" : {
87 | // HTML5 compatible email regex (
88 | // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#
89 | // e-mail-state-%28type=email%29 )
90 | "regex" : /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
91 | "alertText" : "* Neteisingas el. pašto adresas"
92 | },
93 | "integer" : {
94 | "regex" : /^[\-\+]?\d+$/,
95 | "alertText" : "* Neteisingai įvestas skaičius"
96 | },
97 | "number" : {
98 | // Number, including positive, negative, and floating
99 | // decimal. credit: orefalo
100 | "regex" : /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
101 | "alertText" : "* Neteisingai įvestas skaičius"
102 | },
103 | "date" : {
104 | // Check if date is valid by leap year
105 | "func" : function(field) {
106 | var pattern = new RegExp(
107 | /^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
108 | var match = pattern.exec(field.val());
109 | if (match == null)
110 | return false;
111 |
112 | var year = match[1];
113 | var month = match[2] * 1;
114 | var day = match[3] * 1;
115 | var date = new Date(year, month - 1, day); // because
116 | // months
117 | // starts
118 | // from 0.
119 |
120 | return (date.getFullYear() == year
121 | && date.getMonth() == (month - 1) && date
122 | .getDate() == day);
123 | },
124 | "alertText" : "* Datos formatas: YYYY-MM-DD"
125 | },
126 | "ipv4" : {
127 | "regex" : /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
128 | "alertText" : "* Neteisingas IP adresas"
129 | },
130 | "ip" : {
131 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
132 | "alertText" : "* Neteisingas IP adresas"
133 | },
134 | "url" : {
135 | "regex" : /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
136 | "alertText" : "* Neteisinga nuoroda"
137 | },
138 | "onlyNumberSp" : {
139 | "regex" : /^[0-9\ ]+$/,
140 | "alertText" : "* Tik skaičiai"
141 | },
142 | "onlyLetterSp" : {
143 | "regex" : /^[a-zA-Z\ \']+$/,
144 | "alertText" : "* Tik raidės"
145 | },
146 | "onlyLetterAccentSp":{
147 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
148 | "alertText" : "* Tik raidės"
149 | },
150 | "onlyLetterNumber" : {
151 | "regex" : /^[0-9a-zA-Z]+$/,
152 | "alertText" : "* Specialūs simboliai neleidžiami"
153 | },
154 | // tls warning:homegrown not fielded
155 | "dateFormat" : {
156 | "regex" : /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
157 | "alertText" : "* Neteisinga data"
158 | },
159 | // tls warning:homegrown not fielded
160 | "dateTimeFormat" : {
161 | "regex" : /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
162 | "alertText" : "* Neteisingai įvesta data ar laikas",
163 | "alertText2" : "Teisingas formatas: ",
164 | "alertText3" : "mm/dd/yyyy hh:mm:ss AM|PM or ",
165 | "alertText4" : "yyyy-mm-dd hh:mm:ss AM|PM"
166 | }
167 | };
168 |
169 | }
170 | };
171 |
172 | $.validationEngineLanguage.newLang();
173 |
174 | })(jQuery);
175 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-he.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* שדה זה הוא חובה",
10 | "alertTextCheckboxMultiple": "* אנא בחר אפשרות",
11 | "alertTextCheckboxe": "* תיבת הבחירה היא חובה",
12 | "alertTextDateRange": "* שני תאריכי הטווח הם חובה"
13 | },
14 | "requiredInFunction": {
15 | "func": function(field, rules, i, options){
16 | return (field.val() == "test") ? true : false;
17 | },
18 | "alertText": "* שדה חייב להיות שווה לבדיקה"
19 | },
20 | "dateRange": {
21 | "regex": "none",
22 | "alertText": "* טווח תאריכים ",
23 | "alertText2": "לא תקין"
24 | },
25 | "dateTimeRange": {
26 | "regex": "none",
27 | "alertText": "* טווח תאריך-זמן ",
28 | "alertText2": "לא תקין"
29 | },
30 | "minSize": {
31 | "regex": "none",
32 | "alertText": "* דרושים לפחות ",
33 | "alertText2": " תוים"
34 | },
35 | "maxSize": {
36 | "regex": "none",
37 | "alertText": "* מותרים לכל היותר ",
38 | "alertText2": " תוים"
39 | },
40 | "groupRequired": {
41 | "regex": "none",
42 | "alertText": "* חובה למלא אחד מהשדות"
43 | },
44 | "min": {
45 | "regex": "none",
46 | "alertText": "* הערך המינימלי הוא "
47 | },
48 | "max": {
49 | "regex": "none",
50 | "alertText": "* הערך המקסימלי הוא "
51 | },
52 | "past": {
53 | "regex": "none",
54 | "alertText": "* תאריך קודם ל "
55 | },
56 | "future": {
57 | "regex": "none",
58 | "alertText": "* תאריך מאוחר מ "
59 | },
60 | "maxCheckbox": {
61 | "regex": "none",
62 | "alertText": "* מותרות לכל היותר ",
63 | "alertText2": " אופציות"
64 | },
65 | "minCheckbox": {
66 | "regex": "none",
67 | "alertText": "* אנא בחר ",
68 | "alertText2": " אופציות"
69 | },
70 | "equals": {
71 | "regex": "none",
72 | "alertText": "* השדות לא תואמים"
73 | },
74 | "creditCard": {
75 | "regex": "none",
76 | "alertText": "* מספר כרטיס אשראי לא תקין"
77 | },
78 | "phone": {
79 | // credit: jquery.h5validate.js / orefalo
80 | "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/,
81 | "alertText": "* מספר טלפון לא תקין"
82 | },
83 | "email": {
84 | // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 )
85 | "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
86 | "alertText": "* תיבת דואר אלקטרוני לא תקינה"
87 | },
88 | "integer": {
89 | "regex": /^[\-\+]?\d+$/,
90 | "alertText": "* מספר שלם לא תקין"
91 | },
92 | "number": {
93 | // Number, including positive, negative, and floating decimal. credit: orefalo
94 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
95 | "alertText": "* מספר בעל נקודה עשרונית לא תקין"
96 | },
97 | "date": {
98 | // Check if date is valid by leap year
99 | "func": function (field) {
100 | var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
101 | var match = pattern.exec(field.val());
102 | if (match == null)
103 | return false;
104 |
105 | var year = match[1];
106 | var month = match[2]*1;
107 | var day = match[3]*1;
108 | var date = new Date(year, month - 1, day); // because months starts from 0.
109 |
110 | return (date.getFullYear() == year && date.getMonth() == (month - 1) && date.getDate() == day);
111 | },
112 | "alertText": "* תאריך לא תקין, חייב ליות בתבנית YYYY-MM-DD"
113 | },
114 | "ipv4": {
115 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
116 | "alertText": "* כתובת IP לא תקינה"
117 | },
118 | "ip": {
119 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
120 | "alertText": "* כתובת IP לא תקינה"
121 | },
122 | "url": {
123 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
124 | "alertText": "* קישור לא תקין"
125 | },
126 | "onlyNumberSp": {
127 | "regex": /^[0-9\ ]+$/,
128 | "alertText": "* מספרים בלבד"
129 | },
130 | "onlyLetterSp": {
131 | "regex": /^[a-zA-Z\ \']+$/,
132 | "alertText": "* אותיות באנגלית בלבד"
133 | },
134 | "onlyLetterAccentSp":{
135 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
136 | "alertText": "* אותיות באנגלית בלבד"
137 | },
138 | "onlyLetterNumber": {
139 | "regex": /^[0-9a-zA-Z]+$/,
140 | "alertText": "* אסורים תוים מיוחדים"
141 | }
142 | };
143 |
144 | }
145 | };
146 |
147 | $.validationEngineLanguage.newLang();
148 |
149 | })(jQuery);
150 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-fr.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": {
8 | "regex": "none",
9 | "alertText": "* Ce champ est requis",
10 | "alertTextCheckboxMultiple": "* Choisir une option",
11 | "alertTextCheckboxe": "* Cette option est requise"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Minimum ",
22 | "alertText2": " caractères requis"
23 | },
24 | "groupRequired": {
25 | "regex": "none",
26 | "alertText": "* Vous devez remplir un des champs suivant"
27 | },
28 | "maxSize": {
29 | "regex": "none",
30 | "alertText": "* Maximum ",
31 | "alertText2": " caractères requis"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Valeur minimum requise "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Valeur maximum requise "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Date antérieure au "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Date postérieure au "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Nombre max de choix excédé"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Veuillez choisir ",
56 | "alertText2": " options"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Votre champ n'est pas identique"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Numéro de carte bancaire valide"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Numéro de téléphone invalide"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74 | "alertText": "* Adresse email invalide"
75 | },
76 | "integer": {
77 | "regex": /^[\-\+]?\d+$/,
78 | "alertText": "* Nombre entier invalide"
79 | },
80 | "number": {
81 | // Number, including positive, negative, and floating decimal. credit: orefalo
82 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83 | "alertText": "* Nombre flottant invalide"
84 | },
85 | "date": {
86 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
87 | "alertText": "* Date invalide, format YYYY-MM-DD requis"
88 | },
89 | "ipv4": {
90 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
91 | "alertText": "* Adresse IP invalide"
92 | },
93 | "ip": {
94 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
95 | "alertText": "* Adresse IP invalide"
96 | },
97 | "url": {
98 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
99 | "alertText": "* URL invalide"
100 | },
101 | "onlyNumberSp": {
102 | "regex": /^[0-9\ ]+$/,
103 | "alertText": "* Seuls les chiffres sont acceptés"
104 | },
105 | "onlyLetterSp": {
106 | "regex": /^[a-zA-Z\u0152\u0153\u0178\u00C0-\u00D6\u00D9-\u00F6\u00F9-\u00FD\u00FF\ \']+$/,
107 | "alertText": "* Seules les lettres sont acceptées"
108 | },
109 | "onlyLetterNumber": {
110 | "regex": /^[0-9a-zA-Z\u0152\u0153\u0178\u00C0-\u00D6\u00D9-\u00F6\u00F9-\u00FD\u00FF]+$/,
111 | "alertText": "* Aucun caractère spécial n'est accepté"
112 | },
113 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
114 | "ajaxUserCall": {
115 | "url": "ajaxValidateFieldUser",
116 | "extraData": "name=eric",
117 | "alertTextLoad": "* Chargement, veuillez attendre",
118 | "alertText": "* Ce nom est déjà pris"
119 | },
120 | "ajaxNameCall": {
121 | "url": "ajaxValidateFieldName",
122 | "alertText": "* Ce nom est déjà pris",
123 | "alertTextOk": "*Ce nom est disponible",
124 | "alertTextLoad": "* Chargement, veuillez attendre"
125 | },
126 | "validate2fields": {
127 | "alertText": "Veuillez taper le mot HELLO"
128 | }
129 | };
130 | }
131 | };
132 | $.validationEngineLanguage.newLang();
133 | })(jQuery);
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-et.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* See väli on nõutud",
10 | "alertTextCheckboxMultiple": "* Palun valige üks valik",
11 | "alertTextCheckboxe": "* Linnuke on nõutud",
12 | "alertTextDateRange": "* Mõlemad kuupäeva valikud on nõutud"
13 | },
14 | "requiredInFunction": {
15 | "func": function(field, rules, i, options){
16 | return (field.val() == "test") ? true : false;
17 | },
18 | "alertText": "* Field must equal test"
19 | },
20 | "dateRange": {
21 | "regex": "none",
22 | "alertText": "* Vigane ",
23 | "alertText2": "Kuupäev valik"
24 | },
25 | "dateTimeRange": {
26 | "regex": "none",
27 | "alertText": "* Vigane ",
28 | "alertText2": "Aja valik"
29 | },
30 | "minSize": {
31 | "regex": "none",
32 | "alertText": "* Minimaalselt ",
33 | "alertText2": " märki lubatud"
34 | },
35 | "maxSize": {
36 | "regex": "none",
37 | "alertText": "* Maksimaalselt ",
38 | "alertText2": " märki lubatud"
39 | },
40 | "groupRequired": {
41 | "regex": "none",
42 | "alertText": "* Palun täidke üks järgnevatest väljadest"
43 | },
44 | "min": {
45 | "regex": "none",
46 | "alertText": "* Minimaalne väärtus on "
47 | },
48 | "max": {
49 | "regex": "none",
50 | "alertText": "* Maksimaalne väärtus on "
51 | },
52 | "past": {
53 | "regex": "none",
54 | "alertText": "* Kuupäev enne "
55 | },
56 | "future": {
57 | "regex": "none",
58 | "alertText": "* Kuupäev peale "
59 | },
60 | "maxCheckbox": {
61 | "regex": "none",
62 | "alertText": "* Maksimaalselt ",
63 | "alertText2": " valikut lubatud"
64 | },
65 | "minCheckbox": {
66 | "regex": "none",
67 | "alertText": "* Palun vali ",
68 | "alertText2": " valik(ut)"
69 | },
70 | "equals": {
71 | "regex": "none",
72 | "alertText": "* Väljad ei kattu"
73 | },
74 | "creditCard": {
75 | "regex": "none",
76 | "alertText": "* Kehtetu krediitkaardi number"
77 | },
78 | "phone": {
79 | // credit: jquery.h5validate.js / orefalo
80 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
81 | "alertText": "* Vigane telefoni number"
82 | },
83 | "email": {
84 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
85 | "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
86 | "alertText": "* Vigane e-posti aadress"
87 | },
88 | "integer": {
89 | "regex": /^[\-\+]?\d+$/,
90 | "alertText": "* Mittesobiv number"
91 | },
92 | "number": {
93 | // Number, including positive, negative, and floating decimal. credit: orefalo
94 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
95 | "alertText": "* Vigane väärtus"
96 | },
97 | "date": {
98 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
99 | "alertText": "* Vigane kuupäev. Peab olema AAAA-KK-PP formaadis"
100 | },
101 | "ipv4": {
102 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
103 | "alertText": "* Vigane IP aadress"
104 | },
105 | "ip": {
106 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
107 | "alertText": "* Vigane IP aadress"
108 | },
109 | "url": {
110 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
111 | "alertText": "* Vigane URL"
112 | },
113 | "onlyNumberSp": {
114 | "regex": /^[0-9\ ]+$/,
115 | "alertText": "* Numbrid ainult"
116 | },
117 | "onlyLetterSp": {
118 | "regex": /^[a-zA-Z\ \']+$/,
119 | "alertText": "* Tähed ainult"
120 | },
121 | "onlyLetterAccentSp":{
122 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
123 | "alertText": "* Tähed ainult"
124 | },
125 | "onlyLetterNumber": {
126 | "regex": /^[0-9a-zA-Z]+$/,
127 | "alertText": "* Eri tähemärke ei lubata"
128 | },
129 | //tls warning:homegrown not fielded
130 | "dateFormat":{
131 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
132 | "alertText": "* Vigane kuupäev"
133 | },
134 | //tls warning:homegrown not fielded
135 | "dateTimeFormat": {
136 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
137 | "alertText": "* Vigane kuupäev või kuupäeva formaat",
138 | "alertText2": "Eeldatud formaat: ",
139 | "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM või ",
140 | "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
141 | }
142 | };
143 |
144 | }
145 | };
146 | $.validationEngineLanguage.newLang();
147 | })(jQuery);
148 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-de.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Dieses Feld ist ein Pflichtfeld",
10 | "alertTextCheckboxMultiple": "* Bitte wählen Sie eine Option",
11 | "alertTextCheckboxe": "* Dieses Feld ist ein Pflichtfeld"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Mindestens ",
22 | "alertText2": " Zeichen benötigt"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Maximal ",
27 | "alertText2": " Zeichen erlaubt"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Mindestwert ist "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Maximalwert ist "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Datum vor "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Datum nach "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Maximale Anzahl Markierungen überschritten"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Bitte wählen Sie ",
56 | "alertText2": " Optionen"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Felder stimmen nicht überein"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Ungültige Kreditkartennummer"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Ungültige Telefonnummer"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74 | "alertText": "* Ungültige E-Mail-Adresse"
75 | },
76 | "integer": {
77 | "regex": /^[\-\+]?\d+$/,
78 | "alertText": "* Keine gültige Ganzzahl"
79 | },
80 | "number": {
81 | // Number, including positive, negative, and floating decimal. credit: orefalo
82 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83 | "alertText": "* Keine gültige Fließkommazahl"
84 | },
85 | "date": {
86 | // Date in ISO format. Credit: bassistance
87 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
88 | "alertText": "* Ungültiges Datumsformat, erwartet wird das Format JJJJ-MM-TT"
89 | },
90 | "ipv4": {
91 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
92 | "alertText": "* Ungültige IP-Adresse"
93 | },
94 | "ip": {
95 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
96 | "alertText": "* Ungültige IP-Adresse"
97 | },
98 | "url": {
99 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
100 | "alertText": "* Ungültige URL"
101 | },
102 | "onlyLetterSp": {
103 | "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
104 | "alertText": "* Nur Buchstaben erlaubt"
105 | },
106 | "onlyLetterAccentSp":{
107 | "regex": /^[a-zß\u00C0-\u017F\ ]+$/i,
108 | "alertText": "* Nur Buchstaben erlaubt"
109 | },
110 | "onlyLetterNumber": {
111 | "regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
112 | "alertText": "* Keine Sonderzeichen erlaubt"
113 | },
114 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
115 | "ajaxUserCall": {
116 | "url": "ajaxValidateFieldUser",
117 | // you may want to pass extra data on the ajax call
118 | "extraData": "name=eric",
119 | "alertText": "* Dieser Benutzer ist bereits vergeben",
120 | "alertTextLoad": "* Überprüfe Angaben, bitte warten"
121 | },
122 | "ajaxNameCall": {
123 | // remote json service location
124 | "url": "ajaxValidateFieldName",
125 | // error
126 | "alertText": "* Dieser Name ist bereits vergeben",
127 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
128 | "alertTextOk": "* Dieser Name ist verfügbar",
129 | // speaks by itself
130 | "alertTextLoad": "* Überprüfe Angaben, bitte warten"
131 | },
132 | "validate2fields": {
133 | "alertText": "* Bitte HELLO eingeben"
134 | }
135 | };
136 |
137 | }
138 | };
139 | $.validationEngineLanguage.newLang();
140 | })(jQuery);
141 |
142 |
143 |
144 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-ru.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Необходимо заполнить",
10 | "alertTextCheckboxMultiple": "* Вы должны выбрать вариант",
11 | "alertTextCheckboxe": "* Необходимо отметить"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Значением поля должно быть test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Минимум ",
22 | "alertText2": " символа(ов)"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Максимум ",
27 | "alertText2": " символа(ов)"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Вы должны заполнить одно из следующих полей"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Минимальное значение "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Максимальное значение "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Дата до "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Дата от "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Нельзя выбрать столько вариантов"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Пожалуйста, выберите ",
56 | "alertText2": " опцию(ии)"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Поля не совпадают"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Неверный номер кредитной карты"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Неправильный формат телефона"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74 | "alertText": "* Неверный формат email"
75 | },
76 | "integer": {
77 | "regex": /^[\-\+]?\d+$/,
78 | "alertText": "* Не целое число"
79 | },
80 | "number": {
81 | // Number, including positive, negative, and floating decimal. credit: orefalo
82 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83 | "alertText": "* Неправильное число с плавающей точкой"
84 | },
85 | "date": {
86 | "regex": /^(0[1-9]|[12][0-9]|3[01])[ \.](0[1-9]|1[012])[ \.](19|20)\d{2}$/,
87 | "alertText": "* Неправильная дата (должно быть в ДД.MM.ГГГГ формате)"
88 | },
89 | "ipv4": {
90 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
91 | "alertText": "* Неправильный IP-адрес"
92 | },
93 | "ip": {
94 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
95 | "alertText": "* Неправильный IP-адрес"
96 | },
97 | "url": {
98 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
99 | "alertText": "* Неправильный URL"
100 | },
101 | "onlyNumberSp": {
102 | "regex": /^[0-9\ ]+$/,
103 | "alertText": "* Только числа"
104 | },
105 | "onlyLetterSp": {
106 | "regex": /^[a-zA-Z\u0400-\u04FF\ \']+$/,
107 | "alertText": "* Только буквы"
108 | },
109 | "onlyLetterNumber": {
110 | "regex": /^[0-9a-zA-Z\u0400-\u04FF]+$/,
111 | "alertText": "* Запрещены специальные символы"
112 | },
113 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
114 | "ajaxUserCall": {
115 | "url": "ajaxValidateFieldUser",
116 | // you may want to pass extra data on the ajax call
117 | "extraData": "name=eric",
118 | "alertText": "* Этот пользователь уже занят",
119 | "alertTextLoad": "* Проверка, подождите..."
120 | },
121 | "ajaxNameCall": {
122 | // remote json service location
123 | "url": "ajaxValidateFieldName",
124 | // error
125 | "alertText": "* Это имя уже занято",
126 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
127 | "alertTextOk": "* Это имя доступно",
128 | // speaks by itself
129 | "alertTextLoad": "* Проверка, подождите..."
130 | },
131 | "validate2fields": {
132 | "alertText": "* Пожалуйста, введите HELLO"
133 | }
134 | };
135 |
136 | }
137 | };
138 | $.validationEngineLanguage.newLang();
139 | })(jQuery);
140 |
141 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-ca.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 | $.fn.validationEngineLanguage = function(){
4 | };
5 | $.validationEngineLanguage = {
6 | newLang: function(){
7 | $.validationEngineLanguage.allRules = {
8 | "required": { // Add your regex rules here, you can take telephone as an example
9 | "regex": "none",
10 | "alertText": "* Aquest camp és obligatory",
11 | "alertTextCheckboxMultiple": "* Si us plau seleccioni una opció",
12 | "alertTextCheckboxe": "* Aquest checkbox és obligatori"
13 | },
14 | "requiredInFunction": {
15 | "func": function(field, rules, i, options){
16 | return (field.val() == "test") ? true : false;
17 | },
18 | "alertText": "* El contingut del camp ha de ser igual a test"
19 | },
20 | "minSize": {
21 | "regex": "none",
22 | "alertText": "* Mínimo de ",
23 | "alertText2": " caràcters autoritzats"
24 | },
25 | "groupRequired": {
26 | "regex": "none",
27 | "alertText": "* Deu omplir almenys un dels següents camps"
28 | },
29 | "maxSize": {
30 | "regex": "none",
31 | "alertText": "* Màxim de ",
32 | "alertText2": " caràcters autoritzats"
33 | },
34 | "min": {
35 | "regex": "none",
36 | "alertText": "* El valor mínim és "
37 | },
38 | "max": {
39 | "regex": "none",
40 | "alertText": "* El valor màxim és "
41 | },
42 | "past": {
43 | "regex": "none",
44 | "alertText": "* Data anterior a "
45 | },
46 | "future": {
47 | "regex": "none",
48 | "alertText": "* Data posterior a "
49 | },
50 | "maxCheckbox": {
51 | "regex": "none",
52 | "alertText": "* S'ha excedit número d'opcions permeses"
53 | },
54 | "minCheckbox": {
55 | "regex": "none",
56 | "alertText": "* Si us plau, seleccioni ",
57 | "alertText2": " opcions"
58 | },
59 | "equals": {
60 | "regex": "none",
61 | "alertText": "* Els camps no coincideixen"
62 | },
63 | "creditCard": {
64 | "regex": "none",
65 | "alertText": "* La targeta de crédit no és vàlida"
66 | },
67 | "phone": {
68 | // credit: jquery.h5validate.js / orefalo
69 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
70 | "alertText": "* Número de telèfon invàlid"
71 | },
72 | "email": {
73 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
74 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
75 | "alertText": "* Correu invàlid"
76 | },
77 | "integer": {
78 | "regex": /^[\-\+]?\d+$/,
79 | "alertText": "* No és un valor sencer vàlid"
80 | },
81 | "number": {
82 | // Number, including positive, negative, and floating decimal. credit: orefalo
83 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
84 | "alertText": "* No és un valor decimal vàlid"
85 | },
86 | "date": {
87 | "regex": /^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$/,
88 | "alertText": "* Data invàlida, si us play uilitzi el format DD/MM/AAAA"
89 | },
90 | "ipv4": {
91 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
92 | "alertText": "* Adreça IP invàlida"
93 | },
94 | "ip": {
95 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
96 | "alertText": "* Adreça IP invàlida"
97 | },
98 | "url": {
99 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
100 | "alertText": "* URL Invàlida"
101 | },
102 | "onlyNumberSp": {
103 | "regex": /^[0-9\ ]+$/,
104 | "alertText": "* Només números"
105 | },
106 | "onlyLetterSp": {
107 | "regex": /^[a-zA-Z\ \']+$/,
108 | "alertText": "* Només lletres"
109 | },
110 | "onlyLetterAccentSp":{
111 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
112 | "alertText": "* Només lletres"
113 | },
114 | "onlyLetterNumber": {
115 | "regex": /^[0-9a-zA-Z]+$/,
116 | "alertText": "* No es permeten caràcters especials"
117 | },
118 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
119 | "ajaxUserCall": {
120 | "url": "ajaxValidateFieldUser",
121 | // you may want to pass extra data on the ajax call
122 | "extraData": "name=eric",
123 | "alertTextLoad": "* Carregant, esperi si us plau",
124 | "alertText": "* Aquest nom d'usuari ja es troba en ús"
125 | },
126 | "ajaxNameCall": {
127 | // remote json service location
128 | "url": "ajaxValidateFieldName",
129 | // error
130 | "alertText": "* Aquest nom d'usuari ja es troba en ús",
131 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
132 | "alertTextOk": "* Aquest nom est à disponible",
133 | // speaks by itself
134 | "alertTextLoad": "* Carregant, esperi si us plau"
135 | },
136 | "validate2fields": {
137 | "alertText": "* Si us plau, introduir HELLO"
138 | }
139 | };
140 |
141 | }
142 | };
143 | $.validationEngineLanguage.newLang();
144 | })(jQuery);
145 |
146 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-es.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 | $.fn.validationEngineLanguage = function(){
4 | };
5 | $.validationEngineLanguage = {
6 | newLang: function(){
7 | $.validationEngineLanguage.allRules = {
8 | "required": { // Add your regex rules here, you can take telephone as an example
9 | "regex": "none",
10 | "alertText": "* Este campo es obligatorio",
11 | "alertTextCheckboxMultiple": "* Por favor seleccione una opción",
12 | "alertTextCheckboxe": "* Este checkbox es obligatorio"
13 | },
14 | "requiredInFunction": {
15 | "func": function(field, rules, i, options){
16 | return (field.val() == "test") ? true : false;
17 | },
18 | "alertText": "* Field must equal test"
19 | },
20 | "minSize": {
21 | "regex": "none",
22 | "alertText": "* Mínimo de ",
23 | "alertText2": " caracteres autorizados"
24 | },
25 | "groupRequired": {
26 | "regex": "none",
27 | "alertText": "* Debe de rellenar al menos uno de los siguientes campos"
28 | },
29 | "maxSize": {
30 | "regex": "none",
31 | "alertText": "* Máximo de ",
32 | "alertText2": " caracteres autorizados"
33 | },
34 | "min": {
35 | "regex": "none",
36 | "alertText": "* El valor mínimo es "
37 | },
38 | "max": {
39 | "regex": "none",
40 | "alertText": "* El valor máximo es "
41 | },
42 | "past": {
43 | "regex": "none",
44 | "alertText": "* Fecha anterior a "
45 | },
46 | "future": {
47 | "regex": "none",
48 | "alertText": "* Fecha posterior a "
49 | },
50 | "maxCheckbox": {
51 | "regex": "none",
52 | "alertText": "* Se ha excedido el número de opciones permitidas"
53 | },
54 | "minCheckbox": {
55 | "regex": "none",
56 | "alertText": "* Por favor seleccione ",
57 | "alertText2": " opciones"
58 | },
59 | "equals": {
60 | "regex": "none",
61 | "alertText": "* Los campos no coinciden"
62 | },
63 | "creditCard": {
64 | "regex": "none",
65 | "alertText": "* La tarjeta de crédito no es válida"
66 | },
67 | "phone": {
68 | // credit: jquery.h5validate.js / orefalo
69 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
70 | "alertText": "* Número de teléfono inválido"
71 | },
72 | "email": {
73 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
74 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
75 | "alertText": "* Correo inválido"
76 | },
77 | "integer": {
78 | "regex": /^[\-\+]?\d+$/,
79 | "alertText": "* No es un valor entero válido"
80 | },
81 | "number": {
82 | // Number, including positive, negative, and floating decimal. credit: orefalo
83 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
84 | "alertText": "* No es un valor decimal válido"
85 | },
86 | "date": {
87 | "regex": /^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$/,
88 | "alertText": "* Fecha inválida, por favor utilize el formato DD/MM/AAAA"
89 | },
90 | "ipv4": {
91 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
92 | "alertText": "* Direccion IP inválida"
93 | },
94 | "ip": {
95 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
96 | "alertText": "* Direccion IP inválida"
97 | },
98 | "url": {
99 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
100 | "alertText": "* URL Inválida"
101 | },
102 | "onlyNumberSp": {
103 | "regex": /^[0-9\ ]+$/,
104 | "alertText": "* Sólo números"
105 | },
106 | "onlyLetterSp": {
107 | "regex": /^[a-zA-Z\ \']+$/,
108 | "alertText": "* Sólo letras"
109 | },
110 | "onlyLetterAccentSp":{
111 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
112 | "alertText": "* Sólo letras"
113 | },
114 | "onlyLetterNumber": {
115 | "regex": /^[0-9a-zA-Z]+$/,
116 | "alertText": "* No se permiten caracteres especiales"
117 | },
118 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
119 | "ajaxUserCall": {
120 | "url": "ajaxValidateFieldUser",
121 | // you may want to pass extra data on the ajax call
122 | "extraData": "name=eric",
123 | "alertTextLoad": "* Cargando, espere por favor",
124 | "alertText": "* Este nombre de usuario ya se encuentra usado"
125 | },
126 | "ajaxNameCall": {
127 | // remote json service location
128 | "url": "ajaxValidateFieldName",
129 | // error
130 | "alertText": "* Este nombre ya se encuentra usado",
131 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
132 | "alertTextOk": "* Este nombre está disponible",
133 | // speaks by itself
134 | "alertTextLoad": "* Cargando, espere por favor"
135 | },
136 | "validate2fields": {
137 | "alertText": "* Por favor entrar HELLO"
138 | }
139 | };
140 |
141 | }
142 | };
143 | $.validationEngineLanguage.newLang();
144 | })(jQuery);
145 |
146 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-nl.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "geen",
9 | "alertText": "* Dit veld is verplicht",
10 | "alertTextCheckboxMultiple": "* Selecteer a.u.b. een optie",
11 | "alertTextCheckboxe": "* Dit selectievakje is verplicht"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Velden moeten gelijk zijn"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Minimaal ",
22 | "alertText2": " karakters toegestaan"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Maximaal ",
27 | "alertText2": " karakters toegestaan"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Vul één van de volgende velden in"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Minimale waarde is "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Maximale waarde is "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Datum voorafgaand aan "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Datum na "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Toegestane aantal vinkjes overschreden"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Selecteer a.u.b. ",
56 | "alertText2": " opties"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Velden komen niet overeen"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Ongeldige credit card nummer"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Ongeldig telefoonnummer"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | // Replaced incredible long regex with shorter and working one! :)
74 | // "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
75 | "regex": /^[a-z0-9]+[a-z0-9._%+-]*@(?:[a-z0-9-]+\.)+[a-z]{2,6}$/i,
76 | "alertText": "* Ongeldig emailadres"
77 | },
78 | "integer": {
79 | "regex": /^[\-\+]?\d+$/,
80 | "alertText": "* Ongeldig geheel getal"
81 | },
82 | "number": {
83 | // Number, including positive, negative, and floating decimal. credit: orefalo
84 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
85 | "alertText": "* Ongeldig komma getal"
86 | },
87 | "date": {
88 | "regex": /^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,
89 | "alertText": "* Ongeldige datum, formaat moet DD-MM-JJJJ zijn"
90 | },
91 | "ipv4": {
92 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
93 | "alertText": "* Ongeldig IP-adres"
94 | },
95 | "ip": {
96 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
97 | "alertText": "* Ongeldig IP-adres"
98 | },
99 | "url": {
100 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
101 | "alertText": "* Ongeldige URL"
102 | },
103 | "onlyNumberSp": {
104 | "regex": /^[0-9\ ]+$/,
105 | "alertText": "* Alleen cijfers"
106 | },
107 | "onlyLetterSp": {
108 | "regex": /^[a-zA-Z\ \']+$/,
109 | "alertText": "* Alleen leestekens"
110 | },
111 | "onlyLetterAccentSp":{
112 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
113 | "alertText": "* Alleen leestekens"
114 | },
115 | "onlyLetterNumber": {
116 | "regex": /^[0-9a-zA-Z]+$/,
117 | "alertText": "* Geen vreemde tekens toegestaan"
118 | },
119 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
120 | "ajaxUserCall": {
121 | "url": "ajaxValidateFieldUser",
122 | // you may want to pass extra data on the ajax call
123 | "extraData": "name=eric",
124 | "alertText": "* Deze gebruiker bestaat al",
125 | "alertTextLoad": "* Bezig met valideren, even geduld aub"
126 | },
127 | "ajaxNameCall": {
128 | // remote json service location
129 | "url": "ajaxValidateFieldName",
130 | // error
131 | "alertText": "* Deze naam bestaat al",
132 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
133 | "alertTextOk": "* Deze naam is beschikbaar",
134 | // speaks by itself
135 | "alertTextLoad": "* Bezig met valideren, even geduld aub"
136 | },
137 | "validate2fields": {
138 | "alertText": "* Voer aub HELLO in"
139 | }
140 | };
141 |
142 | }
143 | };
144 | $.validationEngineLanguage.newLang();
145 | })(jQuery);
146 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-da.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Dette felt skal udfyldes",
10 | "alertTextCheckboxMultiple": "* Vælg venligst en af mulighederne",
11 | "alertTextCheckboxe": "* Dette felt er påkrævet"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Indholdet af feltet skal være lig med test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Minimum ",
22 | "alertText2": " tegn tilladt"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Maksimum ",
27 | "alertText2": " tegn tilladt"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Du skal udfylde mindst et af følgende felter"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Den mindst tilladte værdi er "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Den maksimalt tilladte værdi er "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Datoen skal være før "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Datoen skal være efter "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Antallet af tilladte valg er overskredet"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Vælg venligst ",
56 | "alertText2": " muligheder"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Felterne er ikke ens"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Ugyldigt kreditkortnummer"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Ikke gyldigt telefonnummer"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74 | "alertText": "* Ikke gyldig e-mail"
75 | },
76 | "integer": {
77 | "regex": /^[\-\+]?\d+$/,
78 | "alertText": "* Ikke et korrekt tal"
79 | },
80 | "number": {
81 | // Number, including positive, negative, and floating decimal. credit: orefalo
82 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83 | "alertText": "* Ugyldig decimaltal"
84 | },
85 | "date": {
86 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
87 | "alertText": "* Ugyldig dato, skal være i formatet ÅÅÅÅ-MM-DD"
88 | },
89 | "ipv4": {
90 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
91 | "alertText": "* Ugyldig IP adresse"
92 | },
93 | "ip": {
94 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
95 | "alertText": "* Ugyldig IP adresse"
96 | },
97 | "url": {
98 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
99 | "alertText": "* Ugyldig URL"
100 | },
101 | "onlyNumberSp": {
102 | "regex": /^[0-9\ ]+$/,
103 | "alertText": "* Kun tal"
104 | },
105 | "onlyLetterSp": {
106 | "regex": /^[a-zA-Z\ \']+$/,
107 | "alertText": "* Kun bogstaver"
108 | },
109 | "onlyLetterAccentSp":{
110 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
111 | "alertText": "* Kun bogstaver"
112 | },
113 | "onlyLetterNumber": {
114 | "regex": /^[0-9a-zA-Z]+$/,
115 | "alertText": "* Ingen specialtegn tilladt"
116 | },
117 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
118 | "ajaxUserCall": {
119 | "url": "ajaxValidateFieldUser",
120 | // you may want to pass extra data on the ajax call
121 | "extraData": "name=eric",
122 | "alertText": "* Denne bruger er allerede taget",
123 | "alertTextLoad": "* Kontrollere, vent venligst"
124 | },
125 | "ajaxNameCall": {
126 | // remote json service location
127 | "url": "ajaxValidateFieldName",
128 | // error
129 | "alertText": "* Dette navn er allerede taget",
130 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
131 | "alertTextOk": "* Dette navn er ledig",
132 | // speaks by itself
133 | "alertTextLoad": "* Kontrollere, vent venligst"
134 | },
135 | "validate2fields": {
136 | "alertText": "* Indsæt venligst HELLO"
137 | }
138 | };
139 |
140 | }
141 | };
142 | $.validationEngineLanguage.newLang();
143 | })(jQuery);
144 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-ja.js:
--------------------------------------------------------------------------------
1 | ;/*****************************************************************
2 | * Japanese language file for jquery.validationEngine.js (ver2.0)
3 | *
4 | * Transrator: tomotomo ( Tomoyuki SUGITA )
5 | * http://tomotomoSnippet.blogspot.com/
6 | * Licenced under the MIT Licence
7 | *******************************************************************/
8 | (function($){
9 | $.fn.validationEngineLanguage = function(){
10 | };
11 | $.validationEngineLanguage = {
12 | newLang: function(){
13 | $.validationEngineLanguage.allRules = {
14 | "required": { // Add your regex rules here, you can take telephone as an example
15 | "regex": "none",
16 | "alertText": "* 必須項目です",
17 | "alertTextCheckboxMultiple": "* 選択してください",
18 | "alertTextCheckboxe": "* チェックボックスをチェックしてください"
19 | },
20 | "requiredInFunction": {
21 | "func": function(field, rules, i, options){
22 | return (field.val() == "test") ? true : false;
23 | },
24 | "alertText": "* Field must equal test"
25 | },
26 | "minSize": {
27 | "regex": "none",
28 | "alertText": "* ",
29 | "alertText2": "文字以上にしてください"
30 | },
31 | "groupRequired": {
32 | "regex": "none",
33 | "alertText": "* You must fill one of the following fields"
34 | },
35 | "maxSize": {
36 | "regex": "none",
37 | "alertText": "* ",
38 | "alertText2": "文字以下にしてください"
39 | },
40 | "min": {
41 | "regex": "none",
42 | "alertText": "* ",
43 | "alertText2": " 以上の数値にしてください"
44 | },
45 | "max": {
46 | "regex": "none",
47 | "alertText": "* ",
48 | "alertText2": " 以下の数値にしてください"
49 | },
50 | "past": {
51 | "regex": "none",
52 | "alertText": "* ",
53 | "alertText2": " より過去の日付にしてください"
54 | },
55 | "future": {
56 | "regex": "none",
57 | "alertText": "* ",
58 | "alertText2": " より最近の日付にしてください"
59 | },
60 | "maxCheckbox": {
61 | "regex": "none",
62 | "alertText": "* チェックしすぎです"
63 | },
64 | "minCheckbox": {
65 | "regex": "none",
66 | "alertText": "* ",
67 | "alertText2": "つ以上チェックしてください"
68 | },
69 | "equals": {
70 | "regex": "none",
71 | "alertText": "* 入力された値が一致しません"
72 | },
73 | "creditCard": {
74 | "regex": "none",
75 | "alertText": "* 無効なクレジットカード番号"
76 | },
77 | "phone": {
78 | // credit: jquery.h5validate.js / orefalo
79 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
80 | "alertText": "* 電話番号が正しくありません"
81 | },
82 | "email": {
83 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
84 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
85 | "alertText": "* メールアドレスが正しくありません"
86 | },
87 | "integer": {
88 | "regex": /^[\-\+]?\d+$/,
89 | "alertText": "* 整数を半角で入力してください"
90 | },
91 | "number": {
92 | // Number, including positive, negative, and floating decimal. credit: orefalo
93 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
94 | "alertText": "* 数値を半角で入力してください"
95 | },
96 | "date": {
97 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
98 | "alertText": "* 日付は半角で YYYY-MM-DD の形式で入力してください"
99 | },
100 | "ipv4": {
101 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
102 | "alertText": "* IPアドレスが正しくありません"
103 | },
104 | "ip": {
105 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
106 | "alertText": "* IPアドレスが正しくありません"
107 | },
108 | "url": {
109 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
110 | "alertText": "* URLが正しくありません"
111 | },
112 | "onlyNumberSp": {
113 | "regex": /^[0-9\ ]+$/,
114 | "alertText": "* 半角数字で入力してください"
115 | },
116 | "onlyLetterSp": {
117 | "regex": /^[a-zA-Z\ \']+$/,
118 | "alertText": "* 半角アルファベットで入力してください"
119 | },
120 | "onlyLetterNumber": {
121 | "regex": /^[0-9a-zA-Z]+$/,
122 | "alertText": "* 半角英数で入力してください"
123 | },
124 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
125 | "ajaxUserCall": {
126 | "url": "ajaxValidateFieldUser",
127 | // you may want to pass extra data on the ajax call
128 | "extraData": "name=eric",
129 | "alertText": "* This user is already taken",
130 | "alertTextLoad": "* Validating, please wait"
131 | },
132 | "ajaxNameCall": {
133 | // remote json service location
134 | "url": "ajaxValidateFieldName",
135 | // error
136 | "alertText": "* This name is already taken",
137 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
138 | "alertTextOk": "* This name is available",
139 | // speaks by itself
140 | "alertTextLoad": "* Validating, please wait"
141 | },
142 | "validate2fields": {
143 | "alertText": "* 『HELLO』と入力してください"
144 | }
145 | };
146 |
147 | }
148 | };
149 | $.validationEngineLanguage.newLang();
150 | })(jQuery);
151 |
152 |
153 |
154 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-pt_BR.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){};
3 | $.validationEngineLanguage = {
4 | newLang: function(){
5 | $.validationEngineLanguage.allRules = {
6 | "required": {
7 | "regex": "none",
8 | "alertText": "* Este campo é obrigatório",
9 | "alertTextCheckboxMultiple": "* Favor selecionar uma opção",
10 | "alertTextCheckboxe": "* Este checkbox é obrigatório",
11 | "alertTextDateRange": "* Ambas as datas do intervalo são obrigatórias"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "dateRange": {
20 | "regex": "none",
21 | "alertText": "* Intervalo de datas inválido"
22 | },
23 | "dateTimeRange": {
24 | "regex": "none",
25 | "alertText": "* Intervalo de data e hora inválido"
26 | },
27 | "minSize": {
28 | "regex": "none",
29 | "alertText": "* Permitido o mínimo de ",
30 | "alertText2": " caractere(s)"
31 | },
32 | "maxSize": {
33 | "regex": "none",
34 | "alertText": "* Permitido o máximo de ",
35 | "alertText2": " caractere(s)"
36 | },
37 | "groupRequired": {
38 | "regex": "none",
39 | "alertText": "* Você deve preencher um dos seguintes campos"
40 | },
41 | "min": {
42 | "regex": "none",
43 | "alertText": "* Valor mínimo é "
44 | },
45 | "max": {
46 | "regex": "none",
47 | "alertText": "* Valor máximo é "
48 | },
49 | "past": {
50 | "regex": "none",
51 | "alertText": "* Data anterior a "
52 | },
53 | "future": {
54 | "regex": "none",
55 | "alertText": "* Data posterior a "
56 | },
57 | "maxCheckbox": {
58 | "regex": "none",
59 | "alertText": "* Máximo de ",
60 | "alertText2": " opções permitidas"
61 | },
62 | "minCheckbox": {
63 | "regex": "none",
64 | "alertText": "* Favor selecionar ",
65 | "alertText2": " opção(ões)"
66 | },
67 | "equals": {
68 | "regex": "none",
69 | "alertText": "* Os campos não correspondem"
70 | },
71 | "creditCard": {
72 | "regex": "none",
73 | "alertText": "* Número de cartão de crédito inválido"
74 | },
75 | "phone": {
76 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
77 | "alertText": "* Número de telefone inválido"
78 | },
79 | "email": {
80 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
81 | "alertText": "* Endereço de email inválido"
82 | },
83 | "integer": {
84 | "regex": /^[\-\+]?\d+$/,
85 | "alertText": "* Número inteiro inválido"
86 | },
87 | "number": {
88 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
89 | "alertText": "* Número decimal inválido"
90 | },
91 | "date": {
92 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
93 | "alertText": "* Data inválida, deve ser no formato AAAA-MM-DD"
94 | },
95 | "ipv4": {
96 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
97 | "alertText": "* Endereço IP inválido"
98 | },
99 | "ip": {
100 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
101 | "alertText": "* Endereço IP inválido"
102 | },
103 | "url": {
104 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
105 | "alertText": "* URL inválida"
106 | },
107 | "onlyNumberSp": {
108 | "regex": /^[0-9\ ]+$/,
109 | "alertText": "* Apenas números"
110 | },
111 | "onlyLetterSp": {
112 | "regex": /^[a-zA-Z\ \']+$/,
113 | "alertText": "* Apenas letras"
114 | },
115 | "onlyLetterAccentSp":{
116 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
117 | "alertText": "* Apenas letras e espaços."
118 | },
119 | "onlyLetterNumber": {
120 | "regex": /^[0-9a-zA-Z]+$/,
121 | "alertText": "* Não são permitidos caracteres especiais"
122 | },
123 | "real": {
124 | // Brazilian (Real - R$) money format
125 | "regex": /^([1-9]{1}[\d]{0,2}(\.[\d]{3})*(\,[\d]{0,2})?|[1-9]{1}[\d]{0,}(\,[\d]{0,2})?|0(\,[\d]{0,2})?|(\,[\d]{1,2})?)$/,
126 | "alertText": "* Número decimal inválido"
127 | },
128 | "cpf": {
129 | // CPF is the Brazilian ID
130 | "func": function(field, rules, i, options){
131 | cpf = field.val().replace(/[^0-9]+/g, '');
132 | while(cpf.length < 11) cpf = "0"+ cpf;
133 |
134 | var expReg = /^0+$|^1+$|^2+$|^3+$|^4+$|^5+$|^6+$|^7+$|^8+$|^9+$/;
135 | var a = cpf.split('');
136 | var b = new Number;
137 | var c = 11;
138 | b += (a[9] * --c);
139 | if ((x = b % 11) < 2) { a[9] = 0 } else { a[9] = 11-x }
140 | b = 0;
141 | c = 11;
142 | for (y=0; y<10; y++) b += (a[y] * c--);
143 | if ((x = b % 11) < 2) { a[10] = 0; } else { a[10] = 11-x; }
144 |
145 | var error = false;
146 | if ((cpf.charAt(9) != a[9]) || (cpf.charAt(10) != a[10]) || cpf.match(expReg)) error = true;
147 | return !error;
148 | },
149 | "alertText": "CPF inválido",
150 | "alertTextOK": "CPF válido"
151 | }
152 | };
153 |
154 | }
155 | };
156 |
157 | $.validationEngineLanguage.newLang();
158 |
159 | })(jQuery);
160 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-sv.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Det här fältet krävs",
10 | "alertTextCheckboxMultiple": "* Var god välj ett alternativ",
11 | "alertTextCheckboxe": "* Den här kryssrutan måste anges"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Minimum ",
22 | "alertText2": " tecken"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Maximalt ",
27 | "alertText2": " antal tecken"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* You must fill one of the following fields"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Minsta möjliga värde är "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Maxvärdet är "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Datum måste vara före "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Datum efter "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Maximalt ",
52 | "alertText2": " alternativ får väljas"
53 | },
54 | "minCheckbox": {
55 | "regex": "none",
56 | "alertText": "* Var god välj ",
57 | "alertText2": " alternativ"
58 | },
59 | "equals": {
60 | "regex": "none",
61 | "alertText": "* Fält överensstämmer inte"
62 | },
63 | "creditCard": {
64 | "regex": "none",
65 | "alertText": "* Ogiltigt kreditkortsnummer"
66 | },
67 | "phone": {
68 | // credit: jquery.h5validate.js / orefalo
69 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
70 | "alertText": "* Ogiltigt telefonnummer"
71 | },
72 | "email": {
73 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
74 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
75 | "alertText": "* Ogiltig e-postadress"
76 | },
77 | "integer": {
78 | "regex": /^[\-\+]?\d+$/,
79 | "alertText": "* Inte korrekt numeriskt värde"
80 | },
81 | "number": {
82 | // Number, including positive, negative, and floating decimal. credit: orefalo
83 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
84 | "alertText": "* Inte korrekt decimalvärde"
85 | },
86 | "date": {
87 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
88 | "alertText": "* Ogiltigt datum, måste vara i YYYY-MM-DD -format"
89 | },
90 | "ipv4": {
91 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
92 | "alertText": "* Ogiltig IP-adress"
93 | },
94 | "ip": {
95 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
96 | "alertText": "* Ogiltig IP-adress"
97 | },
98 | "url": {
99 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
100 | "alertText": "* Ogiltig URL"
101 | },
102 | "onlyNumberSp": {
103 | "regex": /^[0-9\ ]+$/,
104 | "alertText": "* Enbart siffror"
105 | },
106 | "onlyLetterSp": {
107 | "regex": /^[a-zA-Z\ \']+$/,
108 | "alertText": "* Enbart bokstäver"
109 | },
110 | "onlyLetterAccentSp":{
111 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
112 | "alertText": "* Enbart bokstäver"
113 | },
114 | "onlyLetterNumber": {
115 | "regex": /^[0-9a-zA-Z]+$/,
116 | "alertText": "* Inga specialtecken"
117 | },
118 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
119 | "ajaxUserCall": {
120 | "url": "ajaxValidateFieldUser",
121 | // you may want to pass extra data on the ajax call
122 | "extraData": "name=eric",
123 | "alertText": "* Användarnamnet är upptaget",
124 | "alertTextLoad": "* Validerar, var god vänta"
125 | },
126 | "ajaxUserCallPhp": {
127 | "url": "phpajax/ajaxValidateFieldUser.php",
128 | // you may want to pass extra data on the ajax call
129 | "extraData": "name=eric",
130 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
131 | "alertTextOk": "* Användarnamnet är tillgängligt",
132 | "alertText": "* Användarnamnet är upptaget",
133 | "alertTextLoad": "* Validerar, var god vänta"
134 | },
135 | "ajaxNameCall": {
136 | // remote json service location
137 | "url": "ajaxValidateFieldName",
138 | // error
139 | "alertText": "* Användarnamnet är upptaget",
140 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
141 | "alertTextOk": "* Användarnamnet är tillgängligt",
142 | // speaks by itself
143 | "alertTextLoad": "* Validerar, var god vänta"
144 | },
145 | "ajaxNameCallPhp": {
146 | // remote json service location
147 | "url": "phpajax/ajaxValidateFieldName.php",
148 | // error
149 | "alertText": "* Användarnamnet är upptaget",
150 | // speaks by itself
151 | "alertTextLoad": "* Validerar, var god vänta"
152 | },
153 | "validate2fields": {
154 | "alertText": "* Ange text HELLO"
155 | }
156 | };
157 |
158 | }
159 | };
160 | $.validationEngineLanguage.newLang();
161 | })(jQuery);
162 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-cz.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Tato položka je povinná",
10 | "alertTextCheckboxMultiple": "* Prosím vyberte jednu možnost",
11 | "alertTextCheckboxe": "* Tato položka je povinná"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Pole se musí rovnat test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Minimálně ",
22 | "alertText2": " znaky"
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Maximálně ",
27 | "alertText2": " znaky"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Musíte zadat jedno z nasledujících polí"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Minimální hodnota je "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Maximální hodnota je "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Datum před "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Datum po "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Počet vybraných položek přesáhl limit"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Prosím vyberte ",
56 | "alertText2": " volbu"
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Pole se neshodují"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Neplatné číslo kreditní karty"
65 | },
66 | "CZphone": {
67 | // telefoní číslo
68 | "regex": /^([\+][0-9]{1,3}[ \.\-])([0-9]{3}[\-][0-9]{3}[\-][0-9]{3})$/,
69 | "alertText": "* Neplatné telefoní číslo, zadejte ve formátu +420 598-598-895"
70 | },
71 | "phone": {
72 | // credit: jquery.h5validate.js / orefalo
73 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
74 | "alertText": "* Neplatné telefoní číslo"
75 | },
76 | "email": {
77 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
78 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
79 | "alertText": "* Neplatná emailová adresa"
80 | },
81 | "integer": {
82 | "regex": /^[\-\+]?\d+$/,
83 | "alertText": "* Zadejte pouze čísla"
84 | },
85 | "number": {
86 | // Number, including positive, negative, and floating decimal. credit: orefalo
87 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
88 | "alertText": "* Neplatné číslo"
89 | },
90 | "CZdate": {
91 | // datum ve formátu jak se používá v čr
92 | "regex": /^(0[1-9]|[12][0-9]|3[01])[. /.](0[1-9]|1[012])[. /.](19|20)\d{2}$/,
93 | "alertText": "* Neplatné datum, datum musí být ve formátu den.měsíc.rok (dd.mm.rrrr)"
94 | },
95 | "date": {
96 | // Date in ISO format. Credit: bassistance
97 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
98 | "alertText": "* Neplatné datum, datum musí být ve formátu YYYY-MM-DD"
99 | },
100 | "ipv4": {
101 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
102 | "alertText": "* Neplatná IP adresa"
103 | },
104 | "ip": {
105 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
106 | "alertText": "* Neplatná IP adresa"
107 | },
108 | //česká syntaxe pro rodné číslo
109 | "rc": {
110 | "regex": /^\d{2}((0[1-9]|1[012])|(5[1-9]|6[012]))(0[1-9]|[12][0-9]|3[01])\/([0-9]{2,4})$/,
111 | "alertText": "* Neplatné rodné číslo, tvar musí být 895431/4567"
112 | },
113 | //poštovní směrovací číslo
114 | "psc": {
115 | "regex": /^\d{3}[ \.\-]\d{2}$/,
116 | "alertText": "* Neplatné poštovní směrovací číslo, tvar musí být 456 45"
117 | },
118 | "url": {
119 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
120 | "alertText": "* Neplatný odkaz"
121 | },
122 | "onlyNumberSp": {
123 | "regex": /^[0-9\ ]+$/,
124 | "alertText": "* Pouze čísla"
125 | },
126 | "onlyLetterSp": {
127 | "regex": /^[a-zA-Z\ \']+$/,
128 | "alertText": "* Pouze písmena"
129 | },
130 | "onlyLetterAccentSp":{
131 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
132 | "alertText": "* Pouze písmena"
133 | },
134 | "onlyLetterNumber": {
135 | "regex": /^[0-9a-zA-Z]+$/,
136 | "alertText": "* Pouze písmena a číslice"
137 | },
138 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
139 | "ajaxUserCall": {
140 | "url": "ajaxValidateFieldUser",
141 | // you may want to pass extra data on the ajax call
142 | "extraData": "name=eric",
143 | "alertText": "* Uživatelské jméno je již použito",
144 | "alertTextLoad": "* Ověřování, prosím čekejte"
145 | },
146 | "ajaxNameCall": {
147 | // remote json service location
148 | "url": "ajaxValidateFieldName",
149 | // error
150 | "alertText": "* Uživatelské jméno je již použito",
151 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
152 | "alertTextOk": "* Toto jméno je k dispozici",
153 | // speaks by itself
154 | "alertTextLoad": "* Ověřování, prosím čekejte"
155 | },
156 | "validate2fields": {
157 | "alertText": "* Prosím napište HELLO"
158 | }
159 | };
160 |
161 | }
162 | };
163 | $.validationEngineLanguage.newLang();
164 | })(jQuery);
165 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-tr.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Bu alan zorunludur",
10 | "alertTextCheckboxMultiple": "* Lütfen bir seçeneği işaretleyiniz",
11 | "alertTextCheckboxe": "* Bu onay kutusu zorunludur"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Bu alana en az ",
22 | "alertText2": " karakter girmelisiniz "
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Bu alana en fazla ",
27 | "alertText2": " karakter girebilirsiniz"
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* You must fill one of the following fields"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Geçerli en küçük değer: "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Geçerli en yüksek değer: "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Lütfen ",
44 | "alertText2": " tarihinden daha ileri bir tarih giriniz "
45 | },
46 | "future": {
47 | "regex": "none",
48 | "alertText": "* Lütfen ",
49 | "alertText2": " tarihinden daha geri bir tarih giriniz "
50 |
51 | },
52 | "maxCheckbox": {
53 | "regex": "none",
54 | "alertText": "* En fazla ",
55 | "alertText2": " onay kutusu işaretleyebilirsiniz"
56 | },
57 | "minCheckbox": {
58 | "regex": "none",
59 | "alertText": "* Lütfen en az ",
60 | "alertText2": " onay kutusunu işaretleyiniz"
61 | },
62 | "equals": {
63 | "regex": "none",
64 | "alertText": "* Değerler aynı olmalı"
65 | },
66 | "creditCard": {
67 | "regex": "none",
68 | "alertText": "* Geçersiz kredi kartı numarası"
69 | },
70 | "phone": {
71 | // credit: jquery.h5validate.js / orefalo
72 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
73 | "alertText": "* Geçersiz telefon numarası"
74 | },
75 | "email": {
76 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
77 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
78 | "alertText": "* Geçersiz eposta adresi"
79 | },
80 | "integer": {
81 | "regex": /^[\-\+]?\d+$/,
82 | "alertText": "* Geçerli bir tam sayı değil"
83 | },
84 | "number": {
85 | // Number, including positive, negative, and floating decimal. credit: orefalo
86 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
87 | "alertText": "* Geçerli bir noktalı sayı değil"
88 | },
89 | "date": {
90 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
91 | "alertText": "* Geçersiz tarih. Tarih YYYY-MM-DD formatında olmalı"
92 | },
93 | "ipv4": {
94 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
95 | "alertText": "* Geçersiz IP adresi"
96 | },
97 | "ip": {
98 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
99 | "alertText": "* Geçersiz IP adresi"
100 | },
101 | "url": {
102 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
103 | "alertText": "* Geçersiz URL"
104 | },
105 | "onlyNumberSp": {
106 | "regex": /^[0-9\ ]+$/,
107 | "alertText": "* Bu alanda sadece rakam olmalı"
108 | },
109 | "onlyLetterSp": {
110 | "regex": /^[a-zA-Z\ \']+$/,
111 | "alertText": "* Bu alanda sadece harf olmalı"
112 | },
113 | "onlyLetterAccentSp":{
114 | "regex": /^[a-z\u00C0-\u017F\ \']+$/i,
115 | "alertText": "* Bu alanda sadece harf olmalı"
116 | },
117 | "onlyLetterNumber": {
118 | "regex": /^[0-9a-zA-Z]+$/,
119 | "alertText": "* Bu alanda özel karakterler olamaz"
120 | },
121 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
122 | "ajaxUserCall": {
123 | "url": "ajaxValidateFieldUser",
124 | // you may want to pass extra data on the ajax call
125 | "extraData": "name=eric",
126 | "alertText": "* Bu kullanıcı adı kullanımda",
127 | "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
128 | },
129 | "ajaxUserCallPhp": {
130 | "url": "phpajax/ajaxValidateFieldUser.php",
131 | // you may want to pass extra data on the ajax call
132 | "extraData": "name=eric",
133 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
134 | "alertTextOk": "* Bu kullanıcı adını kullanabilirsiniz",
135 | "alertText": "* Bu kullanıcı adı kullanımda",
136 | "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
137 | },
138 | "ajaxNameCall": {
139 | // remote json service location
140 | "url": "ajaxValidateFieldName",
141 | // error
142 | "alertText": "* Bu isim kullanımda",
143 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
144 | "alertTextOk": "* Bu isim kullanılabilir",
145 | // speaks by itself
146 | "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
147 | },
148 | "ajaxNameCallPhp": {
149 | // remote json service location
150 | "url": "phpajax/ajaxValidateFieldName.php",
151 | // error
152 | "alertText": "* Bu isim kullanımda",
153 | // speaks by itself
154 | "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
155 | },
156 | "validate2fields": {
157 | "alertText": "* Lütfen 'HELLO' yazın"
158 | }
159 | };
160 |
161 | }
162 | };
163 | $.validationEngineLanguage.newLang();
164 | })(jQuery);
165 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-bg.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Това поле е задължително",
10 | "alertTextCheckboxMultiple": "* Моля, изберете от списъка",
11 | "alertTextCheckboxe": "* Трябва да отметнeте",
12 | "alertTextDateRange": "* И двете полета за дата са задължителни"
13 | },
14 | "requiredInFunction": {
15 | "func": function(field, rules, i, options){
16 | return (field.val() == "test") ? true : false;
17 | },
18 | "alertText": "* Полето трябва да е test"
19 | },
20 | "dateRange": {
21 | "regex": "none",
22 | "alertText": "* Невалиден ",
23 | "alertText2": "период"
24 | },
25 | "dateTimeRange": {
26 | "regex": "none",
27 | "alertText": "* Невалиден ",
28 | "alertText2": "дата/час период"
29 | },
30 | "minSize": {
31 | "regex": "none",
32 | "alertText": "* Минимум ",
33 | "alertText2": " символа"
34 | },
35 | "maxSize": {
36 | "regex": "none",
37 | "alertText": "* Максимум ",
38 | "alertText2": " символа"
39 | },
40 | "groupRequired": {
41 | "regex": "none",
42 | "alertText": "* Трябва да попълните едно от следните полета"
43 | },
44 | "min": {
45 | "regex": "none",
46 | "alertText": "* Мин. стойност е "
47 | },
48 | "max": {
49 | "regex": "none",
50 | "alertText": "* Макс. стойност е "
51 | },
52 | "past": {
53 | "regex": "none",
54 | "alertText": "* Дата преди "
55 | },
56 | "future": {
57 | "regex": "none",
58 | "alertText": "* Дата след "
59 | },
60 | "maxCheckbox": {
61 | "regex": "none",
62 | "alertText": "* Най-много ",
63 | "alertText2": " опции са позволени"
64 | },
65 | "minCheckbox": {
66 | "regex": "none",
67 | "alertText": "* Моля, изберете ",
68 | "alertText2": " опции"
69 | },
70 | "equals": {
71 | "regex": "none",
72 | "alertText": "* Полетата не съвпадат"
73 | },
74 | "creditCard": {
75 | "regex": "none",
76 | "alertText": "* Невалиден номер на кредитна карта"
77 | },
78 | "phone": {
79 | // credit: jquery.h5validate.js / orefalo
80 | "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/,
81 | "alertText": "* Невалиден телефонен номер"
82 | },
83 | "email": {
84 | // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 )
85 | "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
86 | "alertText": "* Невалиден адрес на ел.поща"
87 | },
88 | "integer": {
89 | "regex": /^[\-\+]?\d+$/,
90 | "alertText": "* Не е цяло число"
91 | },
92 | "number": {
93 | // Number, including positive, negative, and floating decimal. credit: orefalo
94 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
95 | "alertText": "* Невалидно десетично число"
96 | },
97 | "date": {
98 | //Check if date is valid by leap year
99 | "func": function (field) {
100 | var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
101 | var match = pattern.exec(field.val());
102 | if (match === null)
103 | return false;
104 |
105 | var year = match[1];
106 | var month = match[2]*1;
107 | var day = match[3]*1;
108 | var date = new Date(year, month - 1, day); // because months starts from 0.
109 |
110 | return (date.getFullYear() == year && date.getMonth() == (month - 1) && date.getDate() == day);
111 | },
112 | "alertText": "* Невалидна дата, трябва да бъде във формат: YYYY-MM-DD"
113 | },
114 | "ipv4": {
115 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
116 | "alertText": "* Невалиден IP адрес"
117 | },
118 | "url": {
119 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
120 | "alertText": "* Невалиден URL"
121 | },
122 | "onlyNumberSp": {
123 | "regex": /^[0-9\ ]+$/,
124 | "alertText": "* Само цифри и интервал"
125 | },
126 | "onlyLetterSp": {
127 | "regex": /^[a-zA-Z\ \']+$/,
128 | "alertText": "* Само букви"
129 | },
130 | // --- Bulgarian NAMES in cyrillic alphabet
131 | "onlyBGname": {
132 | "regex": /^[а-яА-Я\-]+$/,
133 | "alertText": "* Без латиница, цифри и спец. символи"
134 | },
135 | // --- Only numbers, no space
136 | "onlyDigits": {
137 | "regex": /^[0-9]+$/,
138 | "alertText": "* Само цифри"
139 | },
140 |
141 | "onlyLetterNumber": {
142 | "regex": /^[0-9a-zA-Z]+$/,
143 | "alertText": "* Не са позволени спец. символи"
144 | },
145 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
146 | "ajaxUserCall": {
147 | "url": "ajaxValidateFieldUser",
148 | // you may want to pass extra data on the ajax call
149 | "extraData": "name=eric",
150 | "alertText": "* Потребителското име е заето",
151 | "alertTextLoad": "* Проверява се, моля почакайте"
152 | },
153 | "ajaxUserCallPhp": {
154 | "url": "phpajax/ajaxValidateFieldUser.php",
155 | // you may want to pass extra data on the ajax call
156 | "extraData": "name=eric",
157 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
158 | "alertTextOk": "* Името е свободно",
159 | "alertText": "* Името е заето",
160 | "alertTextLoad": "* Проверява се, моля почакайте"
161 | },
162 | "ajaxNameCall": {
163 | // remote json service location
164 | "url": "ajaxValidateFieldName",
165 | // error
166 | "alertText": "* Това име е заето",
167 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
168 | "alertTextOk": "* Това име е свободно",
169 | // speaks by itself
170 | "alertTextLoad": "* Проверява се, моля почакайте"
171 | },
172 | "ajaxNameCallPhp": {
173 | // remote json service location
174 | "url": "phpajax/ajaxValidateFieldName.php",
175 | // error
176 | "alertText": "* Името е заето",
177 | // speaks by itself
178 | "alertTextLoad": "* Проверява се, моля почакайте"
179 | },
180 | "validate2fields": {
181 | "alertText": "*Моля, въведете HELLO"
182 | },
183 | //tls warning:homegrown not fielded
184 | "dateFormat":{
185 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
186 | "alertText": "* Невалидна дата"
187 | },
188 | //tls warning:homegrown not fielded
189 | "dateTimeFormat": {
190 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
191 | "alertText": "* Невалидна дата или грешен формат за дата",
192 | "alertText2": "Очакван формат: ",
193 | "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ",
194 | "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
195 | }
196 | };
197 |
198 | }
199 | };
200 |
201 | $.validationEngineLanguage.newLang();
202 |
203 | })(jQuery);
204 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-pl.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Pole wymagane",
10 | "alertTextCheckboxMultiple": "* Proszę wybrać opcję",
11 | "alertTextCheckboxe": "* Pole wymagane"
12 | },
13 | "requiredInFunction": {
14 | "func": function(field, rules, i, options){
15 | return (field.val() == "test") ? true : false;
16 | },
17 | "alertText": "* Field must equal test"
18 | },
19 | "minSize": {
20 | "regex": "none",
21 | "alertText": "* Minimalna liczba znaków to ",
22 | "alertText2": ""
23 | },
24 | "maxSize": {
25 | "regex": "none",
26 | "alertText": "* Maksymalna liczba znaków to ",
27 | "alertText2": ""
28 | },
29 | "groupRequired": {
30 | "regex": "none",
31 | "alertText": "* Proszę wypełnić wymienione opcje"
32 | },
33 | "min": {
34 | "regex": "none",
35 | "alertText": "* Najmniejsza wartość to "
36 | },
37 | "max": {
38 | "regex": "none",
39 | "alertText": "* Największa wartość to "
40 | },
41 | "past": {
42 | "regex": "none",
43 | "alertText": "* Data musi być wcześniejsza niż "
44 | },
45 | "future": {
46 | "regex": "none",
47 | "alertText": "* Data musi być późniejsza niż "
48 | },
49 | "maxCheckbox": {
50 | "regex": "none",
51 | "alertText": "* Przekroczona maksymalna liczba opcji"
52 | },
53 | "minCheckbox": {
54 | "regex": "none",
55 | "alertText": "* Minimalna liczba opcji to ",
56 | "alertText2": ""
57 | },
58 | "equals": {
59 | "regex": "none",
60 | "alertText": "* Pola nie są jednakowe"
61 | },
62 | "creditCard": {
63 | "regex": "none",
64 | "alertText": "* Nieprawidłowy numer karty kredytowej"
65 | },
66 | "phone": {
67 | // credit: jquery.h5validate.js / orefalo
68 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69 | "alertText": "* Nieprawidłowy numer telefonu"
70 | },
71 | "email": {
72 | // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73 | "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74 | "alertText": "* Nieprawidłowy adres e-mail"
75 | },
76 | "integer": {
77 | "regex": /^[\-\+]?\d+$/,
78 | "alertText": "* Nieprawidłowa liczba całkowita"
79 | },
80 | "number": {
81 | // Number, including positive, negative, and floating decimal. credit: orefalo
82 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83 | "alertText": "* Nieprawidłowa liczba dziesiętna"
84 | },
85 | "CZdate": {
86 | // Date in Polish format, regex taken from Czech translation
87 | "regex": /^(0[1-9]|[12][0-9]|3[01])[. /.](0[1-9]|1[012])[. /.](19|20)\d{2}$/,
88 | "alertText": "* Data musi być w postaci DD.MM.RRRR"
89 | },
90 | "date": {
91 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
92 | "alertText": "* Data musi być w postaci RRRR-MM-DD"
93 | },
94 | "nip":{
95 | "func": function(field, rules, i, options){
96 | var nipNumber = field.val().replace(/[\s-]/gi, '');
97 | var verificator_nip = new Array(6,5,7,2,3,4,5,6,7);
98 | if (nipNumber.length == 10) {
99 | var n=0;
100 | for (var i=0; i<9; i++)
101 | {
102 | n += nipNumber[i] * verificator_nip[i];
103 | }
104 | n %= 11;
105 | if (n == nipNumber[9]) {return true;}
106 | }
107 | return false;
108 | },
109 | "alertText": "* Nieprawidłowy numer NIP"
110 | },
111 | "pesel":{
112 | "func": function(field, rules, i, options){
113 | var pesel = field.val().replace(/[\s-]/gi, '');
114 | var peselArr = new Array(1,3,7,9,1,3,7,9,1,3);
115 | if(pesel.length == 11){
116 | var peselCRC=0;
117 | for (var i=0; i<10;i++){
118 | peselCRC += peselArr[i]*pesel[i];
119 | }
120 | peselCRC%=10;
121 | if(peselCRC == 0) peselCRC=10;
122 | peselCRC = 10 - peselCRC;
123 | if(pesel[10]==peselCRC) return true; else return false;
124 | }
125 | },
126 | "alertText": "* Nieprawidłowy numer PESEL"
127 | },
128 | "ipv4": {
129 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
130 | "alertText": "* Nieprawidłowy adres IP"
131 | },
132 | "ip": {
133 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
134 | "alertText": "* Nieprawidłowy adres IP"
135 | },
136 | "url": {
137 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
138 | "alertText": "* Nieprawidłowy adres internetowy"
139 | },
140 | "onlyNumberSp": {
141 | "regex": /^[0-9\ ]+$/,
142 | "alertText": "* Tylko liczby"
143 | },
144 | "onlyLetterSp": {
145 | "regex": /^[a-zA-Z\ \']+$/,
146 | "alertText": "* Tylko litery"
147 | },
148 | "onlyLetterAccentSp":{
149 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
150 | "alertText": "* Tylko litery"
151 | },
152 | "onlyLetterNumber": {
153 | "regex": /^[0-9a-zA-Z]+$/,
154 | "alertText": "* Tylko litery i liczby"
155 | },
156 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
157 | "ajaxUserCall": {
158 | "url": "ajaxValidateFieldUser",
159 | // you may want to pass extra data on the ajax call
160 | "extraData": "name=eric",
161 | "alertText": "* Nazwa użytkownika jest już zajęta",
162 | "alertTextLoad": "* Walidacja, proszę czekać"
163 | },
164 | "ajaxNameCall": {
165 | // remote json service location
166 | "url": "ajaxValidateFieldName",
167 | // error
168 | "alertText": "* Nazwa jest już zajęta",
169 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
170 | "alertTextOk": "* Nazwa jest dostępna",
171 | // speaks by itself
172 | "alertTextLoad": "* Walidacja, proszę czekać"
173 | },
174 | "validate2fields": {
175 | "alertText": "* Proszę wpisać HELLO"
176 | }
177 | };
178 | }
179 | };
180 | $.validationEngineLanguage.newLang();
181 | })(jQuery);
182 |
--------------------------------------------------------------------------------
/js/languages/jquery.validationEngine-hu.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | $.fn.validationEngineLanguage = function(){
3 | };
4 | $.validationEngineLanguage = {
5 | newLang: function(){
6 | $.validationEngineLanguage.allRules = {
7 | "required": { // Add your regex rules here, you can take telephone as an example
8 | "regex": "none",
9 | "alertText": "* Ezt a mezőt ki kell tölteni",
10 | "alertTextCheckboxMultiple": "* Kérem válasszon egy opciót",
11 | "alertTextCheckboxe": "* Ez az opció be kell legyen jelölve",
12 | "alertTextDateRange": "* Mindkét dátum mezőt ki kell tölteni"
13 | },
14 | "requiredInFunction": {
15 | "func": function(field, rules, i, options){
16 | return (field.val() == "test") ? true : false;
17 | },
18 | "alertText": "* Field must equal test"
19 | },
20 | "dateRange": {
21 | "regex": "none",
22 | "alertText": "* Érvénytelen ",
23 | "alertText2": "Dátum tartomány"
24 | },
25 | "dateTimeRange": {
26 | "regex": "none",
27 | "alertText": "* Érvénytelen ",
28 | "alertText2": "Dátum-idő tartomány"
29 | },
30 | "minSize": {
31 | "regex": "none",
32 | "alertText": "* Minimum ",
33 | "alertText2": " karakter kell legyen"
34 | },
35 | "maxSize": {
36 | "regex": "none",
37 | "alertText": "* Maximum ",
38 | "alertText2": " karakter lehet"
39 | },
40 | "groupRequired": {
41 | "regex": "none",
42 | "alertText": "* Az alábbi mezők valamelyikét ki kell tölteni"
43 | },
44 | "min": {
45 | "regex": "none",
46 | "alertText": "* A minimum érték "
47 | },
48 | "max": {
49 | "regex": "none",
50 | "alertText": "* A maximum érték "
51 | },
52 | "past": {
53 | "regex": "none",
54 | "alertText": "* Dátum ez előtt "
55 | },
56 | "future": {
57 | "regex": "none",
58 | "alertText": "* Dátum ez után "
59 | },
60 | "maxCheckbox": {
61 | "regex": "none",
62 | "alertText": "* Maximum ",
63 | "alertText2": " opció lehet bejelölve"
64 | },
65 | "minCheckbox": {
66 | "regex": "none",
67 | "alertText": "* Kérjük válasszon ",
68 | "alertText2": " opciót"
69 | },
70 | "equals": {
71 | "regex": "none",
72 | "alertText": "* A mezők nem egyeznek"
73 | },
74 | "creditCard": {
75 | "regex": "none",
76 | "alertText": "* Érvénytelen kártyaszám"
77 | },
78 | "phone": {
79 | // credit: jquery.h5validate.js / orefalo
80 | "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
81 | "alertText": "* Érvénytelen telefonszám"
82 | },
83 | "email": {
84 | // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 )
85 | "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
86 | "alertText": "* Hibás E-mail cím"
87 | },
88 | "integer": {
89 | "regex": /^[\-\+]?\d+$/,
90 | "alertText": "* Nem érvényes (egész) szám"
91 | },
92 | "number": {
93 | // Number, including positive, negative, and floating decimal. credit: orefalo
94 | "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
95 | "alertText": "* Érvénytelen szám"
96 | },
97 | "date": {
98 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
99 | "alertText": "* Érvénytelen dátum, ÉÉÉÉ-HH-NN formátumban kell megadni"
100 | },
101 | "ipv4": {
102 | "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
103 | "alertText": "* Érvénytelen IP cím"
104 | },
105 | "ip": {
106 | "regex": /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/,
107 | "alertText": "* Érvénytelen IP cím"
108 | },
109 | "url": {
110 | "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
111 | "alertText": "* Érvénytelen URL"
112 | },
113 | "onlyNumberSp": {
114 | "regex": /^[0-9\ ]+$/,
115 | "alertText": "* Csak számokat"
116 | },
117 | "onlyLetterSp": {
118 | "regex": /^[a-zA-Z\ \']+$/,
119 | "alertText": "* Csak betűket"
120 | },
121 | "onlyLetterAccentSp":{
122 | "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
123 | "alertText": "* Csak betűket"
124 | },
125 | "onlyLetterNumber": {
126 | "regex": /^[0-9a-zA-Z]+$/,
127 | "alertText": "* Spéci karakterek nem engedélyezettek"
128 | },
129 | // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
130 | "ajaxUserCall": {
131 | "url": "ajaxValidateFieldUser",
132 | // you may want to pass extra data on the ajax call
133 | "extraData": "name=eric",
134 | "alertText": "* This user is already taken",
135 | "alertTextLoad": "* Validating, please wait"
136 | },
137 | "ajaxUserCallPhp": {
138 | "url": "phpajax/ajaxValidateFieldUser.php",
139 | // you may want to pass extra data on the ajax call
140 | "extraData": "name=eric",
141 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
142 | "alertTextOk": "* This username is available",
143 | "alertText": "* This user is already taken",
144 | "alertTextLoad": "* Validating, please wait"
145 | },
146 | "ajaxNameCall": {
147 | // remote json service location
148 | "url": "ajaxValidateFieldName",
149 | // error
150 | "alertText": "* This name is already taken",
151 | // if you provide an "alertTextOk", it will show as a green prompt when the field validates
152 | "alertTextOk": "* This name is available",
153 | // speaks by itself
154 | "alertTextLoad": "* Validating, please wait"
155 | },
156 | "ajaxNameCallPhp": {
157 | // remote json service location
158 | "url": "phpajax/ajaxValidateFieldName.php",
159 | // error
160 | "alertText": "* This name is already taken",
161 | // speaks by itself
162 | "alertTextLoad": "* Validating, please wait"
163 | },
164 | "validate2fields": {
165 | "alertText": "* Please input HELLO"
166 | },
167 | //tls warning:homegrown not fielded
168 | "dateFormat":{
169 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
170 | "alertText": "* Invalid Date"
171 | },
172 | //tls warning:homegrown not fielded
173 | "dateTimeFormat": {
174 | "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
175 | "alertText": "* Invalid Date or Date Format",
176 | "alertText2": "Expected Format: ",
177 | "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ",
178 | "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
179 | }
180 | };
181 |
182 | }
183 | };
184 |
185 | $.validationEngineLanguage.newLang();
186 |
187 | })(jQuery);
188 |
--------------------------------------------------------------------------------