]> BookStack Code Mirror - bookstack/blob - lang/zh_CN/validation.php
Merge pull request #5627 from BookStackApp/lexical_20250525
[bookstack] / lang / zh_CN / 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 之间。',
23         'string'  => ':attribute 必须在 :min 到 :max 个字符之间。',
24         'array'   => ':attribute 必须在 :min 到 :max 项之间.',
25     ],
26     'boolean'              => ':attribute 字段必须为真或假。',
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 k',
40         'string'  => ':attribute 必须大于 :value 字符。',
41         'array'   => ':attribute 必须包含多个 :value 项目。',
42     ],
43     'gte'                  => [
44         'numeric' => ':attribute 必须大于或等于 :value.',
45         'file'    => ':attribute 必须大于或等于 :value k。',
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 k。',
61         'string'  => ':attribute 必须小于 :value 字符。',
62         'array'   => ':attribute 必须小于 :value 项.',
63     ],
64     'lte'                  => [
65         'numeric' => ':attribute 必须小于或等于 :value.',
66         'file'    => ':attribute 必须小于或等于 :value k。',
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'            => ':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     'zip_file' => ':attribute 需要引用 ZIP 内的文件。',
109     'zip_file_mime' => ':attribute 需要引用类型为 :validTypes 的文件,找到 :foundType 。',
110     'zip_model_expected' => '预期的数据对象,但找到了 ":type" 。',
111     'zip_unique' => '对于 ZIP 中的对象类型来说,:attribute 必须是唯一的。',
112
113     // Custom validation lines
114     'custom' => [
115         'password-confirm' => [
116             'required_with' => '需要确认密码',
117         ],
118     ],
119
120     // Custom validation attributes
121     'attributes' => [],
122 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.