[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
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}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[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 "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": "* Geçersiz URL" 100 }, 101 "onlyNumberSp": { 102 "regex": /^[0-9\ ]+$/, 103 "alertText": "* Bu alanda sadece rakam olmalı" 104 }, 105 "onlyLetterSp": { 106 "regex": /^[a-zA-Z\ \']+$/, 107 "alertText": "* Bu alanda sadece harf olmalı" 108 }, 109 "onlyLetterNumber": { 110 "regex": /^[0-9a-zA-Z]+$/, 111 "alertText": "* Bu alanda özel karakterler olamaz" 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": "* Bu kullanıcı adı kullanımda", 119 "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz" 120 }, 121 "ajaxUserCallPhp": { 122 "url": "phpajax/ajaxValidateFieldUser.php", 123 // you may want to pass extra data on the ajax call 124 "extraData": "name=eric", 125 // if you provide an "alertTextOk", it will show as a green prompt when the field validates 126 "alertTextOk": "* Bu kullanıcı adını kullanabilirsiniz", 127 "alertText": "* Bu kullanıcı adı kullanımda", 128 "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz" 129 }, 130 "ajaxNameCall": { 131 // remote json service location 132 "url": "ajaxValidateFieldName", 133 // error 134 "alertText": "* Bu isim kullanımda", 135 // if you provide an "alertTextOk", it will show as a green prompt when the field validates 136 "alertTextOk": "* Bu isim kullanılabilir", 137 // speaks by itself 138 "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz" 139 }, 140 "ajaxNameCallPhp": { 141 // remote json service location 142 "url": "phpajax/ajaxValidateFieldName.php", 143 // error 144 "alertText": "* Bu isim kullanımda", 145 // speaks by itself 146 "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz" 147 }, 148 "validate2fields": { 149 "alertText": "* Lütfen 'HELLO' yazın" 150 } 151 }; 152 153 } 154 }; 155 $.validationEngineLanguage.newLang(); 156 })(jQuery);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |