]> BookStack Code Mirror - bookstack/blob - lang/zh_TW/validation.php
Followed Laravel 9 update steps and file changes
[bookstack] / lang / zh_TW / validation.php
1 <?php
2 /**
3  * Validation Lines
4  * The following language lines contain the default error messages used by
5  * the validator class. Some of these rules have multiple versions such
6  * as the size rules. Feel free to tweak each of these messages here.
7  */
8 return [
9
10     // Standard laravel validation lines
11     'accepted'             => '必須同意 :attribute。',
12     'active_url'           => ':attribute 並非有效的網址。',
13     'after'                => ':attribute 必須是在 :date 後的日期。',
14     'alpha'                => ':attribute 只能包含字母。',
15     'alpha_dash'           => ':attribute 只能包含字母、數字、破折號與底線。',
16     'alpha_num'            => ':attribute 只能包含字母和數字。',
17     'array'                => ':attribute 必須是陣列。',
18     'backup_codes'         => '提供的代碼無效或已被使用。',
19     'before'               => ':attribute 必須是在 :date 前的日期。',
20     'between'              => [
21         'numeric' => ':attribute 必須在 :min 到 :max 之間。',
22         'file'    => ':attribute 必須為 :min 到 :max KB。',
23         'string'  => ':attribute 必須在 :min 到 :max 個字元之間。',
24         'array'   => ':attribute 必須在 :min 到 :max 項之間。',
25     ],
26     'boolean'              => ':attribute 欄位必須為 true 或 false。',
27     'confirmed'            => ':attribute 確認不符。',
28     'date'                 => ':attribute 並非有效的日期。',
29     'date_format'          => ':attribute 與 :format 格式不相符。',
30     'different'            => ':attribute 和 :other 必須不同。',
31     'digits'               => ':attribute 必須為 :digits 位數。',
32     'digits_between'       => ':attribute 必須為 :min 到 :max 位數。',
33     'email'                => ':attribute 必須是有效的電子郵件地址。',
34     'ends_with' => ':attribute必須以下列之一結尾::values',
35     'file'                 => ':attribute 必須作為有效檔案提供。',
36     'filled'               => ':attribute 欄位必填。',
37     'gt'                   => [
38         'numeric' => ':attribute 必須大於 :value。',
39         'file'    => ':attribute 必須大於 :value KB。',
40         'string'  => ':attribute 必須多於 :value 個字元。',
41         'array'   => ':attribute 必須包含多於 :value 個項目。',
42     ],
43     'gte'                  => [
44         'numeric' => ':attribute 必須大於或等於 :value。',
45         'file'    => ':attribute 必須大於或等於 :value KB。',
46         'string'  => ':attribute 必須多於或等於 :value 個字元。',
47         'array'   => ':attribute 必須有 :value 或更多項。',
48     ],
49     'exists'               => '選定的 :attribute 無效。',
50     'image'                => ':attribute 必須為圖片。',
51     'image_extension'      => ':attribute 必須包含有效且受支援的圖片副檔名。',
52     'in'                   => '選定的 :attribute 無效。',
53     'integer'              => ':attribute 必須是整數。',
54     'ip'                   => ':attribute 必須是有效的 IP 位置。',
55     'ipv4'                 => ':attribute 必須是有效的 IPv4 位置。',
56     'ipv6'                 => ':attribute 必須是有效的 IPv6 位置。',
57     'json'                 => ':attribute 必須是有效的 JSON 字串。',
58     'lt'                   => [
59         'numeric' => ':attribute 必須小於 :value。',
60         'file'    => ':attribute 必須小於 :value KB。',
61         'string'  => ':attribute 必須少於 :value 個字元。',
62         'array'   => ':attribute 必須少於 :value 個項目。',
63     ],
64     'lte'                  => [
65         'numeric' => ':attribute 必須小於或等於 :value。',
66         'file'    => ':attribute 必須小於或等於 :value KB。',
67         'string'  => ':attribute 必須少於或等於 :value 個字元。',
68         'array'   => ':attribute 不能超過 :value 個項目。',
69     ],
70     'max'                  => [
71         'numeric' => ':attribute 不能超過 :max。',
72         'file'    => ':attribute 不能超過 :max KB。',
73         'string'  => ':attribute 不能超過 :max 個字元。',
74         'array'   => ':attribute 不能有超過:max項。',
75     ],
76     'mimes'                => ':attribute 必須是 :values 類型的檔案。',
77     'min'                  => [
78         'numeric' => ':attribute 至少為:min。',
79         'file'    => ':attribute 必須至少為:min KB。',
80         'string'  => ':attribute 至少為:min個字元。',
81         'array'   => ':attribute 至少有:min項。',
82     ],
83     'not_in'               => '選中的 :attribute 無效。',
84     'not_regex'            => 'The :attribute格式無效。',
85     'numeric'              => ':attribute 必須是一個數。',
86     'regex'                => ':attribute 格式無效。',
87     'required'             => ':attribute 字段是必需的。',
88     'required_if'          => '當:other為:value時,:attribute 字段是必需的。',
89     'required_with'        => '當:values存在時,:attribute 字段是必需的。',
90     'required_with_all'    => '當:values存在時,:attribute 字段是必需的。',
91     'required_without'     => '當:values不存在時,:attribute 字段是必需的。',
92     'required_without_all' => '當:values均不存在時,:attribute 字段是必需的。',
93     'same'                 => ':attribute 與 :other 必須匹配。',
94     'safe_url'             => '提供的連結可能不安全。',
95     'size'                 => [
96         'numeric' => ':attribute 必須為:size。',
97         'file'    => ':attribute 必須為:size KB。',
98         'string'  => ':attribute 必須為:size個字元。',
99         'array'   => ':attribute 必須包含:size項。',
100     ],
101     'string'               => ':attribute 必須是字元串。',
102     'timezone'             => ':attribute 必須是有效的區域。',
103     'totp'                 => '提供的代碼無效或已過期。',
104     'unique'               => ':attribute 已經被使用。',
105     'url'                  => ':attribute 格式無效。',
106     'uploaded'             => '無法上傳文件, 服務器可能不接受此大小的文件。',
107
108     // Custom validation lines
109     'custom' => [
110         'password-confirm' => [
111             'required_with' => '需要確認密碼',
112         ],
113     ],
114
115     // Custom validation attributes
116     'attributes' => [],
117 ];