validation.php 11 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 字段必须是有效的十六进制颜色。',
  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 字段必须至少包含一个字母。',
  117. 'mixed' => ':attribute 字段必须至少包含一个大写字母和一个小写字母。',
  118. 'numbers' => ':attribute 字段必须至少包含一个数字。',
  119. 'symbols' => ':attribute 字段必须至少包含一个符号。',
  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' => ':attribute 字段必须包含以下条目: :values。',
  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' => '自定义消息',
  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. ];