|
| 1 | +<?php |
| 2 | + |
| 3 | +return array( |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Validation Language Lines |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | The following language lines contain the default error messages used |
| 11 | + | by the validator class. Some of the rules contain multiple versions, |
| 12 | + | such as the size (max, min, between) rules. These versions are used |
| 13 | + | for different input types such as strings and files. |
| 14 | + | |
| 15 | + | These language lines may be easily changed to provide custom error |
| 16 | + | messages in your application. Error messages for custom validation |
| 17 | + | rules may also be added to this file. |
| 18 | + | |
| 19 | + */ |
| 20 | + |
| 21 | + "accepted" => "您必须同意 :attribute 才能继续.", |
| 22 | + "active_url" => "链接 :attribute 不合法.", |
| 23 | + "after" => " :attribute 时间必须晚于 :date.", |
| 24 | + "alpha" => "字段 :attribute 只能包含字母.", |
| 25 | + "alpha_dash" => "字段 :attribute 只能包含 字母, 数字, 中横线.", |
| 26 | + "alpha_num" => "字段 :attribute 只能包含 字母, 数字.", |
| 27 | + "array" => "字段 :attribute 必须选择.", |
| 28 | + "before" => " :attribute 日期必须早于 :date.", |
| 29 | + "between" => array( |
| 30 | + "numeric" => "数字 :attribute 必须大于 :min 且小于 :max.", |
| 31 | + "file" => "文件 :attribute 大小必须大于 :min 且小于 :max KB.", |
| 32 | + "string" => "字段 :attribute 长度必须大于 :min 且小于 :max .", |
| 33 | + ), |
| 34 | + "confirmed" => " :attribute 确认项不匹配.", |
| 35 | + "count" => " :attribute 必须只能包含 :count 项.", |
| 36 | + "countbetween" => " :attribute 至少要有 :min 项,最多 :max 项.", |
| 37 | + "countmax" => " :attribute 不能超过 :max 项.", |
| 38 | + "countmin" => " :attribute 至少要选择 :min 项.", |
| 39 | + "date_format" => " :attribute 不是合法的日期格式.", |
| 40 | + "different" => " :attribute 和 :other 不能一样.", |
| 41 | + "email" => " :attribute 不是合法的邮箱地址.", |
| 42 | + "exists" => " :attribute 不合法或不存在.", |
| 43 | + "image" => " :attribute 必须为图片类型.", |
| 44 | + "in" => " 选择的 :attribute 不正确.", |
| 45 | + "integer" => " :attribute 必须为整数.", |
| 46 | + "ip" => " :attribute 必须为合法的IP地址.", |
| 47 | + "match" => " :attribute 格式不正确.", |
| 48 | + "max" => array( |
| 49 | + "numeric" => "数字 :attribute 不能大于 :max.", |
| 50 | + "file" => "文件 :attribute 不能超过 :max KB.", |
| 51 | + "string" => "字段 :attribute 不能超过 :max 字符.", |
| 52 | + ), |
| 53 | + "mimes" => "文件 :attribute 只能为类型: :values.", |
| 54 | + "min" => array( |
| 55 | + "numeric" => "数字 :attribute 不能小于 :min.", |
| 56 | + "file" => "文件 :attribute 不能小于 :min KB.", |
| 57 | + "string" => "字段 :attribute 不能少于 :min 字符.", |
| 58 | + ), |
| 59 | + "not_in" => "选择的 :attribute 不正确.", |
| 60 | + "numeric" => " :attribute 必须的是数字.", |
| 61 | + "required" => " :attribute 不能为空.", |
| 62 | + "required_with" => "字段 :attribute field is required with :field", |
| 63 | + "same" => "The :attribute and :other must match.", |
| 64 | + "size" => array( |
| 65 | + "numeric" => "数字 :attribute 只能是 :size.", |
| 66 | + "file" => "文件 :attribute 只能是 :size KB.", |
| 67 | + "string" => "字段 :attribute 只能包含 :size 字符.", |
| 68 | + ), |
| 69 | + "unique" => ":attribute 已经被占用.", |
| 70 | + "url" => ":attribute 不合法.", |
| 71 | + |
| 72 | + /* |
| 73 | + |-------------------------------------------------------------------------- |
| 74 | + | Custom Validation Language Lines |
| 75 | + |-------------------------------------------------------------------------- |
| 76 | + | |
| 77 | + | Here you may specify custom validation messages for attributes using the |
| 78 | + | convention "attribute_rule" to name the lines. This helps keep your |
| 79 | + | custom validation clean and tidy. |
| 80 | + | |
| 81 | + | So, say you want to use a custom validation message when validating that |
| 82 | + | the "email" attribute is unique. Just add "email_unique" to this array |
| 83 | + | with your custom message. The Validator will handle the rest! |
| 84 | + | |
| 85 | + */ |
| 86 | + |
| 87 | + 'custom' => array(), |
| 88 | + |
| 89 | + /* |
| 90 | + |-------------------------------------------------------------------------- |
| 91 | + | Validation Attributes |
| 92 | + |-------------------------------------------------------------------------- |
| 93 | + | |
| 94 | + | The following language lines are used to swap attribute place-holders |
| 95 | + | with something more reader friendly such as "E-Mail Address" instead |
| 96 | + | of "email". Your users will thank you. |
| 97 | + | |
| 98 | + | The Validator class will automatically search this array of lines it |
| 99 | + | is attempting to replace the :attribute place-holder in messages. |
| 100 | + | It's pretty slick. We think you'll like it. |
| 101 | + | |
| 102 | + */ |
| 103 | + |
| 104 | + 'attributes' => array(), |
| 105 | + |
| 106 | +); |
0 commit comments