validation.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. 'active_url' => ':attribute は有効なURLではありません。',
  15. 'after' => ':attribute は :date 以降の日付である必要があります。',
  16. 'after_or_equal' => ':attribute は :date と同じかそれ以降の日付である必要があります。',
  17. 'alpha' => ':attribute には文字を含めることが出来ます。',
  18. 'alpha_dash' => ':attribute には文字、数字、ダッシュを含めることが出来ます。',
  19. 'alpha_num' => ':attribute には文字、または数字を含めることが出来ます。',
  20. 'array' => ':attribute は配列である必要があります。',
  21. 'before' => ':attribute は :date 以前の日付である必要があります。',
  22. 'before_or_equal' => ':attribute は :date と同じかそれ以前の日付である必要があります。',
  23. 'between' => [
  24. 'numeric' => ':attribute は :min から :max の間である必要があります。',
  25. 'file' => ':attribute は :min から :max キロバイトの間である必要があります。',
  26. 'string' => ':attribute は :min から :max 文字の間である必要があります。',
  27. 'array' => ':attribute は :min アイテムから :max アイテムの間である必要があります。',
  28. ],
  29. 'boolean' => ':attribute フィールドは true か false である必要があります。',
  30. 'confirmed' => ':attribute の確認が一致しません。',
  31. 'date' => ':attribute は有効な日付ではありません。',
  32. 'date_format' => ':attribute は :format と一致しません。',
  33. 'different' => ':attribute と :other は異なる必要があります。',
  34. 'digits' => ':attribute は :digits である必要があります。',
  35. 'digits_between' => ':attribute は :min から :max 間の数字である必要があります。',
  36. 'dimensions' => ':attribute は無効な画像サイズです。',
  37. 'distinct' => ':attribute フィールドに重複した値があります。',
  38. 'email' => ':attribute は有効なメールアドレスである必要があります。',
  39. 'exists' => '選択された :attribute は無効です。',
  40. 'file' => ':attribute はファイルである必要があります。',
  41. 'filled' => ':attribute フィールドには値が必要です。',
  42. 'image' => ':attribute は画像である必要があります。',
  43. 'in' => '選択された :attribute は無効です。',
  44. 'in_array' => ':attribute フィールドは :other には存在しません。',
  45. 'integer' => ':attribute は整数である必要があります。',
  46. 'ip' => ':attribute は有効なIPアドレスである必要があります。',
  47. 'ipv4' => ':attribute は有効なIPv4アドレスである必要があります。',
  48. 'ipv6' => ':attribute は有効なIPv6アドレスである必要があります。',
  49. 'json' => ':attribute は有効なJSON文字列である必要があります。',
  50. 'max' => [
  51. 'numeric' => ':attribute は :max 以下である必要があります。',
  52. 'file' => ':attribute は :max キロバイト以下である必要があります。',
  53. 'string' => ':attribute の文字数は :max 以下である必要があります。',
  54. 'array' => ':attribute は :max 以上のアイテム数を持つことは出来ません。',
  55. ],
  56. 'mimes' => ':attribute は :values タイプのファイルである必要があります。',
  57. 'mimetypes' => ':attribute は :values タイプのファイルである必要があります。',
  58. 'min' => [
  59. 'numeric' => ':attribute は最低でも :min 以上である必要があります。',
  60. 'file' => ':attribute は最低でも :min キロバイト以上である必要があります。',
  61. 'string' => ':attribute の文字数は最低でも :min 以上である必要があります。',
  62. 'array' => ':attribute は最低でも :min アイテム以上である必要があります。',
  63. ],
  64. 'not_in' => '選択された :attribute は無効です。',
  65. 'not_regex' => ':attribute は無効なフォーマットです。',
  66. 'numeric' => ':attribute は数字である必要があります。',
  67. 'present' => ':attribute フィールドは存在する必要があります。',
  68. 'regex' => ':attribute は無効なフォーマットです。',
  69. 'required' => ':attribute フィールドは必要です。',
  70. 'required_if' => ':other が :value の場合、 :attribute は必要です。',
  71. 'required_unless' => ':other が :values にない場合、 :attribute フィールドは必要です。',
  72. 'required_with' => ':values が存在する場合、 :attribute は必要です。',
  73. 'required_with_all' => ':values が存在する場合、 :attribute は必要です。',
  74. 'required_without' => ':values が存在しない場合、 :attribute は必要です。',
  75. 'required_without_all' => ':values が一つも存在しない場合、 :attribute は必要です。',
  76. 'same' => ':attribute と :other は一致する必要があります。',
  77. 'size' => [
  78. 'numeric' => ':attribute は :size である必要があります。',
  79. 'file' => ':attribute は :size キロバイトである必要があります。',
  80. 'string' => ':attribute の文字数は :size である必要があります。',
  81. 'array' => ':attribute には :size のアイテムが含まれている必要があります。',
  82. ],
  83. 'string' => ':attribute は文字列である必要があります。',
  84. 'timezone' => ':attribute は有効なゾーンである必要があります。',
  85. 'unique' => ':attribute は既に使用されています。',
  86. 'uploaded' => ':attribute のアップロードに失敗しました。',
  87. 'url' => ':attribute は無効なフォーマットです。',
  88. /*
  89. |--------------------------------------------------------------------------
  90. | Custom Validation Language Lines
  91. |--------------------------------------------------------------------------
  92. |
  93. | Here you may specify custom validation messages for attributes using the
  94. | convention "attribute.rule" to name the lines. This makes it quick to
  95. | specify a specific custom language line for a given attribute rule.
  96. |
  97. */
  98. 'custom' => [
  99. 'attribute-name' => [
  100. 'rule-name' => 'custom-message',
  101. ],
  102. ],
  103. /*
  104. |--------------------------------------------------------------------------
  105. | Custom Validation Attributes
  106. |--------------------------------------------------------------------------
  107. |
  108. | The following language lines are used to swap attribute place-holders
  109. | with something more reader friendly such as E-Mail Address instead
  110. | of "email". This simply helps us make messages a little cleaner.
  111. |
  112. */
  113. 'attributes' => [],
  114. ];