Skip to content

Commit

Permalink
Improve Chinese translations
Browse files Browse the repository at this point in the history
Make translation smooth

Closes gh-871
  • Loading branch information
steelywing authored and nschonni committed Sep 5, 2013
1 parent d967e47 commit 1a0bfe3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
36 changes: 18 additions & 18 deletions src/localization/messages_zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
*/
(function ($) {
$.extend($.validator.messages, {
required: "必选字段",
remote: "请修正该字段",
email: "请输入正确格式的电子邮件",
url: "请输入合法的网址",
date: "请输入合法的日期",
dateISO: "请输入合法的日期 (ISO).",
number: "请输入合法的数字",
digits: "只能输入整数",
creditcard: "请输入合法的信用卡号",
equalTo: "请再次输入相同的值",
extension: "请输入拥有合法后缀名的字符串",
maxlength: $.validator.format("请输入一个长度最多是 {0} 的字符串"),
minlength: $.validator.format("请输入一个长度最少是 {0} 的字符串"),
rangelength: $.validator.format("请输入一个长度介于 {0} {1} 之间的字符串"),
range: $.validator.format("请输入一个介于 {0} {1} 之间的值"),
max: $.validator.format("请输入一个最大为 {0} 的值"),
min: $.validator.format("请输入一个最小为 {0} 的值")
required: "必须填写",
remote: "请修正此栏位",
email: "请输入有效的电子邮件",
url: "请输入有效的网址",
date: "请输入有效的日期",
dateISO: "请输入有效的日期 (YYYY-MM-DD)",
number: "请输入正确的数字",
digits: "只可输入数字",
creditcard: "请输入有效的信用卡号码",
equalTo: "你的输入不相同",
extension: "请输入有效的后缀",
maxlength: $.validator.format("最多 {0} 个字"),
minlength: $.validator.format("最少 {0} 个字"),
rangelength: $.validator.format("请输入长度为 {0} {1} 之間的字串"),
range: $.validator.format("请输入 {0} {1} 之间的数值"),
max: $.validator.format("请输入不大于 {0} 的数值"),
min: $.validator.format("请输入不小于 {0} 的数值")
});
}(jQuery));
}(jQuery));
28 changes: 14 additions & 14 deletions src/localization/messages_zh_TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
*/
(function ($) {
$.extend($.validator.messages, {
required: "必填",
required: "必須填寫",
remote: "請修正此欄位",
email: "請輸入正確的電子信箱",
url: "請輸入合法的URL",
date: "請輸入合法的日期",
dateISO: "請輸入合法的日期 (ISO).",
number: "請輸入數字",
digits: "請輸入整數",
creditcard: "請輸入合法的信用卡號碼",
email: "請輸入有效的電子郵件",
url: "請輸入有效的網址",
date: "請輸入有效的日期",
dateISO: "請輸入有效的日期 (YYYY-MM-DD)",
number: "請輸入正確的數值",
digits: "只可輸入數字",
creditcard: "請輸入有效的信用卡號碼",
equalTo: "請重複輸入一次",
extension: "請輸入有效的後缀字串",
maxlength: $.validator.format("請輸入長度不大於{0} 的字串"),
minlength: $.validator.format("請輸入長度不小於 {0} 的字串"),
rangelength: $.validator.format("請輸入長度介於 {0} {1} 之間的字串"),
range: $.validator.format("請輸入介於 {0} {1} 之間的數值"),
extension: "請輸入有效的後綴",
maxlength: $.validator.format("最多 {0} 個字"),
minlength: $.validator.format("最少 {0} 個字"),
rangelength: $.validator.format("請輸入長度為 {0} {1} 之間的字串"),
range: $.validator.format("請輸入 {0} {1} 之間的數值"),
max: $.validator.format("請輸入不大於 {0} 的數值"),
min: $.validator.format("請輸入不小於 {0} 的數值")
});
}(jQuery));
}(jQuery));

0 comments on commit 1a0bfe3

Please sign in to comment.