PageRenderTime 126ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/files/validation.engine/2.2.4/languages/jquery.validationEngine-de.js

https://gitlab.com/Mirros/jsdelivr
JavaScript | 130 lines | 115 code | 5 blank | 10 comment | 0 complexity | 4eba5339b82b8ef55862f2e60fb3c04b MD5 | raw file
  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. "minSize": {
  14. "regex": "none",
  15. "alertText": "* Mindestens ",
  16. "alertText2": " Zeichen benötigt"
  17. },
  18. "maxSize": {
  19. "regex": "none",
  20. "alertText": "* Maximal ",
  21. "alertText2": " Zeichen erlaubt"
  22. },
  23. "groupRequired": {
  24. "regex": "none",
  25. "alertText": "* You must fill one of the following fields"
  26. },
  27. "min": {
  28. "regex": "none",
  29. "alertText": "* Mindeswert ist "
  30. },
  31. "max": {
  32. "regex": "none",
  33. "alertText": "* Maximalwert ist "
  34. },
  35. "past": {
  36. "regex": "none",
  37. "alertText": "* Datum vor "
  38. },
  39. "future": {
  40. "regex": "none",
  41. "alertText": "* Datum nach "
  42. },
  43. "maxCheckbox": {
  44. "regex": "none",
  45. "alertText": "* Maximale Anzahl Markierungen überschritten"
  46. },
  47. "minCheckbox": {
  48. "regex": "none",
  49. "alertText": "* Bitte wählen Sie ",
  50. "alertText2": " Optionen"
  51. },
  52. "equals": {
  53. "regex": "none",
  54. "alertText": "* Felder stimmen nicht überein"
  55. },
  56. "phone": {
  57. // credit: jquery.h5validate.js / orefalo
  58. "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
  59. "alertText": "* Ungültige Telefonnummer"
  60. },
  61. "email": {
  62. // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
  63. "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,
  64. "alertText": "* Ungültige E-Mail Adresse"
  65. },
  66. "integer": {
  67. "regex": /^[\-\+]?\d+$/,
  68. "alertText": "* Keine gültige Ganzzahl"
  69. },
  70. "number": {
  71. // Number, including positive, negative, and floating decimal. credit: orefalo
  72. "regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
  73. "alertText": "* Keine gültige Fließkommazahl"
  74. },
  75. "date": {
  76. // Date in ISO format. Credit: bassistance
  77. "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
  78. "alertText": "* Ungültiges Datumsformat, erwartet wird das Format JJJJ-MM-TT"
  79. },
  80. "ipv4": {
  81. "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]))$/,
  82. "alertText": "* Ungültige IP Adresse"
  83. },
  84. "url": {
  85. "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,
  86. "alertText": "* Ungültige URL"
  87. },
  88. "onlyLetterSp": {
  89. "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
  90. "alertText": "* Nur Buchstaben erlaubt"
  91. },
  92. "onlyLetterNumber": {
  93. "regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
  94. "alertText": "* Keine Sonderzeichen erlaubt"
  95. },
  96. "onlyLetterNumber": {
  97. "regex": /^[0-9a-zA-Z]+$/,
  98. "alertText": "* Keine Sonderzeichen erlaubt"
  99. },
  100. // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
  101. "ajaxUserCall": {
  102. "url": "ajaxValidateFieldUser",
  103. // you may want to pass extra data on the ajax call
  104. "extraData": "name=eric",
  105. "alertText": "* Dieser Benutzer ist bereits vergeben",
  106. "alertTextLoad": "* Überprüfe Angaben, bitte warten"
  107. },
  108. "ajaxNameCall": {
  109. // remote json service location
  110. "url": "ajaxValidateFieldName",
  111. // error
  112. "alertText": "* Dieser Name ist bereits vergeben",
  113. // if you provide an "alertTextOk", it will show as a green prompt when the field validates
  114. "alertTextOk": "* Dieser Name ist verfügbar",
  115. // speaks by itself
  116. "alertTextLoad": "* Überprüfe Angaben, bitte warten"
  117. },
  118. "validate2fields": {
  119. "alertText": "* Bitte HELLO eingeben"
  120. }
  121. };
  122. }
  123. };
  124. $.validationEngineLanguage.newLang();
  125. })(jQuery);