Side navigation
#3201 closed enhancement (invalid)
Opened July 30, 2008 11:42AM UTC
Closed February 05, 2010 08:34PM UTC
Last modified May 16, 2011 12:57PM UTC
[validate] Dutch localization
Reported by: | Aidamina | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | plugin | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I've completed the Dutch localization file for the validate plugin.
commit to: svn/trunk/plugins/validate/localization
Attachments (1)
Change History (6)
Changed August 07, 2008 01:32PM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
Changed May 27, 2009 09:36AM UTC by comment:2
resolution: | fixed |
---|---|
status: | closed → reopened |
extra suggestions for dutch validation support:
// dutch zipcode
jQuery.validator.addMethod("zipcodeNL", function(value, element, params) {
return this.optional(element) || /^\\d{4} ?[a-z]{2}$/i.test(value);
}, "Vul alstublieft een geldige postcode in. (1234 AB)");
// dutch date
jQuery.validator.addMethod("dateNL", function(value, element, params) {
return this.optional(element) || /^\\d\\d?\\-\\d\\d?\\-\\d\\d\\d?\\d?$/.test(value);
}, "Vul alstublieft een geldige datum in. (dd-mm-jjjj)");
// link the validators to classnames
jQuery.validator.addClassRules({
zipcodeNL: { zipcodeNL: true },
dateNL: { dateNL: true },
});
Changed May 27, 2009 09:38AM UTC by comment:3
Sorry about that. This is a bit more readable.
// dutch zipcode jQuery.validator.addMethod("zipcodeNL", function(value, element, params) { return this.optional(element) || /^\\d{4} ?[a-z]{2}$/i.test(value); }, "Vul alstublieft een geldige postcode in. (1234 AB)"); // dutch date jQuery.validator.addMethod("dateNL", function(value, element, params) { return this.optional(element) || /^\\d\\d?\\-\\d\\d?\\-\\d\\d\\d?\\d?$/.test(value); }, "Vul alstublieft een geldige datum in. (dd-mm-jjjj)"); // link the validators to classnames jQuery.validator.addClassRules({ zipcodeNL: { zipcodeNL: true }, dateNL: { dateNL: true }, });
Changed October 13, 2009 12:19AM UTC by comment:4
owner: | → joern |
---|---|
status: | reopened → new |
Changed February 05, 2010 08:34PM UTC by comment:5
resolution: | → invalid |
---|---|
status: | new → closed |
Please file plugin bugs with the appropriate author on their bug tracker.
Changed May 16, 2011 12:57PM UTC by comment:6
example:
var regex_date = /^\\d\\d\\d?\\-\\d\\d?\\-\\d\\d?\\d?$/;
if (regex_date.test($("input#datum").val()) == false)
{
alert("Invalid date! (jjjj-mm-dd)");
return false;
}
Thanks! Commited in [5808].