Bug 6209 follow-up, make strings translatable
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
c28f7d7de5
commit
f634c4cfb1
1 changed files with 16 additions and 16 deletions
|
@ -2,22 +2,22 @@
|
|||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
jQuery.extend(jQuery.validator.messages, {
|
||||
required: "This field is required.",
|
||||
remote: "Please fix this field.",
|
||||
email: "Please enter a valid email address.",
|
||||
url: "Please enter a valid URL.",
|
||||
date: "Please enter a valid date.",
|
||||
dateISO: "Please enter a valid date (ISO).",
|
||||
number: "Please enter a valid number.",
|
||||
digits: "Please enter only digits.",
|
||||
equalTo: "Please enter the same value again.",
|
||||
maxlength: $.validator.format("Please enter no more than {0} characters."),
|
||||
minlength: $.validator.format("Please enter at least {0} characters."),
|
||||
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}.")
|
||||
required: _("This field is required."),
|
||||
remote: _("Please fix this field."),
|
||||
email: _("Please enter a valid email address."),
|
||||
url: _("Please enter a valid URL."),
|
||||
date: _("Please enter a valid date."),
|
||||
dateISO: _("Please enter a valid date (ISO)."),
|
||||
number: _("Please enter a valid number."),
|
||||
digits: _("Please enter only digits."),
|
||||
equalTo: _("Please enter the same value again."),
|
||||
maxlength: $.validator.format(_("Please enter no more than {0} characters.")),
|
||||
minlength: $.validator.format(_("Please enter at least {0} characters.")),
|
||||
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}."))
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue