我使用了一个插件jQuery验证插件1.5.5.js.如何使用i18n的机制?
messages: {
required: "To pole jest wymagane.",
requiredEN: "This field is required",
remote: "Proszę poprawić to pole.",
email: "Proszę podać poprawny adres e-mail.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date (ISO).",
dateDE: "Bitte geben Sie ein gültiges Datum ein.",
number: "Please enter a valid number.",
numberDE: "Bitte geben Sie eine Nummer ein.",
digits: "Please enter only digits",
creditcard: "Please enter a valid credit card number.",
equalTo: "Hasła muszą być identyczne.",
accept: "Please enter a value with a valid extension.",
maxlength: $.validator.format("Please enter no more than {0} characters."),
minlength: $.validator.format("Proszę wprowadzić przynajmniej {0} znaków."),
rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."),
range: $.validator.format("Please enter a value between {0} and {1}."),
max: $.validator.format("Please enter a value less than or equal to {0}."),
min: $.validator.format("Please enter a value greater than or equal to {0}.")
答案 0 :(得分:0)
您所要做的就是在相应的页面中包含您的相应本地化文件。这将自动翻译它!