Diff
Index: zh_tw.js
--- zh_tw.js (nonexistent)
+++ zh_tw.js (revision 4)
@@ -0,0 +1,29 @@
+// Validation errors messages for Parsley
+// Load this after Parsley
+
+Parsley.addMessages('zh-tw', {
+ defaultMessage: "這個值似乎是無效的。",
+ type: {
+ email: "請輸入一個正確的電子郵件地址。",
+ url: "請輸入一個有效的網址。",
+ number: "請輸入一個數字。",
+ integer: "請輸入一個整數。",
+ digits: "這個欄位只接受數字。",
+ alphanum: "這個欄位只接受英文字母或是數字。"
+ },
+ notblank: "這個欄位不能為空白。",
+ required: "這個欄位必須填寫。",
+ pattern: "這個值似乎是無效的。",
+ min: "輸入的值應該大於或等於 %s",
+ max: "輸入的值應該小於或等於 %s",
+ range: "輸入的值應該在 %s 和 %s 之間。",
+ minlength: "輸入的值至少要有 %s 個字元。",
+ maxlength: "輸入的值最多可以有 %s 個字元。",
+ length: "字元長度應該在 %s 和 %s 之間。",
+ mincheck: "你至少要選擇 %s 個項目。",
+ maxcheck: "你最多可選擇 %s 個項目。",
+ check: "你必須選擇 %s 到 %s 個項目。",
+ equalto: "輸入值不同。"
+});
+
+Parsley.setLocale('zh-tw');
Property changes on: zh_tw.js
Added: svn:executable
-0,0 +1
+*
\ No newline at end of property
Full Code
// Validation errors messages for Parsley
// Load this after Parsley
Parsley.addMessages('zh-tw', {
defaultMessage: "這個值似乎是無效的。",
type: {
email: "請輸入一個正確的電子郵件地址。",
url: "請輸入一個有效的網址。",
number: "請輸入一個數字。",
integer: "請輸入一個整數。",
digits: "這個欄位只接受數字。",
alphanum: "這個欄位只接受英文字母或是數字。"
},
notblank: "這個欄位不能為空白。",
required: "這個欄位必須填寫。",
pattern: "這個值似乎是無效的。",
min: "輸入的值應該大於或等於 %s",
max: "輸入的值應該小於或等於 %s",
range: "輸入的值應該在 %s 和 %s 之間。",
minlength: "輸入的值至少要有 %s 個字元。",
maxlength: "輸入的值最多可以有 %s 個字元。",
length: "字元長度應該在 %s 和 %s 之間。",
mincheck: "你至少要選擇 %s 個項目。",
maxcheck: "你最多可選擇 %s 個項目。",
check: "你必須選擇 %s 到 %s 個項目。",
equalto: "輸入值不同。"
});
Parsley.setLocale('zh-tw');