validation.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | as the size rules. Feel free to tweak each of these messages.
  11. |
  12. */
  13. 'accepted' => ':attributeを承認してください。',
  14. 'active_url' => ':attributeは、有効なURLではありません。',
  15. 'after' => ':attributeには、:dateより後の日付を指定してください。',
  16. 'after_or_equal' => ':attributeには、:date以降の日付を指定してください。',
  17. 'alpha' => ':attributeには、アルファベッドのみ使用できます。',
  18. 'alpha_dash' => ":attributeには、英数字('A-Z','a-z','0-9')とハイフンと下線('-','_')が使用できます。",
  19. 'alpha_num' => ":attributeには、英数字('A-Z','a-z','0-9')が使用できます。",
  20. 'array' => ':attributeには、配列を指定してください。',
  21. 'before' => ':attributeには、:dateより前の日付を指定してください。',
  22. 'before_or_equal' => ':attributeには、:date以前の日付を指定してください。',
  23. 'between' => [
  24. 'numeric' => ':attributeには、:minから、:maxまでの数字を指定してください。',
  25. 'file' => ':attributeには、:min KBから:max KBまでのサイズのファイルを指定してください。',
  26. 'string' => ':attributeは、:min文字から:max文字にしてください。',
  27. 'array' => ':attributeの項目は、:min個から:max個にしてください。',
  28. ],
  29. 'boolean' => ":attributeには、'true'か'false'を指定してください。",
  30. 'confirmed' => ':attributeと:attribute確認が一致しません。',
  31. 'date' => ':attributeは、正しい日付ではありません。',
  32. 'date_equals' => ':attributeは:dateに等しい日付でなければなりません。',
  33. 'date_format' => ":attributeの形式は、':format'と合いません。",
  34. 'different' => ':attributeと:otherには、異なるものを指定してください。',
  35. 'digits' => ':attributeは、:digits桁にしてください。',
  36. 'digits_between' => ':attributeは、:min桁から:max桁にしてください。',
  37. 'dimensions' => ':attributeの画像サイズが無効です',
  38. 'distinct' => ':attributeの値が重複しています。',
  39. 'email' => ':attributeは、有効なメールアドレス形式で指定してください。',
  40. 'ends_with' => ':attributeは、次のうちのいずれかで終わらなければなりません。: :values',
  41. 'exists' => '選択された:attributeは、有効ではありません。',
  42. 'file' => ':attributeはファイルでなければいけません。',
  43. 'filled' => ':attributeは必須です。',
  44. 'gt' => [
  45. 'numeric' => ':attributeは、:valueより大きくなければなりません。',
  46. 'file' => ':attributeは、:value KBより大きくなければなりません。',
  47. 'string' => ':attributeは、:value文字より大きくなければなりません。',
  48. 'array' => ':attributeの項目数は、:value個より大きくなければなりません。',
  49. ],
  50. 'gte' => [
  51. 'numeric' => ':attributeは、:value以上でなければなりません。',
  52. 'file' => ':attributeは、:value KB以上でなければなりません。',
  53. 'string' => ':attributeは、:value文字以上でなければなりません。',
  54. 'array' => ':attributeの項目数は、:value個以上でなければなりません。',
  55. ],
  56. 'image' => ':attributeには、画像を指定してください。',
  57. 'in' => '選択された:attributeは、有効ではありません。',
  58. 'in_array' => ':attributeが:otherに存在しません。',
  59. 'integer' => ':attributeには、整数を指定してください。',
  60. 'ip' => ':attributeには、有効なIPアドレスを指定してください。',
  61. 'ipv4' => ':attributeはIPv4アドレスを指定してください。',
  62. 'ipv6' => ':attributeはIPv6アドレスを指定してください。',
  63. 'json' => ':attributeには、有効なJSON文字列を指定してください。',
  64. 'lt' => [
  65. 'numeric' => ':attributeは、:valueより小さくなければなりません。',
  66. 'file' => ':attributeは、:value KBより小さくなければなりません。',
  67. 'string' => ':attributeは、:value文字より小さくなければなりません。',
  68. 'array' => ':attributeの項目数は、:value個より小さくなければなりません。',
  69. ],
  70. 'lte' => [
  71. 'numeric' => ':attributeは、:value以下でなければなりません。',
  72. 'file' => ':attributeは、:value KB以下でなければなりません。',
  73. 'string' => ':attributeは、:value文字以下でなければなりません。',
  74. 'array' => ':attributeの項目数は、:value個以下でなければなりません。',
  75. ],
  76. 'max' => [
  77. 'numeric' => ':attributeには、:max以下の数字を指定してください。',
  78. 'file' => ':attributeには、:max KB以下のファイルを指定してください。',
  79. 'string' => ':attributeは、:max文字以下にしてください。',
  80. 'array' => ':attributeの項目は、:max個以下にしてください。',
  81. ],
  82. 'mimes' => ':attributeには、:valuesタイプのファイルを指定してください。',
  83. 'mimetypes' => ':attributeには、:valuesタイプのファイルを指定してください。',
  84. 'min' => [
  85. 'numeric' => ':attributeには、:min以上の数字を指定してください。',
  86. 'file' => ':attributeには、:min KB以上のファイルを指定してください。',
  87. 'string' => ':attributeは、:min文字以上にしてください。',
  88. 'array' => ':attributeの項目は、:min個以上にしてください。',
  89. ],
  90. 'not_in' => '選択された:attributeは、有効ではありません。',
  91. 'not_regex' => ':attributeの形式が無効です。',
  92. 'numeric' => ':attributeには、数字を指定してください。',
  93. 'password' => 'パスワードが正しくありません。',
  94. 'present' => ':attributeが存在している必要があります。',
  95. 'regex' => ':attributeには、有効な正規表現を指定してください。',
  96. 'required' => ':attributeは、必ず指定してください。',
  97. 'required_if' => ':otherが:valueの場合、:attributeを指定してください。',
  98. 'required_unless' => ':otherが:values以外の場合、:attributeを指定してください。',
  99. 'required_with' => ':valuesが指定されている場合、:attributeも指定してください。',
  100. 'required_with_all' => ':valuesが全て指定されている場合、:attributeも指定してください。',
  101. 'required_without' => ':valuesが指定されていない場合、:attributeを指定してください。',
  102. 'required_without_all' => ':valuesが全て指定されていない場合、:attributeを指定してください。',
  103. 'same' => ':attributeと:otherが一致しません。',
  104. 'size' => [
  105. 'numeric' => ':attributeには、:sizeを指定してください。',
  106. 'file' => ':attributeには、:size KBのファイルを指定してください。',
  107. 'string' => ':attributeは、:size文字にしてください。',
  108. 'array' => ':attributeの項目は、:size個にしてください。',
  109. ],
  110. 'starts_with' => ':attributeは、次のいずれかで始まる必要があります。:values',
  111. 'string' => ':attributeには、文字を指定してください。',
  112. 'timezone' => ':attributeには、有効なタイムゾーンを指定してください。',
  113. 'unique' => '指定の:attributeは既に使用されています。',
  114. 'uploaded' => ':attributeのアップロードに失敗しました。',
  115. 'url' => ':attributeは、有効なURL形式で指定してください。',
  116. 'uuid' => ':attributeは、有効なUUIDでなければなりません。',
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Custom Validation Language Lines
  120. |--------------------------------------------------------------------------
  121. |
  122. | Here you may specify custom validation messages for attributes using the
  123. | convention "attribute.rule" to name the lines. This makes it quick to
  124. | specify a specific custom language line for a given attribute rule.
  125. |
  126. */
  127. 'custom' => [
  128. 'attribute-name' => [
  129. 'rule-name' => 'custom-message',
  130. ],
  131. ],
  132. /*
  133. |--------------------------------------------------------------------------
  134. | Custom Validation Attributes
  135. |--------------------------------------------------------------------------
  136. |
  137. | The following language lines are used to swap attribute place-holders
  138. | with something more reader friendly such as E-Mail Address instead
  139. | of "email". This simply helps us make messages a little cleaner.
  140. |
  141. */
  142. 'attributes' => [],
  143. ];