validation.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Validation Language Lines
  5. |--------------------------------------------------------------------------
  6. |
  7. | The following language lines contain the default error messages used by
  8. | the validator class. Some of these rules have multiple versions such
  9. | as the size rules. Feel free to tweak each of these messages here.
  10. |
  11. */
  12. return [
  13. 'accepted' => '必須接受 :attribute。',
  14. 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
  15. 'active_url' => ':attribute 不是有效的網址。',
  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. 'attached' => '这 :attribute 已经连接。',
  23. 'before' => ':attribute 必須要早於 :date。',
  24. 'before_or_equal' => ':attribute 必須要等於 :date 或更早。',
  25. 'between' => [
  26. 'array' => ':attribute: 必須有 :min - :max 個元素。',
  27. 'file' => ':attribute 必須介於 :min 至 :max KB 之間。 ',
  28. 'numeric' => ':attribute 必須介於 :min 至 :max 之間。',
  29. 'string' => ':attribute 必須介於 :min 至 :max 個字元之間。',
  30. ],
  31. 'boolean' => ':attribute 必須為布林值。',
  32. 'confirmed' => ':attribute 確認欄位的輸入不一致。',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => ':attribute 不是有效的日期。',
  35. 'date_equals' => ':attribute 必須等於 :date。',
  36. 'date_format' => ':attribute 不符合 :format 的格式。',
  37. 'declined' => 'The :attribute must be declined.',
  38. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  39. 'different' => ':attribute 與 :other 必須不同。',
  40. 'digits' => ':attribute 必須是 :digits 位數字。',
  41. 'digits_between' => ':attribute 必須介於 :min 至 :max 位數字。',
  42. 'dimensions' => ':attribute 圖片尺寸不正確。',
  43. 'distinct' => ':attribute 已經存在。',
  44. 'email' => ':attribute 必須是有效的 E-mail。',
  45. 'ends_with' => ':attribute 結尾必須包含下列之一::values。',
  46. 'exists' => ':attribute 不存在。',
  47. 'file' => ':attribute 必須是有效的檔案。',
  48. 'filled' => ':attribute 不能留空。',
  49. 'gt' => [
  50. 'array' => ':attribute 必須多於 :value 個元素。',
  51. 'file' => ':attribute 必須大於 :value KB。',
  52. 'numeric' => ':attribute 必須大於 :value。',
  53. 'string' => ':attribute 必須多於 :value 個字元。',
  54. ],
  55. 'gte' => [
  56. 'array' => ':attribute 必須多於或等於 :value 個元素。',
  57. 'file' => ':attribute 必須大於或等於 :value KB。',
  58. 'numeric' => ':attribute 必須大於或等於 :value。',
  59. 'string' => ':attribute 必須多於或等於 :value 個字元。',
  60. ],
  61. 'image' => ':attribute 必須是一張圖片。',
  62. 'in' => '所選擇的 :attribute 選項無效。',
  63. 'in_array' => ':attribute 沒有在 :other 中。',
  64. 'integer' => ':attribute 必須是一個整數。',
  65. 'ip' => ':attribute 必須是一個有效的 IP 位址。',
  66. 'ipv4' => ':attribute 必須是一個有效的 IPv4 位址。',
  67. 'ipv6' => ':attribute 必須是一個有效的 IPv6 位址。',
  68. 'json' => ':attribute 必須是正確的 JSON 字串。',
  69. 'lt' => [
  70. 'array' => ':attribute 必須少於 :value 個元素。',
  71. 'file' => ':attribute 必須小於 :value KB。',
  72. 'numeric' => ':attribute 必須小於 :value。',
  73. 'string' => ':attribute 必須少於 :value 個字元。',
  74. ],
  75. 'lte' => [
  76. 'array' => ':attribute 必須少於或等於 :value 個元素。',
  77. 'file' => ':attribute 必須小於或等於 :value KB。',
  78. 'numeric' => ':attribute 必須小於或等於 :value。',
  79. 'string' => ':attribute 必須少於或等於 :value 個字元。',
  80. ],
  81. 'max' => [
  82. 'array' => ':attribute 最多有 :max 個元素。',
  83. 'file' => ':attribute 不能大於 :max KB。',
  84. 'numeric' => ':attribute 不能大於 :max。',
  85. 'string' => ':attribute 不能多於 :max 個字元。',
  86. ],
  87. 'mimes' => ':attribute 必須為 :values 的檔案。',
  88. 'mimetypes' => ':attribute 必須為 :values 的檔案。',
  89. 'min' => [
  90. 'array' => ':attribute 至少有 :min 個元素。',
  91. 'file' => ':attribute 不能小於 :min KB。',
  92. 'numeric' => ':attribute 不能小於 :min。',
  93. 'string' => ':attribute 不能小於 :min 個字元。',
  94. ],
  95. 'multiple_of' => '所選擇的 :attribute 必須為 :value 中的多個。',
  96. 'not_in' => '所選擇的 :attribute 選項無效。',
  97. 'not_regex' => ':attribute 的格式錯誤。',
  98. 'numeric' => ':attribute 必須為一個數字。',
  99. 'password' => '密碼錯誤',
  100. 'present' => ':attribute 必須存在。',
  101. 'prohibited' => ':attribute 字段被禁止。',
  102. 'prohibited_if' => '当 :other 为 :value 时,:attribute字段被禁止。',
  103. 'prohibited_unless' => ':attribute 字段被禁止,除非 :other 在 :values 中。',
  104. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  105. 'regex' => ':attribute 的格式錯誤。',
  106. 'relatable' => '此 :attribute 可能与此资源不相关联。',
  107. 'required' => ':attribute 不能留空。',
  108. 'required_if' => '當 :other 是 :value 時 :attribute 不能留空。',
  109. 'required_unless' => '當 :other 不是 :values 時 :attribute 不能留空。',
  110. 'required_with' => '當 :values 出現時 :attribute 不能留空。',
  111. 'required_with_all' => '當 :values 出現時 :attribute 不能為空。',
  112. 'required_without' => '當 :values 留空時 :attribute field 不能留空。',
  113. 'required_without_all' => '當 :values 都不出現時 :attribute 不能留空。',
  114. 'same' => ':attribute 與 :other 必須相同。',
  115. 'size' => [
  116. 'array' => ':attribute 必須是 :size 個元素。',
  117. 'file' => ':attribute 的大小必須是 :size KB。',
  118. 'numeric' => ':attribute 的大小必須是 :size。',
  119. 'string' => ':attribute 必須是 :size 個字元。',
  120. ],
  121. 'starts_with' => ':attribute 開頭必須包含下列之一::values。',
  122. 'string' => ':attribute 必須是一個字串。',
  123. 'timezone' => ':attribute 必須是一個正確的時區值。',
  124. 'unique' => ':attribute 已經存在。',
  125. 'uploaded' => ':attribute 上傳失敗。',
  126. 'url' => ':attribute 的格式錯誤。',
  127. 'uuid' => ':attribute 必須是有效的 UUID。',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];