validation.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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 here.
  11. |
  12. */
  13. 'accepted' => ':attributeの承認が必要です。',
  14. 'accepted_if' => ':otherが:valueの場合、:attributeの承認が必要です。',
  15. 'active_url' => ':attributeは有効なURLである必要があります。',
  16. 'after' => ':attributeは:dateの後の日付でなければなりません。',
  17. 'after_or_equal' => ':attributeは:date以降または同じ日付である必要があります。',
  18. 'alpha' => ':attributeはアルファベットのみを含む必要があります。',
  19. 'alpha_dash' => ':attributeは文字、数字、ダッシュ、アンダースコアのみを含む必要があります。',
  20. 'alpha_num' => ':attributeは文字と数字のみを含む必要があります。',
  21. 'array' => ':attributeは配列である必要があります。',
  22. 'ascii' => ':attributeは半角英数字と記号のみを含む必要があります。',
  23. 'before' => ':attributeは:dateの前の日付でなければなりません。',
  24. 'before_or_equal' => ':attributeは:date以前または同じ日付である必要があります。',
  25. 'between' => [
  26. 'array' => ':attributeは:minから:maxの間のアイテムを持つ必要があります。',
  27. 'file' => ':attributeは:minから:maxキロバイトの間である必要があります。',
  28. 'numeric' => ':attributeは:minから:maxの間である必要があります。',
  29. 'string' => ':attributeは:minから:max文字の間である必要があります。',
  30. ],
  31. 'boolean' => ':attributeはtrueまたはfalseである必要があります。',
  32. 'can' => ':attributeには認可されていない値が含まれています。',
  33. 'confirmed' => ':attributeの確認が一致しません。',
  34. 'current_password' => 'パスワードが間違っています。',
  35. 'date' => ':attributeは有効な日付である必要があります。',
  36. 'date_equals' => ':attributeは:dateと等しい日付である必要があります。',
  37. 'date_format' => ':attributeは:formatという形式と一致する必要があります。',
  38. 'decimal' => ':attributeは小数点以下:decimal桁である必要があります。',
  39. 'declined' => ':attributeは拒否される必要があります。',
  40. 'declined_if' => ':otherが:valueの場合、:attributeは拒否される必要があります。',
  41. 'different' => ':attributeと:otherは異なる必要があります。',
  42. 'digits' => ':attributeは:digits桁である必要があります。',
  43. 'digits_between' => ':attributeは:minから:max桁の間である必要があります。',
  44. 'dimensions' => ':attributeの画像サイズが無効です。',
  45. 'distinct' => ':attributeは重複した値を持っています。',
  46. 'doesnt_end_with' => ':attributeは以下のいずれかで終わってはいけません: :values。',
  47. 'doesnt_start_with' => ':attributeは以下のいずれかで始まってはいけません: :values。',
  48. 'email' => ':attributeは有効なメールアドレスである必要があります。',
  49. 'ends_with' => ':attributeは以下のいずれかで終わる必要があります: :values。',
  50. 'enum' => '選択された:attributeが無効です。',
  51. 'exists' => '選択された:attributeが無効です。',
  52. 'extensions' => ':attributeは以下の拡張子のいずれかを持っている必要があります: :values。',
  53. 'file' => ':attributeはファイルである必要があります。',
  54. 'filled' => ':attributeは値を持っている必要があります。',
  55. 'gt' => [
  56. 'array' => ':attributeは:value個より多くのアイテムを持つ必要があります。',
  57. 'file' => ':attributeは:valueキロバイトより大きい必要があります。',
  58. 'numeric' => ':attributeは:valueより大きい必要があります。',
  59. 'string' => ':attributeは:value文字より大きい必要があります。',
  60. ],
  61. 'gte' => [
  62. 'array' => ':attributeは:value個以上のアイテムを持つ必要があります。',
  63. 'file' => ':attributeは:valueキロバイト以上である必要があります。',
  64. 'numeric' => ':attributeは:value以上である必要があります。',
  65. 'string' => ':attributeは:value文字以上である必要があります。',
  66. ],
  67. 'hex_color' => ':attributeは有効な16進カラーである必要があります。',
  68. 'image' => ':attributeは画像である必要があります。',
  69. 'in' => '選択された:attributeは無効です。',
  70. 'in_array' => ':attributeは:other内に存在する必要があります。',
  71. 'integer' => ':attributeは整数である必要があります。',
  72. 'ip' => ':attributeは有効なIPアドレスである必要があります。',
  73. 'ipv4' => ':attributeは有効なIPv4アドレスである必要があります。',
  74. 'ipv6' => ':attributeは有効なIPv6アドレスである必要があります。',
  75. 'json' => ':attributeは有効なJSON文字列である必要があります。',
  76. 'lowercase' => ':attributeはすべて小文字である必要があります。',
  77. 'lt' => [
  78. 'array' => ':attributeは:value個より少ないアイテムを持つ必要があります。',
  79. 'file' => ':attributeは:valueキロバイトより小さい必要があります。',
  80. 'numeric' => ':attributeは:valueより小さい必要があります。',
  81. 'string' => ':attributeは:value文字より小さい必要があります。',
  82. ],
  83. 'lte' => [
  84. 'array' => ':attributeは:value個以下のアイテムを持つ必要があります。',
  85. 'file' => ':attributeは:valueキロバイト以下である必要があります。',
  86. 'numeric' => ':attributeは:value以下である必要があります。',
  87. 'string' => ':attributeは:value文字以下である必要があります。',
  88. ],
  89. 'mac_address' => ':attributeは有効なMACアドレスである必要があります。',
  90. 'max' => [
  91. 'array' => ':attributeは:max個を超えてはいけません。',
  92. 'file' => ':attributeは:maxキロバイトより大きくてはいけません。',
  93. 'numeric' => ':attributeは:maxより大きくてはいけません。',
  94. 'string' => ':attributeは:max文字より大きくてはいけません。',
  95. ],
  96. 'max_digits' => ':attributeは:max桁を超えてはいけません。',
  97. 'mimes' => ':attributeは:valuesのファイルである必要があります。',
  98. 'mimetypes' => ':attributeは:valuesのファイルである必要があります。',
  99. 'min' => [
  100. 'array' => ':attributeは少なくとも:min個のアイテムを持つ必要があります。',
  101. 'file' => ':attributeは少なくとも:minキロバイトである必要があります。',
  102. 'numeric' => ':attributeは少なくとも:minである必要があります。',
  103. 'string' => ':attributeは少なくとも:min文字である必要があります。',
  104. ],
  105. 'min_digits' => ':attributeは少なくとも:min桁である必要があります。',
  106. 'missing' => ':attributeは存在していません。',
  107. 'missing_if' => ':otherが:valueの場合、:attributeは存在している必要があります。',
  108. 'missing_unless' => ':otherが:valueでない限り、:attributeは存在している必要があります。',
  109. 'missing_with' => ':valuesが存在する場合、:attributeは存在している必要があります。',
  110. 'missing_with_all' => ':valuesが存在する場合、:attributeは存在している必要があります。',
  111. 'multiple_of' => ':attributeは:valueの倍数でなければなりません。',
  112. 'not_in' => '選択された:attributeは無効です。',
  113. 'not_regex' => ':attributeの形式が無効です。',
  114. 'numeric' => ':attributeは数値でなければなりません。',
  115. 'password' => [
  116. 'letters' => ':attributeには少なくとも1つの文字を含める必要があります。',
  117. 'mixed' => ':attributeには少なくとも1つの大文字と1つの小文字を含める必要があります。',
  118. 'numbers' => ':attributeには少なくとも1つの数字を含める必要があります。',
  119. 'symbols' => ':attributeには少なくとも1つの記号を含める必要があります。',
  120. 'uncompromised' => '指定された:attributeはデータリークに現れています。別の:attributeを選択してください。',
  121. ],
  122. 'present' => ':attributeは存在している必要があります。',
  123. 'present_if' => ':otherが:valueの場合、:attributeは存在している必要があります。',
  124. 'present_unless' => ':otherが:valueでない限り、:attributeは存在している必要があります。',
  125. 'present_with' => ':valuesが存在する場合、:attributeは存在している必要があります。',
  126. 'present_with_all' => ':valuesが存在する場合、:attributeは存在している必要があります。',
  127. 'prohibited' => ':attributeは禁止されています。',
  128. 'prohibited_if' => ':otherが:valueの場合、:attributeは禁止されています。',
  129. 'prohibited_unless' => ':otherが:valuesに含まれていない限り、:attributeは禁止されています。',
  130. 'prohibits' => ':attributeは:otherが存在する場合、存在してはいけません。',
  131. 'regex' => ':attributeの形式が無効です。',
  132. 'required' => ':attributeは必須です。',
  133. 'required_array_keys' => ':valuesに対する:attributeのエントリが必要です。',
  134. 'required_if' => ':otherが:valueの場合、:attributeは必須です。',
  135. 'required_if_accepted' => ':otherが受け入れられている場合、:attributeは必須です。',
  136. 'required_unless' => ':otherが:valuesに含まれていない場合、:attributeは必須です。',
  137. 'required_with' => ':valuesが存在する場合、:attributeは必須です。',
  138. 'required_with_all' => ':valuesが存在する場合、:attributeは必須です。',
  139. 'required_without' => ':valuesが存在しない場合、:attributeは必須です。',
  140. 'required_without_all' => ':valuesのいずれも存在しない場合、:attributeは必須です。',
  141. 'same' => ':attributeは:otherと一致している必要があります。',
  142. 'size' => [
  143. 'array' => ':attributeは:size個のアイテムを持つ必要があります。',
  144. 'file' => ':attributeは:sizeキロバイトである必要があります。',
  145. 'numeric' => ':attributeは:sizeである必要があります。',
  146. 'string' => ':attributeは:size文字である必要があります。',
  147. ],
  148. 'starts_with' => ':attributeは次のいずれかで始まる必要があります: :values。',
  149. 'string' => ':attributeは文字列である必要があります。',
  150. 'timezone' => ':attributeは有効なタイムゾーンである必要があります。',
  151. 'unique' => ':attributeはすでに使用されています。',
  152. 'uploaded' => ':attributeのアップロードに失敗しました。',
  153. 'uppercase' => ':attributeは大文字である必要があります。',
  154. 'url' => ':attributeは有効なURLである必要があります。',
  155. 'ulid' => ':attributeは有効なULIDである必要があります。',
  156. 'uuid' => ':attributeは有効なUUIDである必要があります。',
  157. /*
  158. |--------------------------------------------------------------------------
  159. | Custom Validation Language Lines
  160. |--------------------------------------------------------------------------
  161. |
  162. | Here you may specify custom validation messages for attributes using the
  163. | convention "attribute.rule" to name the lines. This makes it quick to
  164. | specify a specific custom language line for a given attribute rule.
  165. |
  166. */
  167. 'custom' => [
  168. 'attribute-name' => [
  169. 'rule-name' => 'custom-message',
  170. ],
  171. ],
  172. /*
  173. |--------------------------------------------------------------------------
  174. | Custom Validation Attributes
  175. |--------------------------------------------------------------------------
  176. |
  177. | The following language lines are used to swap our attribute placeholder
  178. | with something more reader friendly such as "E-Mail Address" instead
  179. | of "email". This simply helps us make our message more expressive.
  180. |
  181. */
  182. 'attributes' => [],
  183. ];