validation.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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 不是一个有效的网址。',
  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 KB 之间。',
  26. 'string' => ':attribute 必须介于 :min - :max 个字符之间。',
  27. 'array' => ':attribute 必须只有 :min - :max 个单元。',
  28. ],
  29. 'boolean' => ':attribute 必须为布尔值。',
  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. 'gt' => [
  43. 'numeric' => ':attribute 必须大于 :value。',
  44. 'file' => ':attribute 必须大于 :value KB。',
  45. 'string' => ':attribute 必须多于 :value 个字符。',
  46. 'array' => ':attribute 必须多于 :value 个元素。',
  47. ],
  48. 'gte' => [
  49. 'numeric' => ':attribute 必须大于或等于 :value。',
  50. 'file' => ':attribute 必须大于或等于 :value KB。',
  51. 'string' => ':attribute 必须多于或等于 :value 个字符。',
  52. 'array' => ':attribute 必须多于或等于 :value 个元素。',
  53. ],
  54. 'image' => ':attribute 必须是图片。',
  55. 'in' => '已选的属性 :attribute 非法。',
  56. 'in_array' => ':attribute 没有在 :other 中。',
  57. 'integer' => ':attribute 必须是整数。',
  58. 'ip' => ':attribute 必须是有效的 IP 地址。',
  59. 'ipv4' => ':attribute 必须是有效的 IPv4 地址。',
  60. 'ipv6' => ':attribute 必须是有效的 IPv6 地址。',
  61. 'json' => ':attribute 必须是正确的 JSON 格式。',
  62. 'lt' => [
  63. 'numeric' => ':attribute 必须小于 :value。',
  64. 'file' => ':attribute 必须小于 :value KB。',
  65. 'string' => ':attribute 必须少于 :value 个字符。',
  66. 'array' => ':attribute 必须少于 :value 个元素。',
  67. ],
  68. 'lte' => [
  69. 'numeric' => ':attribute 必须小于或等于 :value。',
  70. 'file' => ':attribute 必须小于或等于 :value KB。',
  71. 'string' => ':attribute 必须少于或等于 :value 个字符。',
  72. 'array' => ':attribute 必须少于或等于 :value 个元素。',
  73. ],
  74. 'max' => [
  75. 'numeric' => ':attribute 不能大于 :max。',
  76. 'file' => ':attribute 不能大于 :max KB。',
  77. 'string' => ':attribute 不能大于 :max 个字符。',
  78. 'array' => ':attribute 最多只有 :max 个单元。',
  79. ],
  80. 'mimes' => ':attribute 必须是一个 :values 类型的文件。',
  81. 'mimetypes' => ':attribute 必须是一个 :values 类型的文件。',
  82. 'min' => [
  83. 'numeric' => ':attribute 必须大于等于 :min。',
  84. 'file' => ':attribute 大小不能小于 :min KB。',
  85. 'string' => ':attribute 至少为 :min 个字符。',
  86. 'array' => ':attribute 至少有 :min 个单元。',
  87. ],
  88. 'not_in' => '已选的属性 :attribute 非法。',
  89. 'not_regex' => ':attribute 的格式错误。',
  90. 'numeric' => ':attribute 必须是一个数字。',
  91. 'present' => ':attribute 必须存在。',
  92. 'regex' => ':attribute 格式不正确。',
  93. 'required' => ':attribute 不能为空。',
  94. 'required_if' => '当 :other 为 :value 时 :attribute 不能为空。',
  95. 'required_unless' => '当 :other 不为 :values 时 :attribute 不能为空。',
  96. 'required_with' => '当 :values 存在时 :attribute 不能为空。',
  97. 'required_with_all' => '当 :values 存在时 :attribute 不能为空。',
  98. 'required_without' => '当 :values 不存在时 :attribute 不能为空。',
  99. 'required_without_all' => '当 :values 都不存在时 :attribute 不能为空。',
  100. 'same' => ':attribute 和 :other 必须相同。',
  101. 'size' => [
  102. 'numeric' => ':attribute 大小必须为 :size。',
  103. 'file' => ':attribute 大小必须为 :size KB。',
  104. 'string' => ':attribute 必须是 :size 个字符。',
  105. 'array' => ':attribute 必须为 :size 个单元。',
  106. ],
  107. 'string' => ':attribute 必须是一个字符串。',
  108. 'timezone' => ':attribute 必须是一个合法的时区值。',
  109. 'unique' => ':attribute 已经存在。',
  110. 'uploaded' => ':attribute 上传失败。',
  111. 'url' => ':attribute 格式不正确。',
  112. 'chsdash' => ':attribute 必须是一个汉字、字母、数字和中文符号 。 ? ! , 、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥。',
  113. /*
  114. |--------------------------------------------------------------------------
  115. | Custom Validation Language Lines
  116. |--------------------------------------------------------------------------
  117. |
  118. | Here you may specify custom validation messages for attributes using the
  119. | convention 'attribute.rule' to name the lines. This makes it quick to
  120. | specify a specific custom language line for a given attribute rule.
  121. |
  122. */
  123. 'custom' => [
  124. 'attribute-name' => [
  125. 'rule-name' => 'custom-message',
  126. ],
  127. ],
  128. /*
  129. |--------------------------------------------------------------------------
  130. | Custom Validation Attributes
  131. |--------------------------------------------------------------------------
  132. |
  133. | The following language lines are used to swap attribute place-holders
  134. | with something more reader friendly such as E-Mail Address instead
  135. | of 'email'. This simply helps us make messages a little cleaner.
  136. |
  137. */
  138. 'attributes' => [
  139. 'name' => '名称',
  140. 'username' => '用户名',
  141. 'email' => '邮箱',
  142. 'first_name' => '名',
  143. 'last_name' => '姓',
  144. 'password' => '密码',
  145. 'password_confirmation' => '确认密码',
  146. 'city' => '城市',
  147. 'country' => '国家',
  148. 'address' => '地址',
  149. 'phone' => '电话',
  150. 'mobile' => '手机',
  151. 'age' => '年龄',
  152. 'sex' => '性别',
  153. 'gender' => '性别',
  154. 'day' => '天',
  155. 'month' => '月',
  156. 'year' => '年',
  157. 'hour' => '时',
  158. 'minute' => '分',
  159. 'second' => '秒',
  160. 'title' => '标题',
  161. 'content' => '内容',
  162. 'description' => '描述',
  163. 'excerpt' => '摘要',
  164. 'date' => '日期',
  165. 'time' => '时间',
  166. 'available' => '可用的',
  167. 'size' => '大小',
  168. 'account_no' => '账号',
  169. 'rank' => '排行',
  170. 'oddsType' => '竞猜类型',
  171. 'oddsId' => '赔率ID',
  172. 'goldBeans' => '金豆',
  173. 'consignee' => '联系人',
  174. 'province' => '省份',
  175. 'detailed' => '详细地址',
  176. 'is default' => '是否默认',
  177. 'district' => '县区',
  178. 'addressId' => '地址',
  179. 'goodsId' => '商品',
  180. 'buyerMessage' => '买家留言',
  181. 'OrderStatus' => '订单状态',
  182. 'orderId' => '订单ID',
  183. 'payType' => '支付类型',
  184. 'toolId' => '道具ID',
  185. 'logistic_company' => '物流公司',
  186. 'logistic_num' => '物流单号',
  187. 'logistic_person' => '送货人姓名',
  188. 'sms' => '验证码',
  189. 'pay_password'=>'支付密码',
  190. ],
  191. ];