From 3018bcce718665e28b6fcf8b48fc3ef79f9d8c65 Mon Sep 17 00:00:00 2001 From: vus520 Date: Wed, 22 May 2013 14:06:34 +0800 Subject: [PATCH] add Simplified Chinese language package --- application/language/cn/pagination.php | 19 +++++ application/language/cn/validation.php | 106 +++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 application/language/cn/pagination.php create mode 100644 application/language/cn/validation.php diff --git a/application/language/cn/pagination.php b/application/language/cn/pagination.php new file mode 100644 index 00000000..4454230f --- /dev/null +++ b/application/language/cn/pagination.php @@ -0,0 +1,19 @@ + '« 上一页', + 'next' => '下一页 »', + +); \ No newline at end of file diff --git a/application/language/cn/validation.php b/application/language/cn/validation.php new file mode 100644 index 00000000..aed90e43 --- /dev/null +++ b/application/language/cn/validation.php @@ -0,0 +1,106 @@ + "您必须同意 :attribute 才能继续.", + "active_url" => "链接 :attribute 不合法.", + "after" => " :attribute 时间必须晚于 :date.", + "alpha" => "字段 :attribute 只能包含字母.", + "alpha_dash" => "字段 :attribute 只能包含 字母, 数字, 中横线.", + "alpha_num" => "字段 :attribute 只能包含 字母, 数字.", + "array" => "字段 :attribute 必须选择.", + "before" => " :attribute 日期必须早于 :date.", + "between" => array( + "numeric" => "数字 :attribute 必须大于 :min 且小于 :max.", + "file" => "文件 :attribute 大小必须大于 :min 且小于 :max KB.", + "string" => "字段 :attribute 长度必须大于 :min 且小于 :max .", + ), + "confirmed" => " :attribute 确认项不匹配.", + "count" => " :attribute 必须只能包含 :count 项.", + "countbetween" => " :attribute 至少要有 :min 项,最多 :max 项.", + "countmax" => " :attribute 不能超过 :max 项.", + "countmin" => " :attribute 至少要选择 :min 项.", + "date_format" => " :attribute 不是合法的日期格式.", + "different" => " :attribute 和 :other 不能一样.", + "email" => " :attribute 不是合法的邮箱地址.", + "exists" => " :attribute 不合法或不存在.", + "image" => " :attribute 必须为图片类型.", + "in" => " 选择的 :attribute 不正确.", + "integer" => " :attribute 必须为整数.", + "ip" => " :attribute 必须为合法的IP地址.", + "match" => " :attribute 格式不正确.", + "max" => array( + "numeric" => "数字 :attribute 不能大于 :max.", + "file" => "文件 :attribute 不能超过 :max KB.", + "string" => "字段 :attribute 不能超过 :max 字符.", + ), + "mimes" => "文件 :attribute 只能为类型: :values.", + "min" => array( + "numeric" => "数字 :attribute 不能小于 :min.", + "file" => "文件 :attribute 不能小于 :min KB.", + "string" => "字段 :attribute 不能少于 :min 字符.", + ), + "not_in" => "选择的 :attribute 不正确.", + "numeric" => " :attribute 必须的是数字.", + "required" => " :attribute 不能为空.", + "required_with" => "字段 :attribute field is required with :field", + "same" => "The :attribute and :other must match.", + "size" => array( + "numeric" => "数字 :attribute 只能是 :size.", + "file" => "文件 :attribute 只能是 :size KB.", + "string" => "字段 :attribute 只能包含 :size 字符.", + ), + "unique" => ":attribute 已经被占用.", + "url" => ":attribute 不合法.", + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute_rule" to name the lines. This helps keep your + | custom validation clean and tidy. + | + | So, say you want to use a custom validation message when validating that + | the "email" attribute is unique. Just add "email_unique" to this array + | with your custom message. The Validator will handle the rest! + | + */ + + 'custom' => array(), + + /* + |-------------------------------------------------------------------------- + | Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap attribute place-holders + | with something more reader friendly such as "E-Mail Address" instead + | of "email". Your users will thank you. + | + | The Validator class will automatically search this array of lines it + | is attempting to replace the :attribute place-holder in messages. + | It's pretty slick. We think you'll like it. + | + */ + + 'attributes' => array(), + +);