validation-inline.php 6.7 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' => '必須接受。',
  14. 'accepted_if' => 'This field must be accepted when :other is :value.',
  15. 'active_url' => '並非一個有效的網址。',
  16. 'after' => '必須要晚於 :date。',
  17. 'after_or_equal' => '必須要等於 :date 或更晚。',
  18. 'alpha' => '只能以字母組成。',
  19. 'alpha_dash' => '只能以字母、數字、連接線(-)及底線(_)組成。',
  20. 'alpha_num' => '只能以字母及數字組成。',
  21. 'array' => '必須為陣列。',
  22. 'attached' => '此字段已附加。',
  23. 'before' => '必須要早於 :date。',
  24. 'before_or_equal' => '必須要等於 :date 或更早。',
  25. 'between' => [
  26. 'array' => '必須有 :min 至 :max 個項目。',
  27. 'file' => '必須介乎 :min 至 :max KB 之間。',
  28. 'numeric' => '必須介乎 :min 至 :max 之間。',
  29. 'string' => '必須介乎 :min 至 :max 個字符之間。',
  30. ],
  31. 'boolean' => '必須是布爾值。',
  32. 'confirmed' => '確認欄位的輸入並不相符。',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => '並非一個有效的日期。',
  35. 'date_equals' => '必須等於 :date。',
  36. 'date_format' => '與 :format 格式不相符。',
  37. 'declined' => 'This value must be declined.',
  38. 'declined_if' => 'This value must be declined when :other is :value.',
  39. 'different' => '必須與 :other 不同。',
  40. 'digits' => '必須是 :digits 位數字。',
  41. 'digits_between' => '必須介乎 :min 至 :max 位數字。',
  42. 'dimensions' => '圖片尺寸不正確。',
  43. 'distinct' => '已經存在。',
  44. 'email' => '必須是有效的電郵地址。',
  45. 'ends_with' => '結尾必須包含下列之一::values。',
  46. 'exists' => '不存在。',
  47. 'file' => '必須是文件。',
  48. 'filled' => '不能留空。',
  49. 'gt' => [
  50. 'array' => '必須多於 :value 個項目。',
  51. 'file' => '必須大於 :value KB。',
  52. 'numeric' => '必須大於 :value。',
  53. 'string' => '必須多於 :value 個字符。',
  54. ],
  55. 'gte' => [
  56. 'array' => '必須多於或等於 :value 個項目。',
  57. 'file' => '必須大於或等於 :value KB。',
  58. 'numeric' => '必須大於或等於 :value。',
  59. 'string' => '必須多於或等於 :value 個字符。',
  60. ],
  61. 'image' => '必須是一張圖片。',
  62. 'in' => '選項無效。',
  63. 'in_array' => '沒有在 :other 中。',
  64. 'integer' => '必須是一個整數。',
  65. 'ip' => '必須是一個有效的 IP 地址。',
  66. 'ipv4' => '必須是一個有效的 IPv4 地址。',
  67. 'ipv6' => '必須是一個有效的 IPv6 地址。',
  68. 'json' => '必須是正確的 JSON 格式。',
  69. 'lt' => [
  70. 'array' => '必須少於 :value 個項目。',
  71. 'file' => '必須小於 :value KB。',
  72. 'numeric' => '必須小於 :value。',
  73. 'string' => '必須少於 :value 個字符。',
  74. ],
  75. 'lte' => [
  76. 'array' => '必須少於或等於 :value 個項目。',
  77. 'file' => '必須小於或等於 :value KB。',
  78. 'numeric' => '必須小於或等於 :value。',
  79. 'string' => '必須少於或等於 :value 個字符。',
  80. ],
  81. 'max' => [
  82. 'array' => '不能多於 :max 個項目。',
  83. 'file' => '不能大於 :max KB。',
  84. 'numeric' => '不能大於 :max。',
  85. 'string' => '不能多於 :max 個字符。',
  86. ],
  87. 'mimes' => '必須為 :values 的檔案。',
  88. 'mimetypes' => '必須為 :values 的檔案。',
  89. 'min' => [
  90. 'array' => '不能小於 :min 個項目。',
  91. 'file' => '不能小於 :min KB。',
  92. 'numeric' => '不能小於 :min。',
  93. 'string' => '不能小於 :min 個字符。',
  94. ],
  95. 'multiple_of' => '必須為 :value 中的多個。',
  96. 'not_in' => '選項無效。',
  97. 'not_regex' => '格式錯誤。',
  98. 'numeric' => '必須為一個數字。',
  99. 'password' => '密碼錯誤。',
  100. 'present' => '必須存在。',
  101. 'prohibited' => '禁止此字段。',
  102. 'prohibited_if' => ':other 为 :value 时禁止此字段。',
  103. 'prohibited_unless' => '除非 :other 在 :values 中,否则禁止此字段。',
  104. 'prohibits' => 'This field prohibits :other from being present.',
  105. 'regex' => '格式錯誤。',
  106. 'relatable' => '此字段可能与此资源不相关联。',
  107. 'required' => '不能留空。',
  108. 'required_if' => '當 :other 是 :value 時 不能留空。',
  109. 'required_unless' => '當 :other 不是 :values 時 不能留空。',
  110. 'required_with' => '當 :values 出現時 不能留空。',
  111. 'required_with_all' => '當 :values 出現時 不能留空。',
  112. 'required_without' => '當 :values 留空時 field 不能留空。',
  113. 'required_without_all' => '當 :values 都不出現時 不能留空。',
  114. 'same' => '必須與 :other 相同。',
  115. 'size' => [
  116. 'array' => '必須是 :size 個單元。',
  117. 'file' => '大小必須是 :size KB。',
  118. 'numeric' => '大小必須是 :size。',
  119. 'string' => '必須是 :size 個字符。',
  120. ],
  121. 'starts_with' => '開頭必須包含下列之一::values。',
  122. 'string' => '必須是一個字符串。',
  123. 'timezone' => '必須是一個正確的時區值。',
  124. 'unique' => '已經存在。',
  125. 'uploaded' => '上傳失敗。',
  126. 'url' => '的格式錯誤。',
  127. 'uuid' => '必須是有效的 UUID。',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];