(function($) { $.fn.validationEngineLanguage = function() {}; $.validationEngineLanguage = { newLang: function() { $.validationEngineLanguage.allRules = { "required":{ "regex":"none", "alertText":"This field is required.", "alertTextCheckboxMultiple":"请选择一个选项。", "alertTextCheckbox":"This checkbox is required."}, "length":{ "regex":"none", "alertText":"*Between ", "alertText2":" and ", "alertText3": " characters allowed"}, "maxCheckbox":{ "regex":"none", "alertText":"* Checks allowed Exceeded"}, "minCheckbox":{ "regex":"none", "alertText":"* Please select ", "alertText2":" options"}, "confirm":{ "regex":"none", "alertText":"" }, "firstname": { "alertText":"Please enter your first name." }, "lastname": { "alertText":"Please enter your last name." }, "email":{ "regex": /^([A-Za-z0-9_\-\.\'])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,6})$/, "alertText":"请输入有效的电子邮件地址。", "alertTextInvalid":"请输入有效的电子邮件地址。" }, "phone":{ "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/, "alertText":"Please enter a valid phone number.", "alertTextInvalid":"Please enter a valid phone number." }, "country":{ "alertText":"请选择国家" }, "language":{ "alertText":"请选择您想要的回复语言。" }, "addProducts":{ "alertText":"请选择至少一个产品。" }, "pdtCategory":{ "alertText":"请选择一个产品类别。" }, "company":{ "alertText":"请输入公司名称。" }, "pdtNeedBy":{ "alertText":"Please indicate when the products to be need." }, "quantity":{ "regex":"^\\d{1,4}$", "alertText":"请输入有效数量", "alertTextInvalid":"请输入有效数量" }, "corpSaleCmt":{ "alertText":"请输入您的咨询问题的详细描述。" }, "orderNumber":{ "alertText":"Please enter your order number." }, "websiteAddress":{ "alertText":"请输入您的网站地址或出版刊物的名称。" }, "validwebsiteAddress":{ "alertText":"Please enter a valid website address." }, "RMANumber":{ "alertText":"请输入您的 RMA 号码。" }, "personID":{ "alertText":"Please enter person ID." }, "addressLine1":{ "alertText":"Please enter address line1." }, "addressLine2":{ "alertText":"Please enter address line2." }, "postCode":{ "alertText":"Please enter address postcode." }, "vat":{ "alertText":"Please enter VAT Number." }, "technicalPassword":{ "alertText":"Please enter your Creative Store password." }, "technicalProducts":{ "alertText":"请选择至少一个产品。" }, "firmwareVersion":{ "alertText":"Please enter firmware version." }, "operatingSystem":{ "alertText":"Please enter operating system version." }, "deviceConnect":{ "alertText":"Please select device connect." }, "inquiryType":{ "alertText":"请选择咨询类型。" }, "detailDesc":{ "alertText":"请输入咨询问题的详细描述。" }, "serialNumber":{ "alertText":"Please enter serial number." }, "receiveWrongCmts":{ "alertText":"请输入您的咨询问题的详细描述。" }, "purpose":{ "alertText":"产品是否用于二次销售?" }, "comments":{ "alertText":"请输入您的咨询问题的详细描述。" }, "cancelReason":{ "alertText":"Please select a cancel reason." } } } } })(jQuery); $(document).ready(function() { $.validationEngineLanguage.newLang(); });