|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Validation Language Lines |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | The following language lines contain the default error messages used by |
| 11 | + | the validator class. Some of these rules have multiple versions such |
| 12 | + | such as the size rules. Feel free to tweak each of these messages. |
| 13 | + | |
| 14 | + */ |
| 15 | + |
| 16 | + 'accepted' => ':attribute 必须接受。', |
| 17 | + 'active_url' => ':attribute 不是一个有效的网址。', |
| 18 | + 'after' => ':attribute 必须是一个在 :date 之后的日期。', |
| 19 | + 'alpha' => ':attribute 只能由字母组成。', |
| 20 | + 'alpha_dash' => ':attribute 只能由字母、数字和斜杠组成。', |
| 21 | + 'alpha_num' => ':attribute 只能由字母和数字组成。', |
| 22 | + 'array' => ':attribute 必须是一个数组。', |
| 23 | + 'before' => ':attribute 必须是一个在 :date 之前的日期。', |
| 24 | + 'between' => [ |
| 25 | + 'numeric' => ':attribute 必须介于 :min - :max 之间。', |
| 26 | + 'file' => ':attribute 必须介于 :min - :max kb 之间。', |
| 27 | + 'string' => ':attribute 必须介于 :min - :max 个字符之间。', |
| 28 | + 'array' => ':attribute 必须只有 :min - :max 个单元。', |
| 29 | + ], |
| 30 | + 'boolean' => ':attribute 必须为布尔值。', |
| 31 | + 'confirmed' => ':attribute 两次输入不一致。', |
| 32 | + 'date' => ':attribute 不是一个有效的日期。', |
| 33 | + 'date_format' => ':attribute 的格式必须为 :format。', |
| 34 | + 'different' => ':attribute 和 :other 必须不同。', |
| 35 | + 'digits' => ':attribute 必须是 :digits 位的数字。', |
| 36 | + 'digits_between' => ':attribute 必须是介于 :min 和 :max 位的数字。', |
| 37 | + 'dimensions' => 'The :attribute has invalid image dimensions.', |
| 38 | + 'distinct' => ':attribute 已經存在。', |
| 39 | + 'email' => ':attribute 不是一个合法的邮箱。', |
| 40 | + 'exists' => ':attribute 不存在。', |
| 41 | + 'filled' => ':attribute 不能为空。', |
| 42 | + 'image' => ':attribute 必须是图片。', |
| 43 | + 'in' => '已选的属性 :attribute 非法。', |
| 44 | + 'in_array' => ':attribute 没有在 :other 中。', |
| 45 | + 'integer' => ':attribute 必须是整数。', |
| 46 | + 'ip' => ':attribute 必须是有效的 IP 地址。', |
| 47 | + 'json' => ':attribute 必须是正确的 JSON 格式。', |
| 48 | + 'max' => [ |
| 49 | + 'numeric' => ':attribute 不能大于 :max。', |
| 50 | + 'file' => ':attribute 不能大于 :max kb。', |
| 51 | + 'string' => ':attribute 不能大于 :max 个字符。', |
| 52 | + 'array' => ':attribute 最多只有 :max 个单元。', |
| 53 | + ], |
| 54 | + 'mimes' => ':attribute 必须是一个 :values 类型的文件。', |
| 55 | + 'min' => [ |
| 56 | + 'numeric' => ':attribute 必须大于等于 :min。', |
| 57 | + 'file' => ':attribute 大小不能小于 :min kb。', |
| 58 | + 'string' => ':attribute 至少为 :min 个字符。', |
| 59 | + 'array' => ':attribute 至少有 :min 个单元。', |
| 60 | + ], |
| 61 | + 'not_in' => '已选的属性 :attribute 非法。', |
| 62 | + 'numeric' => ':attribute 必须是一个数字。', |
| 63 | + 'present' => ':attribute 必须存在。', |
| 64 | + 'regex' => ':attribute 格式不正确。', |
| 65 | + 'required' => ':attribute 不能为空。', |
| 66 | + 'required_if' => '当 :other 为 :value 时 :attribute 不能为空。', |
| 67 | + 'required_unless' => '当 :other 不为 :value 时 :attribute 不能为空。', |
| 68 | + 'required_with' => '当 :values 存在时 :attribute 不能为空。', |
| 69 | + 'required_with_all' => '当 :values 存在时 :attribute 不能为空。', |
| 70 | + 'required_without' => '当 :values 不存在时 :attribute 不能为空。', |
| 71 | + 'required_without_all' => '当 :values 都不存在时 :attribute 不能为空。', |
| 72 | + 'same' => ':attribute 和 :other 必须相同。', |
| 73 | + 'size' => [ |
| 74 | + 'numeric' => ':attribute 大小必须为 :size。', |
| 75 | + 'file' => ':attribute 大小必须为 :size kb。', |
| 76 | + 'string' => ':attribute 必须是 :size 个字符。', |
| 77 | + 'array' => ':attribute 必须为 :size 个单元。', |
| 78 | + ], |
| 79 | + 'string' => ':attribute 必须是一个字符串。', |
| 80 | + 'timezone' => ':attribute 必须是一个合法的时区值。', |
| 81 | + 'unique' => ':attribute 已经存在。', |
| 82 | + 'url' => ':attribute 格式不正确。', |
| 83 | + |
| 84 | + /* |
| 85 | + |-------------------------------------------------------------------------- |
| 86 | + | Custom Validation Language Lines |
| 87 | + |-------------------------------------------------------------------------- |
| 88 | + | |
| 89 | + | Here you may specify custom validation messages for attributes using the |
| 90 | + | convention 'attribute.rule' to name the lines. This makes it quick to |
| 91 | + | specify a specific custom language line for a given attribute rule. |
| 92 | + | |
| 93 | + */ |
| 94 | + |
| 95 | + 'custom' => [ |
| 96 | + 'attribute-name' => [ |
| 97 | + 'rule-name' => 'custom-message', |
| 98 | + ], |
| 99 | + ], |
| 100 | + |
| 101 | + /* |
| 102 | + |-------------------------------------------------------------------------- |
| 103 | + | Custom Validation Attributes |
| 104 | + |-------------------------------------------------------------------------- |
| 105 | + | |
| 106 | + | The following language lines are used to swap attribute place-holders |
| 107 | + | with something more reader friendly such as E-Mail Address instead |
| 108 | + | of 'email'. This simply helps us make messages a little cleaner. |
| 109 | + | |
| 110 | + */ |
| 111 | + |
| 112 | + 'attributes' => [ |
| 113 | + 'name' => '名称', |
| 114 | + 'username' => '用户名', |
| 115 | + 'email' => '邮箱', |
| 116 | + 'first_name' => '名', |
| 117 | + 'last_name' => '姓', |
| 118 | + 'password' => '密码', |
| 119 | + 'password_confirmation' => '确认密码', |
| 120 | + 'city' => '城市', |
| 121 | + 'country' => '国家', |
| 122 | + 'address' => '地址', |
| 123 | + 'phone' => '电话', |
| 124 | + 'mobile' => '手机', |
| 125 | + 'age' => '年轻', |
| 126 | + 'sex' => '性别', |
| 127 | + 'gender' => '性别', |
| 128 | + 'day' => '天', |
| 129 | + 'month' => '月', |
| 130 | + 'year' => '年', |
| 131 | + 'hour' => '时', |
| 132 | + 'minute' => '分', |
| 133 | + 'second' => '秒', |
| 134 | + 'title' => '标题', |
| 135 | + 'content' => '内容', |
| 136 | + 'description' => '描述', |
| 137 | + 'excerpt' => '摘要', |
| 138 | + 'date' => '日期', |
| 139 | + 'time' => '时间', |
| 140 | + 'available' => '可用的', |
| 141 | + 'size' => '大小', |
| 142 | + ], |
| 143 | + |
| 144 | +]; |
0 commit comments