PageRenderTime 27ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://gitlab.com/Mirros/jsdelivr
JavaScript | 134 lines | 119 code | 5 blank | 10 comment | 0 complexity | 7dc804cd745731a9a332709d1b742dae 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. "creditCard": {
  57. "regex": "none",
  58. "alertText": "* Ungültige Kreditkartennummer"
  59. },
  60. "phone": {
  61. // credit: jquery.h5validate.js / orefalo
  62. "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
  63. "alertText": "* Ungültige Telefonnummer"
  64. },
  65. "email": {
  66. // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
  67. "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,
  68. "alertText": "* Ungültige E-Mail Adresse"
  69. },
  70. "integer": {
  71. "regex": /^[\-\+]?\d+$/,
  72. "alertText": "* Keine gültige Ganzzahl"
  73. },
  74. "number": {
  75. // Number, including positive, negative, and floating decimal. credit: orefalo
  76. "regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
  77. "alertText": "* Keine gültige Fließkommazahl"
  78. },
  79. "date": {
  80. // Date in ISO format. Credit: bassistance
  81. "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
  82. "alertText": "* Ungültiges Datumsformat, erwartet wird das Format JJJJ-MM-TT"
  83. },
  84. "ipv4": {
  85. "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]))$/,
  86. "alertText": "* Ungültige IP Adresse"
  87. },
  88. "url": {
  89. "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,
  90. "alertText": "* Ungültige URL"
  91. },
  92. "onlyLetterSp": {
  93. "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
  94. "alertText": "* Nur Buchstaben erlaubt"
  95. },
  96. "onlyLetterNumber": {
  97. "regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
  98. "alertText": "* Keine Sonderzeichen erlaubt"
  99. },
  100. "onlyLetterNumber": {
  101. "regex": /^[0-9a-zA-Z]+$/,
  102. "alertText": "* Keine Sonderzeichen erlaubt"
  103. },
  104. // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
  105. "ajaxUserCall": {
  106. "url": "ajaxValidateFieldUser",
  107. // you may want to pass extra data on the ajax call
  108. "extraData": "name=eric",
  109. "alertText": "* Dieser Benutzer ist bereits vergeben",
  110. "alertTextLoad": "* Überprüfe Angaben, bitte warten"
  111. },
  112. "ajaxNameCall": {
  113. // remote json service location
  114. "url": "ajaxValidateFieldName",
  115. // error
  116. "alertText": "* Dieser Name ist bereits vergeben",
  117. // if you provide an "alertTextOk", it will show as a green prompt when the field validates
  118. "alertTextOk": "* Dieser Name ist verfügbar",
  119. // speaks by itself
  120. "alertTextLoad": "* Überprüfe Angaben, bitte warten"
  121. },
  122. "validate2fields": {
  123. "alertText": "* Bitte HELLO eingeben"
  124. }
  125. };
  126. }
  127. };
  128. $.validationEngineLanguage.newLang();
  129. })(jQuery);