Skip to main content

Bug Tracker

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)
  • messages_nl.js (1.2 KB) - added by Aidamina July 30, 2008 11:43AM UTC.
Change History (6)

Changed August 07, 2008 01:32PM UTC by joern comment:1

resolution: → fixed
status: newclosed

Thanks! Commited in [5808].

Changed May 27, 2009 09:36AM UTC by Kingsquare comment:2

resolution: fixed
status: closedreopened

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 Kingsquare 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 dmethvin comment:4

owner: → joern
status: reopenednew

Changed February 05, 2010 08:34PM UTC by john comment:5

resolution: → invalid
status: newclosed

Please file plugin bugs with the appropriate author on their bug tracker.

Changed May 16, 2011 12:57PM UTC by raymond1992@live.nl 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;

}