Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  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. 'alpha' => ':attribute 只能包含英文字母',
  17. 'alpha_dash' => ':attribute 只能包含英文字母,數字和-',
  18. 'alpha_num' => ':attribute 只能包含英文字母和數字',
  19. 'array' => ':attribute 必須是陣列',
  20. 'before' => ':attribute 必須是在 :date. 之前的日期',
  21. 'between' => [
  22. 'numeric' => ':attribute 必須介於 :min 至 :max 之間',
  23. 'file' => ':attribute 大小必須介於 :min kb 至 :max kb 之間',
  24. 'string' => ':attribute 長度必須介於 :min 至 :max 之間',
  25. 'array' => ':attribute 包含的長度必須介於 :min 至 :max 個之間',
  26. ],
  27. 'boolean' => ':attribute 必須是 true 或 false',
  28. 'confirmed' => ':attribute 必須一致',
  29. 'date' => ':attribute 不是有效的日期',
  30. 'date_format' => ':attribute 必須符合格式 :format',
  31. 'different' => ':attribute 與 :other 必須不同',
  32. 'digits' => ':attribute 必須是 :digits 位數',
  33. 'digits_between' => ':attribute 的位數必須介於 :min 與 :max 之間',
  34. 'distinct' => ':attribute 已存在',
  35. 'email' => ':attribute 必須是有效的電子郵件位址',
  36. 'exists' => ':attribute 須存在',
  37. 'filled' => ':attribute 為必填',
  38. 'image' => ':attribute 必須是圖片',
  39. 'in' => ':attribute 不是有效值',
  40. 'in_array' => ':attribute 不存在於 :other',
  41. 'integer' => ':attribute 必須是整數',
  42. 'ip' => ':attribute 必須是有效的 IP 位址',
  43. 'json' => ':attribute 必頁是有效的 JSON 字串',
  44. 'max' => [
  45. 'numeric' => ':attribute 不能大於 :max',
  46. 'file' => ':attribute 的大小不能超過 :max kb',
  47. 'string' => ':attribute 不能超過 :max 個字元',
  48. 'array' => ':attribute 不能包含超過 :max 個',
  49. ],
  50. 'mimes' => ':attribute 必須是一個 :values 檔案',
  51. 'min' => [
  52. 'numeric' => ':attribute 不能小於 :min',
  53. 'file' => ':attribute 的大小不能小於 :min kb',
  54. 'string' => ':attribute 必須至少 :min 個字元',
  55. 'array' => ':attribute 必須至少有 :min 個',
  56. ],
  57. 'not_in' => ':attribute 是無效值',
  58. 'numeric' => ':attribute 必須是數字',
  59. 'present' => ':attribute 必須出現',
  60. 'regex' => ':attribute 格式無效,請參考原欄位的提示',
  61. 'required' => ':attribute 為必填',
  62. 'required_if' => '當 :other 是 :value時,:attribute 為必填',
  63. 'required_unless' => '除非 :other 在 :values 之中,:attribute 為必填',
  64. 'required_with' => '當 :values 出現時,:attribute 為必填',
  65. 'required_with_all' => '當 :values 出現時,:attribute 為必填',
  66. 'required_without' => '當 :values 沒有出現時,:attribute 為必填',
  67. 'required_without_all' => '當 :values 沒有出現時,:attribute 為必填',
  68. 'same' => ':attribute 與 :other 須相符',
  69. 'size' => [
  70. 'numeric' => ':attribute 必須是 :size',
  71. 'file' => ':attribute 必須是 :size kb',
  72. 'string' => ':attribute 必須是 :size 個字元',
  73. 'array' => ':attribute 必須包含 :size 個',
  74. ],
  75. 'string' => ':attribute 必須是字串',
  76. 'timezone' => ':attribute 必須是有效的時區',
  77. 'unique' => ':attribute 已存在',
  78. 'url' => ':attribute 必須是有效的url',
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Custom Validation Language Lines
  82. |--------------------------------------------------------------------------
  83. |
  84. | Here you may specify custom validation messages for attributes using the
  85. | convention "attribute.rule" to name the lines. This makes it quick to
  86. | specify a specific custom language line for a given attribute rule.
  87. |
  88. */
  89. 'custom' => [
  90. 'attribute-name' => [
  91. 'rule-name' => 'custom-message',
  92. ],
  93. ],
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Custom Validation Attributes
  97. |--------------------------------------------------------------------------
  98. |
  99. | The following language lines are used to swap attribute place-holders
  100. | with something more reader friendly such as E-Mail Address instead
  101. | of "email". This simply helps us make messages a little cleaner.
  102. |
  103. */
  104. 'attributes' => [
  105. ],
  106. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement