Skip to content

Removed tabs and proper formating #868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions js/languages/jquery.validationEngine-ca.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@

(function($){
$.fn.validationEngineLanguage = function(){
};
(function($) {
$.fn.validationEngineLanguage = function() {};
$.validationEngineLanguage = {
newLang: function(){
newLang: function() {
$.validationEngineLanguage.allRules = {
"required": { // Add your regex rules here, you can take telephone as an example
"regex": "none",
"alertText": "* Aquest camp és obligatory",
"alertTextCheckboxMultiple": "* Si us plau seleccioni una opció",
"alertTextCheckboxe": "* Aquest checkbox és obligatori"
},
"requiredInFunction": {
"func": function(field, rules, i, options){
"requiredInFunction": {
"func": function(field, rules, i, options) {
return (field.val() == "test") ? true : false;
},
"alertText": "* El contingut del camp ha de ser igual a test"
Expand All @@ -22,7 +20,7 @@
"alertText": "* Mínimo de ",
"alertText2": " caràcters autoritzats"
},
"groupRequired": {
"groupRequired": {
"regex": "none",
"alertText": "* Deu omplir almenys un dels següents camps"
},
Expand All @@ -31,22 +29,22 @@
"alertText": "* Màxim de ",
"alertText2": " caràcters autoritzats"
},
"min": {
"min": {
"regex": "none",
"alertText": "* El valor mínim és "
},
"max": {
"regex": "none",
"alertText": "* El valor màxim és "
},
"past": {
"past": {
"regex": "none",
"alertText": "* Data anterior a "
},
"future": {
"regex": "none",
"alertText": "* Data posterior a "
},
},
"maxCheckbox": {
"regex": "none",
"alertText": "* S'ha excedit número d'opcions permeses"
Expand Down Expand Up @@ -88,7 +86,7 @@
"alertText": "* Data invàlida, si us play uilitzi el format DD/MM/AAAA"
},
"ipv4": {
"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]))$/,
"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]))$/,
"alertText": "* Adreça IP invàlida"
},
"url": {
Expand All @@ -99,43 +97,46 @@
"regex": /^[0-9\ ]+$/,
"alertText": "* Només números"
},
"onlyLetterSp": {
"onlyLetterSp": {
"regex": /^[a-zA-Z\ \']+$/,
"alertText": "* Només lletres"
},
"onlyLetterAccentSp":{
"onlyLetterAccentSp": {
"regex": /^[a-z\u00C0-\u017F\ ]+$/i,
"alertText": "* Només lletres"
},
"onlyLetterNumber": {
"regex": /^[0-9a-zA-Z]+$/,
"alertText": "* No es permeten caràcters especials"
},
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
"ajaxUserCall": {
"url": "ajaxValidateFieldUser",
// you may want to pass extra data on the ajax call
// you may want to pass extra data on the ajax call
"extraData": "name=eric",
"alertTextLoad": "* Carregant, esperi si us plau",
"alertText": "* Aquest nom d'usuari ja es troba en ús"
},
"ajaxNameCall": {
// remote json service location
// remote json service location
"url": "ajaxValidateFieldName",
// error
// error
"alertText": "* Aquest nom d'usuari ja es troba en ús",
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
"alertTextOk": "* Aquest nom est à disponible",
// speaks by itself
// speaks by itself
"alertTextLoad": "* Carregant, esperi si us plau"
},
"validate2fields": {
"alertText": "* Si us plau, introduir HELLO"
},
"hexcolor": {
"regex": /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,
"alertText": "* Invalid color"
}
};

}
};
$.validationEngineLanguage.newLang();
})(jQuery);

23 changes: 13 additions & 10 deletions js/languages/jquery.validationEngine-cz.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
(function($){
$.fn.validationEngineLanguage = function(){
};
(function($) {
$.fn.validationEngineLanguage = function() {};
$.validationEngineLanguage = {
newLang: function(){
newLang: function() {
$.validationEngineLanguage.allRules = {
"required": { // Add your regex rules here, you can take telephone as an example
"regex": "none",
"alertText": "* Tato položka je povinná",
"alertTextCheckboxMultiple": "* Prosím vyberte jednu možnost",
"alertTextCheckboxe": "* Tato položka je povinná"
},
"requiredInFunction": {
"func": function(field, rules, i, options){
"requiredInFunction": {
"func": function(field, rules, i, options) {
return (field.val() == "test") ? true : false;
},
"alertText": "* Pole se musí rovnat test"
Expand All @@ -26,7 +25,7 @@
"alertText": "* Maximálně ",
"alertText2": " znaky"
},
"groupRequired": {
"groupRequired": {
"regex": "none",
"alertText": "* Musíte zadat jedno z nasledujících polí"
},
Expand All @@ -45,7 +44,7 @@
"future": {
"regex": "none",
"alertText": "* Datum po "
},
},
"maxCheckbox": {
"regex": "none",
"alertText": "* Počet vybraných položek přesáhl limit"
Expand Down Expand Up @@ -123,7 +122,7 @@
"regex": /^[a-zA-Z\ \']+$/,
"alertText": "* Pouze písmena"
},
"onlyLetterAccentSp":{
"onlyLetterAccentSp": {
"regex": /^[a-z\u00C0-\u017F\ ]+$/i,
"alertText": "* Pouze písmena"
},
Expand Down Expand Up @@ -151,9 +150,13 @@
},
"validate2fields": {
"alertText": "* Prosím napište HELLO"
},
"hexcolor": {
"regex": /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,
"alertText": "* Invalid color"
}
};

}
};
$.validationEngineLanguage.newLang();
Expand Down
25 changes: 14 additions & 11 deletions js/languages/jquery.validationEngine-da.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
(function($){
$.fn.validationEngineLanguage = function(){
};
(function($) {
$.fn.validationEngineLanguage = function() {};
$.validationEngineLanguage = {
newLang: function(){
newLang: function() {
$.validationEngineLanguage.allRules = {
"required": { // Add your regex rules here, you can take telephone as an example
"regex": "none",
"alertText": "* Dette felt skal udfyldes",
"alertTextCheckboxMultiple": "* Vælg venligst en af mulighederne",
"alertTextCheckboxe": "* Dette felt er påkrævet"
},
"requiredInFunction": {
"func": function(field, rules, i, options){
"requiredInFunction": {
"func": function(field, rules, i, options) {
return (field.val() == "test") ? true : false;
},
"alertText": "* Indholdet af feltet skal være lig med test"
Expand All @@ -26,7 +25,7 @@
"alertText": "* Maksimum ",
"alertText2": " tegn tilladt"
},
"groupRequired": {
"groupRequired": {
"regex": "none",
"alertText": "* Du skal udfylde mindst et af følgende felter"
},
Expand All @@ -45,7 +44,7 @@
"future": {
"regex": "none",
"alertText": "* Datoen skal være efter "
},
},
"maxCheckbox": {
"regex": "none",
"alertText": "* Antallet af tilladte valg er overskredet"
Expand Down Expand Up @@ -87,7 +86,7 @@
"alertText": "* Ugyldig dato, skal være i formatet ÅÅÅÅ-MM-DD"
},
"ipv4": {
"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]))$/,
"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]))$/,
"alertText": "* Ugyldig IP adresse"
},
"url": {
Expand All @@ -102,7 +101,7 @@
"regex": /^[a-zA-Z\ \']+$/,
"alertText": "* Kun bogstaver"
},
"onlyLetterAccentSp":{
"onlyLetterAccentSp": {
"regex": /^[a-z\u00C0-\u017F\ ]+$/i,
"alertText": "* Kun bogstaver"
},
Expand Down Expand Up @@ -130,9 +129,13 @@
},
"validate2fields": {
"alertText": "* Indsæt venligst HELLO"
},
"hexcolor": {
"regex": /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,
"alertText": "* Invalid color"
}
};

}
};
$.validationEngineLanguage.newLang();
Expand Down
42 changes: 21 additions & 21 deletions js/languages/jquery.validationEngine-de.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
(function($){
$.fn.validationEngineLanguage = function(){
};
(function($) {
$.fn.validationEngineLanguage = function() {};
$.validationEngineLanguage = {
newLang: function(){
newLang: function() {
$.validationEngineLanguage.allRules = {
"required": { // Add your regex rules here, you can take telephone as an example
"regex": "none",
"alertText": "* Dieses Feld ist ein Pflichtfeld",
"alertTextCheckboxMultiple": "* Bitte wählen Sie eine Option",
"alertTextCheckboxe": "* Dieses Feld ist ein Pflichtfeld"
},
"requiredInFunction": {
"func": function(field, rules, i, options){
"requiredInFunction": {
"func": function(field, rules, i, options) {
return (field.val() == "test") ? true : false;
},
"alertText": "* Field must equal test"
Expand All @@ -26,7 +25,7 @@
"alertText": "* Maximal ",
"alertText2": " Zeichen erlaubt"
},
"groupRequired": {
"groupRequired": {
"regex": "none",
"alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen"
},
Expand All @@ -45,7 +44,7 @@
"future": {
"regex": "none",
"alertText": "* Datum nach "
},
},
"maxCheckbox": {
"regex": "none",
"alertText": "* Maximale Anzahl Markierungen überschritten"
Expand Down Expand Up @@ -88,25 +87,25 @@
"alertText": "* Ungültiges Datumsformat, erwartet wird das Format JJJJ-MM-TT"
},
"ipv4": {
"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]))$/,
"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]))$/,
"alertText": "* Ungültige IP-Adresse"
},
"url": {
"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,
"alertText": "* Ungültige URL"
},
"onlyLetterSp": {
"regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
"alertText": "* Nur Buchstaben erlaubt"
"regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
"alertText": "* Nur Buchstaben erlaubt"
},
"onlyLetterAccentSp":{
"onlyLetterAccentSp": {
"regex": /^[a-zß\u00C0-\u017F\ ]+$/i,
"alertText": "* Nur Buchstaben erlaubt"
"alertText": "* Nur Buchstaben erlaubt"
},
"onlyLetterNumber": {
"regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
"alertText": "* Keine Sonderzeichen erlaubt"
},
"onlyLetterNumber": {
"regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
"alertText": "* Keine Sonderzeichen erlaubt"
},
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
"ajaxUserCall": {
"url": "ajaxValidateFieldUser",
Expand All @@ -127,13 +126,14 @@
},
"validate2fields": {
"alertText": "* Bitte HELLO eingeben"
},
"hexcolor": {
"regex": /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,
"alertText": "* Invalid color"
}
};

}
};
$.validationEngineLanguage.newLang();
})(jQuery);



Loading