validation.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 不是有效的網址。',
  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_equals' => ':attribute 必須等於 :date。',
  33. 'date_format' => ':attribute 不符合 :format 的格式。',
  34. 'different' => ':attribute 與 :other 必須不同。',
  35. 'digits' => ':attribute 必須是 :digits 位數字。',
  36. 'digits_between' => ':attribute 必須介於 :min 至 :max 位數字。',
  37. 'dimensions' => ':attribute 圖片尺寸不正確。',
  38. 'distinct' => ':attribute 已經存在。',
  39. 'email' => ':attribute 必須是有效的 E-mail。',
  40. 'ends_with' => ':attribute 結尾必須包含下列之一::values',
  41. 'exists' => ':attribute 不存在。',
  42. 'file' => ':attribute 必須是有效的檔案。',
  43. 'filled' => ':attribute 不能留空。',
  44. 'gt' => [
  45. 'numeric' => ':attribute 必須大於 :value。',
  46. 'file' => ':attribute 必須大於 :value KB。',
  47. 'string' => ':attribute 必須多於 :value 個字元。',
  48. 'array' => ':attribute 必須多於 :value 個元素。',
  49. ],
  50. 'gte' => [
  51. 'numeric' => ':attribute 必須大於或等於 :value。',
  52. 'file' => ':attribute 必須大於或等於 :value KB。',
  53. 'string' => ':attribute 必須多於或等於 :value 個字元。',
  54. 'array' => ':attribute 必須多於或等於 :value 個元素。',
  55. ],
  56. 'image' => ':attribute 必須是一張圖片。',
  57. 'in' => '所選擇的 :attribute 選項無效。',
  58. 'in_array' => ':attribute 沒有在 :other 中。',
  59. 'integer' => ':attribute 必須是一個整數。',
  60. 'ip' => ':attribute 必須是一個有效的 IP 位址。',
  61. 'ipv4' => ':attribute 必須是一個有效的 IPv4 位址。',
  62. 'ipv6' => ':attribute 必須是一個有效的 IPv6 位址。',
  63. 'json' => ':attribute 必須是正確的 JSON 字串。',
  64. 'lt' => [
  65. 'numeric' => ':attribute 必須小於 :value。',
  66. 'file' => ':attribute 必須小於 :value KB。',
  67. 'string' => ':attribute 必須少於 :value 個字元。',
  68. 'array' => ':attribute 必須少於 :value 個元素。',
  69. ],
  70. 'lte' => [
  71. 'numeric' => ':attribute 必須小於或等於 :value。',
  72. 'file' => ':attribute 必須小於或等於 :value KB。',
  73. 'string' => ':attribute 必須少於或等於 :value 個字元。',
  74. 'array' => ':attribute 必須少於或等於 :value 個元素。',
  75. ],
  76. 'max' => [
  77. 'numeric' => ':attribute 不能大於 :max。',
  78. 'file' => ':attribute 不能大於 :max KB。',
  79. 'string' => ':attribute 不能多於 :max 個字元。',
  80. 'array' => ':attribute 最多有 :max 個元素。',
  81. ],
  82. 'mimes' => ':attribute 必須為 :values 的檔案。',
  83. 'mimetypes' => ':attribute 必須為 :values 的檔案。',
  84. 'min' => [
  85. 'numeric' => ':attribute 不能小於 :min。',
  86. 'file' => ':attribute 不能小於 :min KB。',
  87. 'string' => ':attribute 不能小於 :min 個字元。',
  88. 'array' => ':attribute 至少有 :min 個元素。',
  89. ],
  90. 'not_in' => '所選擇的 :attribute 選項無效。',
  91. 'not_regex' => ':attribute 的格式錯誤。',
  92. 'numeric' => ':attribute 必須為一個數字。',
  93. 'password' => '密碼錯誤',
  94. 'present' => ':attribute 必須存在。',
  95. 'regex' => ':attribute 的格式錯誤。',
  96. 'required' => ':attribute 不能留空。',
  97. 'required_if' => '當 :other 是 :value 時 :attribute 不能留空。',
  98. 'required_unless' => '當 :other 不是 :values 時 :attribute 不能留空。',
  99. 'required_with' => '當 :values 出現時 :attribute 不能留空。',
  100. 'required_with_all' => '當 :values 出現時 :attribute 不能為空。',
  101. 'required_without' => '當 :values 留空時 :attribute field 不能留空。',
  102. 'required_without_all' => '當 :values 都不出現時 :attribute 不能留空。',
  103. 'same' => ':attribute 與 :other 必須相同。',
  104. 'size' => [
  105. 'numeric' => ':attribute 的大小必須是 :size。',
  106. 'file' => ':attribute 的大小必須是 :size KB。',
  107. 'string' => ':attribute 必須是 :size 個字元。',
  108. 'array' => ':attribute 必須是 :size 個元素。',
  109. ],
  110. 'starts_with' => ':attribute 開頭必須包含下列之一::values',
  111. 'string' => ':attribute 必須是一個字串。',
  112. 'timezone' => ':attribute 必須是一個正確的時區值。',
  113. 'unique' => ':attribute 已經存在。',
  114. 'uploaded' => ':attribute 上傳失敗。',
  115. 'url' => ':attribute 的格式錯誤。',
  116. 'uuid' => ':attribute 必須是有效的 UUID。',
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Custom Validation Language Lines
  120. |--------------------------------------------------------------------------
  121. |
  122. | Here you may specify custom validation messages for attributes using the
  123. | convention "attribute.rule" to name the lines. This makes it quick to
  124. | specify a specific custom language line for a given attribute rule.
  125. |
  126. */
  127. 'custom' => [
  128. 'attribute-name' => [
  129. 'rule-name' => 'custom-message',
  130. ],
  131. ],
  132. /*
  133. |--------------------------------------------------------------------------
  134. | Custom Validation Attributes
  135. |--------------------------------------------------------------------------
  136. |
  137. | The following language lines are used to swap our attribute placeholder
  138. | with something more reader friendly such as "E-Mail Address" instead
  139. | of "email". This simply helps us make our message more expressive.
  140. |
  141. */
  142. 'attributes' => [
  143. 'address' => '地址',
  144. 'age' => '年齡',
  145. 'available' => '可用的',
  146. 'city' => '城市',
  147. 'content' => '內容',
  148. 'country' => '國家',
  149. 'date' => '日期',
  150. 'day' => '天',
  151. 'description' => '描述',
  152. 'email' => 'E-mail',
  153. 'excerpt' => '摘要',
  154. 'first_name' => '名',
  155. 'gender' => '性別',
  156. 'hour' => '時',
  157. 'last_name' => '姓',
  158. 'minute' => '分',
  159. 'mobile' => '手機',
  160. 'month' => '月',
  161. 'name' => '名稱',
  162. 'password' => '密碼',
  163. 'password_confirmation' => '確認密碼',
  164. 'phone' => '電話',
  165. 'second' => '秒',
  166. 'sex' => '性別',
  167. 'size' => '大小',
  168. 'time' => '時間',
  169. 'title' => '標題',
  170. 'username' => '使用者名稱',
  171. 'year' => '年',
  172. ],
  173. ];