validation.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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到:maxKB之间',
  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必须是jpeg,png,bmp或者gif格式的图片',
  43. 'in' => '选定的:attribute是无效的',
  44. 'in_array' => ':attribute字段不存在于:other',
  45. 'integer' => ':attribute必须是个整数',
  46. 'ip' => ':attribute必须是一个合法的IP地址。',
  47. 'json' => ':attribute必须是一个合法的JSON字符串',
  48. 'max' => [
  49. 'numeric' => ':attribute的最大长度为:max位',
  50. 'file' => ':attribute的最大为:max',
  51. 'string' => ':attribute的最大长度为:max字符',
  52. 'array' => ':attribute的最大个数为:max个.',
  53. ],
  54. 'mimes' => ':attribute的文件类型必须是:values',
  55. 'min' => [
  56. 'numeric' => ':attribute的最小长度为:min位',
  57. 'file' => ':attribute大小至少为:minKB',
  58. 'string' => ':attribute的最小长度为:min字符',
  59. 'array' => ':attribute至少有:min项',
  60. ],
  61. 'not_in' => '选定的:attribute是无效的',
  62. 'numeric' => ':attribute必须是数字',
  63. 'present' => ':attribute字段必须存在',
  64. 'regex' => ':attribute格式是无效的',
  65. 'required_if' => ':attribute字段是必须的当:other是:value',
  66. 'required_unless' => ':attribute字段是必须的,除非:other是在:values中',
  67. 'required_with' => ':attribute字段是必须的当:values是存在的',
  68. 'required_with_all' => ':attribute字段是必须的当:values是存在的',
  69. 'required_without' => ':attribute字段是必须的当:values是不存在的',
  70. 'required_without_all' => ':attribute字段是必须的当没有一个:values是存在的',
  71. 'same' => ':attribute和:other必须匹配',
  72. 'size' => [
  73. 'numeric' => ':attribute必须是:size位',
  74. 'file' => ':attribute必须是:sizeKB',
  75. 'string' => ':attribute必须是:size个字符',
  76. 'array' => ':attribute必须包括:size项',
  77. ],
  78. 'string' => ':attribute必须是一个字符串',
  79. 'timezone' => ':attribute必须是个有效的时区.',
  80. 'unique' => ':attribute已存在',
  81. 'url' => ':attribute无效的格式',
  82. /*
  83. |--------------------------------------------------------------------------
  84. | Custom Validation Language Lines
  85. |--------------------------------------------------------------------------
  86. |
  87. | Here you may specify custom validation messages for attributes using the
  88. | convention "attribute.rule" to name the lines. This makes it quick to
  89. | specify a specific custom language line for a given attribute rule.
  90. |
  91. */
  92. 'custom' => [
  93. 'attribute-name' => [
  94. 'rule-name' => 'custom-message',
  95. ],
  96. ],
  97. /*
  98. |--------------------------------------------------------------------------
  99. | Custom Validation Attributes
  100. |--------------------------------------------------------------------------
  101. |
  102. | The following language lines are used to swap attribute place-holders
  103. | with something more reader friendly such as E-Mail Address instead
  104. | of "email". This simply helps us make messages a little cleaner.
  105. |
  106. */
  107. 'attributes' => [
  108. 'category' => '上级菜单',
  109. 'order' => '菜单排序',
  110. 'name' => '菜单名称',
  111. 'icon' => '菜单图标',
  112. 'uri' => '菜单URL',
  113. 'roles' => '菜单权限',
  114. 'email' => '开发者账户',
  115. 'csr' => 'csr',
  116. 'IssuerID' => 'IssuerID',
  117. 'miyaoID' => 'miyaoID',
  118. 'p8' => 'p8',
  119. 'role_remark' => '角色标识',
  120. 'role_name' => '角色名称',
  121. 'role_desc' => '角色描述',
  122. 'permission_list' => '角色权限',
  123. 'permission_name' => '权限名称',
  124. 'permission_desc' => '权限介绍',
  125. 'permission_remark' => '权限标识',
  126. 'permission_control' => '权限控制器',
  127. 'permission_roles' => '权限所属角色',
  128. 'email' => '开发者账户',
  129. 'csr' => 'csr',
  130. 'IssuerID' => 'IssuerID',
  131. 'miyaoID' => 'miyaoID',
  132. 'p8' => 'p8',
  133. ],
  134. ];