GPQAPP
36 строк · 1.4 Кб
1(function( factory ) {2if ( typeof define === "function" && define.amd ) {3define( ["jquery", "../jquery.validate"], factory );4} else if (typeof module === "object" && module.exports) {5module.exports = factory( require( "jquery" ) );6} else {7factory( jQuery );8}9}(function( $ ) {10
11/*
12* Translated default messages for the jQuery validation plugin.
13* Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
14*/
15$.extend( $.validator.messages, {16required: "这是必填字段",17remote: "请修正此字段",18email: "请输入有效的电子邮件地址",19url: "请输入有效的网址",20date: "请输入有效的日期",21dateISO: "请输入有效的日期 (YYYY-MM-DD)",22number: "请输入有效的数字",23digits: "只能输入数字",24creditcard: "请输入有效的信用卡号码",25equalTo: "你的输入不相同",26extension: "请输入有效的后缀",27maxlength: $.validator.format( "最多可以输入 {0} 个字符" ),28minlength: $.validator.format( "最少要输入 {0} 个字符" ),29rangelength: $.validator.format( "请输入长度在 {0} 到 {1} 之间的字符串" ),30range: $.validator.format( "请输入范围在 {0} 到 {1} 之间的数值" ),31step: $.validator.format( "请输入 {0} 的整数倍值" ),32max: $.validator.format( "请输入不大于 {0} 的数值" ),33min: $.validator.format( "请输入不小于 {0} 的数值" )34} );35return $;36}));