PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://gitlab.com/Mirros/jsdelivr
JavaScript | 139 lines | 120 code | 4 blank | 15 comment | 0 complexity | 41a935f92e5c938a47e6121d72337668 MD5 | raw file
  1. ;/*****************************************************************
  2. * Japanese language file for jquery.validationEngine.js (ver2.0)
  3. *
  4. * Transrator: tomotomo ( Tomoyuki SUGITA )
  5. * http://tomotomoSnippet.blogspot.com/
  6. * Licenced under the MIT Licence
  7. *******************************************************************/
  8. (function($){
  9. $.fn.validationEngineLanguage = function(){
  10. };
  11. $.validationEngineLanguage = {
  12. newLang: function(){
  13. $.validationEngineLanguage.allRules = {
  14. "required": { // Add your regex rules here, you can take telephone as an example
  15. "regex": "none",
  16. "alertText": "* 必須項目です",
  17. "alertTextCheckboxMultiple": "* 選択してください",
  18. "alertTextCheckboxe": "* チェックボックスをチェックしてください"
  19. },
  20. "minSize": {
  21. "regex": "none",
  22. "alertText": "* ",
  23. "alertText2": "文字以上にしてください"
  24. },
  25. "groupRequired": {
  26. "regex": "none",
  27. "alertText": "* You must fill one of the following fields"
  28. },
  29. "maxSize": {
  30. "regex": "none",
  31. "alertText": "* ",
  32. "alertText2": "文字以下にしてください"
  33. },
  34. "min": {
  35. "regex": "none",
  36. "alertText": "* ",
  37. "alertText2": " 以上の数値にしてください"
  38. },
  39. "max": {
  40. "regex": "none",
  41. "alertText": "* ",
  42. "alertText2": " 以下の数値にしてください"
  43. },
  44. "past": {
  45. "regex": "none",
  46. "alertText": "* ",
  47. "alertText2": " より過去の日付にしてください"
  48. },
  49. "future": {
  50. "regex": "none",
  51. "alertText": "* ",
  52. "alertText2": " より最近の日付にしてください"
  53. },
  54. "maxCheckbox": {
  55. "regex": "none",
  56. "alertText": "* チェックしすぎです"
  57. },
  58. "minCheckbox": {
  59. "regex": "none",
  60. "alertText": "* ",
  61. "alertText2": "つ以上チェックしてください"
  62. },
  63. "equals": {
  64. "regex": "none",
  65. "alertText": "* 入力された値が一致しません"
  66. },
  67. "phone": {
  68. // credit: jquery.h5validate.js / orefalo
  69. "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
  70. "alertText": "* 電話番号が正しくありません"
  71. },
  72. "email": {
  73. // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
  74. "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,
  75. "alertText": "* メールアドレスが正しくありません"
  76. },
  77. "integer": {
  78. "regex": /^[\-\+]?\d+$/,
  79. "alertText": "* 整数を半角で入力してください"
  80. },
  81. "number": {
  82. // Number, including positive, negative, and floating decimal. credit: orefalo
  83. "regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
  84. "alertText": "* 数値を半角で入力してください"
  85. },
  86. "date": {
  87. "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
  88. "alertText": "* 日付は半角で YYYY-MM-DD の形式で入力してください"
  89. },
  90. "ipv4": {
  91. "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]))$/,
  92. "alertText": "* IPアドレスが正しくありません"
  93. },
  94. "url": {
  95. "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,
  96. "alertText": "* URLが正しくありません"
  97. },
  98. "onlyNumberSp": {
  99. "regex": /^[0-9\ ]+$/,
  100. "alertText": "* 半角数字で入力してください"
  101. },
  102. "onlyLetterSp": {
  103. "regex": /^[a-zA-Z\ \']+$/,
  104. "alertText": "* 半角アルファベットで入力してください"
  105. },
  106. "onlyLetterNumber": {
  107. "regex": /^[0-9a-zA-Z]+$/,
  108. "alertText": "* 半角英数で入力してください"
  109. },
  110. // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
  111. "ajaxUserCall": {
  112. "url": "ajaxValidateFieldUser",
  113. // you may want to pass extra data on the ajax call
  114. "extraData": "name=eric",
  115. "alertText": "* This user is already taken",
  116. "alertTextLoad": "* Validating, please wait"
  117. },
  118. "ajaxNameCall": {
  119. // remote json service location
  120. "url": "ajaxValidateFieldName",
  121. // error
  122. "alertText": "* This name is already taken",
  123. // if you provide an "alertTextOk", it will show as a green prompt when the field validates
  124. "alertTextOk": "* This name is available",
  125. // speaks by itself
  126. "alertTextLoad": "* Validating, please wait"
  127. },
  128. "validate2fields": {
  129. "alertText": "* 『HELLO』と入力してください"
  130. }
  131. };
  132. }
  133. };
  134. $.validationEngineLanguage.newLang();
  135. })(jQuery);