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

/files/validation.engine/2.5.5.1/languages/jquery.validationEngine-tr.js

https://gitlab.com/Mirros/jsdelivr
JavaScript | 156 lines | 140 code | 2 blank | 14 comment | 1 complexity | 9bc818b62d57647ca88583ed810da3c8 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": "* 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. "maxCheckbox": {
  52. "regex": "none",
  53. "alertText": "* En fazla ",
  54. "alertText2": " onay kutusu işaretleyebilirsiniz"
  55. },
  56. "minCheckbox": {
  57. "regex": "none",
  58. "alertText": "* Lütfen en az ",
  59. "alertText2": " onay kutusunu işaretleyiniz"
  60. },
  61. "equals": {
  62. "regex": "none",
  63. "alertText": "* Değerler aynı olmalı"
  64. },
  65. "creditCard": {
  66. "regex": "none",
  67. "alertText": "* Geçersiz kredi kartı numarası"
  68. },
  69. "phone": {
  70. // credit: jquery.h5validate.js / orefalo
  71. "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
  72. "alertText": "* Geçersiz telefon numarası"
  73. },
  74. "email": {
  75. // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
  76. "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,
  77. "alertText": "* Geçersiz eposta adresi"
  78. },
  79. "integer": {
  80. "regex": /^[\-\+]?\d+$/,
  81. "alertText": "* Geçerli bir tam sayı değil"
  82. },
  83. "number": {
  84. // Number, including positive, negative, and floating decimal. credit: orefalo
  85. "regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
  86. "alertText": "* Geçerli bir noktalı sayı değil"
  87. },
  88. "date": {
  89. "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
  90. "alertText": "* Geçersiz tarih. Tarih YYYY-MM-DD formatında olmalı"
  91. },
  92. "ipv4": {
  93. "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]))$/,
  94. "alertText": "* Geçersiz IP adresi"
  95. },
  96. "url": {
  97. "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,
  98. "alertText": "* Geçersiz URL"
  99. },
  100. "onlyNumberSp": {
  101. "regex": /^[0-9\ ]+$/,
  102. "alertText": "* Bu alanda sadece rakam olmalı"
  103. },
  104. "onlyLetterSp": {
  105. "regex": /^[a-zA-Z\ \']+$/,
  106. "alertText": "* Bu alanda sadece harf olmalı"
  107. },
  108. "onlyLetterNumber": {
  109. "regex": /^[0-9a-zA-Z]+$/,
  110. "alertText": "* Bu alanda özel karakterler olamaz"
  111. },
  112. // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
  113. "ajaxUserCall": {
  114. "url": "ajaxValidateFieldUser",
  115. // you may want to pass extra data on the ajax call
  116. "extraData": "name=eric",
  117. "alertText": "* Bu kullanıcı adı kullanımda",
  118. "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
  119. },
  120. "ajaxUserCallPhp": {
  121. "url": "phpajax/ajaxValidateFieldUser.php",
  122. // you may want to pass extra data on the ajax call
  123. "extraData": "name=eric",
  124. // if you provide an "alertTextOk", it will show as a green prompt when the field validates
  125. "alertTextOk": "* Bu kullanıcı adını kullanabilirsiniz",
  126. "alertText": "* Bu kullanıcı adı kullanımda",
  127. "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
  128. },
  129. "ajaxNameCall": {
  130. // remote json service location
  131. "url": "ajaxValidateFieldName",
  132. // error
  133. "alertText": "* Bu isim kullanımda",
  134. // if you provide an "alertTextOk", it will show as a green prompt when the field validates
  135. "alertTextOk": "* Bu isim kullanılabilir",
  136. // speaks by itself
  137. "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
  138. },
  139. "ajaxNameCallPhp": {
  140. // remote json service location
  141. "url": "phpajax/ajaxValidateFieldName.php",
  142. // error
  143. "alertText": "* Bu isim kullanımda",
  144. // speaks by itself
  145. "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
  146. },
  147. "validate2fields": {
  148. "alertText": "* Lütfen 'HELLO' yazın"
  149. }
  150. };
  151. }
  152. };
  153. $.validationEngineLanguage.newLang();
  154. })(jQuery);