Skip to content

Commit f1e38a4

Browse files
committed
Optimized the Chinese translate template of validator
1 parent aeaa639 commit f1e38a4

File tree

1 file changed

+79
-80
lines changed

1 file changed

+79
-80
lines changed

publish/zh_CN/validation.php

Lines changed: 79 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -22,95 +22,94 @@
2222
|
2323
*/
2424

25-
'accepted' => ':attribute 必须接受',
26-
'active_url' => ':attribute 不是一个有效的网址。',
27-
'after' => ':attribute 必须是一个在 :date 之后的日期。',
28-
'after_or_equal' => ':attribute 必须是一个等于 :date 或之后的日期。',
29-
'alpha' => ':attribute 只能由字母组成。',
30-
'alpha_dash' => ':attribute 只能由字母、数字和斜杠组成。',
31-
'alpha_num' => ':attribute 只能由字母和数字组成。',
32-
'array' => ':attribute 必须是一个数组',
33-
'before' => ':attribute 必须是一个在 :date 之前的日期。',
34-
'before_or_equal' => ':attribute 必须是一个等于 :date 或之前的日期。',
25+
'accepted' => ':attribute 必须接受',
26+
'active_url' => ':attribute 必须是一个合法的 URL',
27+
'after' => ':attribute 必须是 :date 之后的一个日期',
28+
'after_or_equal' => ':attribute 必须是 :date 之后或相同的一个日期',
29+
'alpha' => ':attribute 只能包含字母',
30+
'alpha_dash' => ':attribute 只能包含字母、数字、中划线或下划线',
31+
'alpha_num' => ':attribute 只能包含字母和数字',
32+
'array' => ':attribute 必须是一个数组',
33+
'before' => ':attribute 必须是 :date 之前的一个日期',
34+
'before_or_equal' => ':attribute 必须是 :date 之前或相同的一个日期',
3535
'between' => [
36-
'numeric' => ':attribute 必须介于 :min - :max 之间',
37-
'file' => ':attribute 必须介于 :min - :max kb 之间',
38-
'string' => ':attribute 必须介于 :min - :max 个字符之间',
39-
'array' => ':attribute 必须只有 :min - :max 个单元。',
36+
'numeric' => ':attribute 必须在 :min :max 之间',
37+
'file' => ':attribute 必须在 :min :max KB 之间',
38+
'string' => ':attribute 必须在 :min :max 个字符之间',
39+
'array' => ':attribute 必须在 :min :max 项之间',
4040
],
41-
'boolean' => ':attribute 必须为布尔值。',
42-
'confirmed' => ':attribute 两次输入不一致。',
43-
'date' => ':attribute 不是一个有效的日期。',
44-
'date_format' => ':attribute 的格式必须为 :format',
45-
'different' => ':attribute :other 必须不同。',
46-
'digits' => ':attribute 必须是 :digits 位的数字。',
47-
'digits_between' => ':attribute 必须是介于 :min 和 :max 位的数字。',
48-
'dimensions' => ':attribute 图片尺寸无效。',
49-
'distinct' => ':attribute 已经存在相同的值。',
50-
'email' => ':attribute 不是一个合法的邮箱。',
51-
'exists' => ':attribute 不存在。',
52-
'file' => ':attribute 必须是一个文件',
53-
'filled' => ':attribute 不能为空。',
54-
'image' => ':attribute 必须是图片。',
55-
'in' => '已选的属性 :attribute 非法。',
56-
'in_array' => '字段 :attribute :other 中不存在。',
57-
'integer' => ':attribute 必须是整数。',
58-
'ip' => ':attribute 必须是有效的 IP 地址',
59-
'json' => ':attribute 必须是正确的 JSON 格式。',
41+
'boolean' => ':attribute 字符必须是 true 或 false, 1 或 0',
42+
'confirmed' => ':attribute 二次确认不匹配',
43+
'date' => ':attribute 必须是一个合法的日期',
44+
'date_format' => ':attribute 与给定的格式 :format 不符合',
45+
'different' => ':attribute 必须不同于 :other',
46+
'digits' => ':attribute 必须是 :digits ',
47+
'digits_between' => ':attribute 必须在 :min 和 :max 位之间',
48+
'dimensions' => ':attribute 具有无效的图片尺寸',
49+
'distinct' => ':attribute 字段具有重复值',
50+
'email' => ':attribute 必须是一个合法的电子邮件地址',
51+
'exists' => '选定的 :attribute 是无效的',
52+
'file' => ':attribute 必须是一个文件',
53+
'filled' => ':attribute 的字段是必填的',
54+
'image' => ':attribute 必须是 jpeg, png, bmp 或者 gif 格式的图片',
55+
'in' => '选定的 :attribute 是无效的',
56+
'in_array' => ':attribute 字段不存在于 :other',
57+
'integer' => ':attribute 必须是个整数',
58+
'ip' => ':attribute 必须是一个合法的 IP 地址',
59+
'json' => ':attribute 必须是一个合法的 JSON 字符串',
6060
'max' => [
61-
'numeric' => ':attribute 不能大于 :max',
62-
'file' => ':attribute 不能大于 :max kb。',
63-
'string' => ':attribute 不能大于 :max 个字符。',
64-
'array' => ':attribute 最多只有 :max 个单元。',
61+
'numeric' => ':attribute 的最大长度为 :max',
62+
'file' => ':attribute 的最大为 :max',
63+
'string' => ':attribute 的最大长度为 :max 字符',
64+
'array' => ':attribute 的最大个数为 :max ',
6565
],
66-
'mimes' => ':attribute 必须是一个 :values 类型的文件。',
67-
'mimetypes' => ':attribute 必须是以下文件类型: :values。',
66+
'mimes' => ':attribute 的文件类型必须是 :values',
6867
'min' => [
69-
'numeric' => ':attribute 必须大于等于 :min',
70-
'file' => ':attribute 大小不能小于 :min kb。',
71-
'string' => ':attribute 至少为 :min 个字符。',
72-
'array' => ':attribute 至少有 :min 个单元。',
68+
'numeric' => ':attribute 的最小长度为 :min',
69+
'file' => ':attribute 大小至少为 :min KB',
70+
'string' => ':attribute 的最小长度为 :min 字符',
71+
'array' => ':attribute 至少有 :min ',
7372
],
74-
'not_in' => '已选的属性 :attribute 非法。',
75-
'numeric' => ':attribute 必须是一个数字。',
76-
'present' => ':attribute 字段不行存在。',
77-
'regex' => ':attribute 格式不正确。',
78-
'required' => ':attribute 不能为空。',
79-
'required_if' => '当 :other 为 :value 时 :attribute 不能为空。',
80-
'required_unless' => '当 :other 不为 :value 时 :attribute 不能为空。',
81-
'required_with' => '当 :values 存在时 :attribute 不能为空。',
82-
'required_with_all' => '当 :values 存在时 :attribute 不能为空。',
83-
'required_without' => '当 :values 不存在时 :attribute 不能为空。',
84-
'required_without_all' => '当 :values 都不存在时 :attribute 不能为空。',
85-
'same' => ':attribute 和 :other 必须相同。',
73+
'not_in' => '选定的 :attribute 是无效的',
74+
'numeric' => ':attribute 必须是数字',
75+
'present' => ':attribute 字段必须存在',
76+
'regex' => ':attribute 格式是无效的',
77+
'required' => ':attribute 字段是必须的',
78+
'required_if' => ':attribute 字段是必须的当 :other 是 :value',
79+
'required_unless' => ':attribute 字段是必须的,除非 :other 是在 :values 中',
80+
'required_with' => ':attribute 字段是必须的当 :values 是存在的',
81+
'required_with_all' => ':attribute 字段是必须的当 :values 是存在的',
82+
'required_without' => ':attribute 字段是必须的当 :values 是不存在的',
83+
'required_without_all' => ':attribute 字段是必须的当 没有一个 :values 是存在的',
84+
'same' => ':attribute 和 :other 必须匹配',
8685
'size' => [
87-
'numeric' => ':attribute 大小必须为 :size',
88-
'file' => ':attribute 大小必须为 :size kb。',
89-
'string' => ':attribute 必须是 :size 个字符',
90-
'array' => ':attribute 必须为 :size 个单元。',
86+
'numeric' => ':attribute 必须是 :size',
87+
'file' => ':attribute 必须是 :size KB',
88+
'string' => ':attribute 必须是 :size 个字符',
89+
'array' => ':attribute 必须包括 :size ',
9190
],
92-
'string' => ':attribute 必须是一个字符串',
93-
'timezone' => ':attribute 必须是一个合法的时区值。',
94-
'unique' => ':attribute 已经存在。',
95-
'uploaded' => ':attribute 上传失败',
96-
'url' => ':attribute 格式不正确。',
91+
'string' => ':attribute 必须是一个字符串',
92+
'timezone' => ':attribute 必须是个有效的时区',
93+
'unique' => ':attribute 已存在',
94+
'uploaded' => ':attribute 上传失败',
95+
'url' => ':attribute 无效的格式',
9796
'max_if' => [
98-
'numeric' => '当 :other 为 :value 时 :attribute 不能大于 :max',
99-
'file' => '当 :other 为 :value 时 :attribute 不能大于 :max kb',
100-
'string' => '当 :other 为 :value 时 :attribute 不能大于 :max 个字符',
101-
'array' => '当 :other 为 :value 时 :attribute 最多只有 :max 个单元',
97+
'numeric' => '当 :other 为 :value 时 :attribute 不能大于 :max',
98+
'file' => '当 :other 为 :value 时 :attribute 不能大于 :max kb',
99+
'string' => '当 :other 为 :value 时 :attribute 不能大于 :max 个字符',
100+
'array' => '当 :other 为 :value 时 :attribute 最多只有 :max 个单元',
102101
],
103102
'min_if' => [
104-
'numeric' => '当 :other 为 :value 时 :attribute 必须大于等于 :min',
105-
'file' => '当 :other 为 :value 时 :attribute 大小不能小于 :min kb',
106-
'string' => '当 :other 为 :value 时 :attribute 至少为 :min 个字符',
107-
'array' => '当 :other 为 :value 时 :attribute 至少有 :min 个单元',
103+
'numeric' => '当 :other 为 :value 时 :attribute 必须大于等于 :min',
104+
'file' => '当 :other 为 :value 时 :attribute 大小不能小于 :min kb',
105+
'string' => '当 :other 为 :value 时 :attribute 至少为 :min 个字符',
106+
'array' => '当 :other 为 :value 时 :attribute 至少有 :min 个单元',
108107
],
109108
'between_if' => [
110-
'numeric' => '当 :other 为 :value 时 :attribute 必须介于 :min - :max 之间',
111-
'file' => '当 :other 为 :value 时 :attribute 必须介于 :min - :max kb 之间',
112-
'string' => '当 :other 为 :value 时 :attribute 必须介于 :min - :max 个字符之间',
113-
'array' => '当 :other 为 :value 时 :attribute 必须只有 :min - :max 个单元',
109+
'numeric' => '当 :other 为 :value 时 :attribute 必须介于 :min - :max 之间',
110+
'file' => '当 :other 为 :value 时 :attribute 必须介于 :min - :max kb 之间',
111+
'string' => '当 :other 为 :value 时 :attribute 必须介于 :min - :max 个字符之间',
112+
'array' => '当 :other 为 :value 时 :attribute 必须只有 :min - :max 个单元',
114113
],
115114
/*
116115
|--------------------------------------------------------------------------
@@ -141,9 +140,9 @@
141140
*/
142141

143142
'attributes' => [],
144-
'phone_number' => 'The :attribute must be a valid phone number',
145-
'telephone_number' => 'The :attribute must be a valid telephone number',
143+
'phone_number' => ':attribute 必须为一个有效的电话号码',
144+
'telephone_number' => ':attribute 必须为一个有效的手机号码',
146145

147-
'chinese_word' => 'The :attribute must contain valid characters(chinese/english character, number, underscore)',
148-
'sequential_array' => 'The :attribute must be sequential array',
146+
'chinese_word' => ':attribute 必须包含以下有效字符 (中文/英文,数字, 下划线)',
147+
'sequential_array' => ':attribute 必须是一个有序数组',
149148
];

0 commit comments

Comments
 (0)