/**
 * Translated default messages for the jQuery validation plugin.
 * Language: PT_BR
 * Translator: Francisco Ernesto Teixeira <fco_ernesto@yahoo.com.br>
 */
jQuery.extend(jQuery.validator.messages, {
	required: "Campo obrigat&oacute;rio.",
	remote: "Por favor, corrija este campo.",
	email: "E-mail inv&aacute;lido.",
	url: "URL inv&aacute;lida.",
	date: "Data inv&aacute;lida.",
	dateISO: "Data inv&aacute;lida (ISO).",
	dateDE: "Data inv&aacute;lida (DE).",
	number: "N&uacute;mero um formato inv&aacute;lido.",
	numberDE: "N&uacute;mero um formato inv&aacute;lido (DE).",
	digits: "Somente d&iacute;gitos.",
	creditcard: "Cart&atilde;o de cr&eacute;dito inv&aacute;lido.",
	equalTo: "Por favor, forne&ccedil;a o mesmo valor novamente.",
	accept: "Por favor, forne&ccedil;a um valor com uma extens&atilde;o v&aacute;lida.",
	maxlength: jQuery.format("M&aacute;ximo de {0} caracteres."),
	minlength: jQuery.format("M&iacute;nimo de {0} caracteres."),
	rangelength: jQuery.format("Por favor, forne&ccedil;a um valor entre {0} e {1} caracteres de comprimento."),
	rangeValue: jQuery.format("Por favor, forne&ccedil;a um valor entre {0} e {1}."),
	range: jQuery.format("Por favor, forne&ccedil;a um valor entre {0} e {1}."),
	maxValue: jQuery.format("Por favor, forne&ccedil;a um valor menor que ou igual a {0}."),
	max: jQuery.format("Por favor, forne&ccedil;a um valor menor ou igual a {0}."),
	minValue: jQuery.format("Por favor, forne&ccedil;a um valor maior ou igual a {0}."),
	min: jQuery.format("Por favor, forne&ccedil;a um valor maior ou igual a {0}.")
});

jQuery.validator.addMethod("datePTBR", function(value, element) { 
  return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); 
}, "Por favor, forne&ccedil;a uma data v&aacute;lida.");

jQuery.validator.addMethod("telefone", function(value, element) { 
  return this.optional(element) || /^(\d{2,3}|\(\d{2,3}\)[ ])?\d{3,4}[-]?\d{3,4}$/.test(value);
}, "N&uacute;mero de telefone no formato (12) 3456-7890.");

jQuery.validator.addMethod("telefones", function(value, element) { 
  return this.optional(element) || (/^((\d{2,3}|\(\d{2,3}\)[ ])?\d{3,4}[-]?\d{3,4})|(\d{4} \d{3} \d{4})$/m).test(value);
}, "N&uacute;meros de telefone no formato (12) 3456-7890 (um por linha).");

jQuery.validator.addMethod("intervaloData", function(value, element) { 
  return this.optional(element) || /^\d\d?\/\d\d?\/\d\d(\d\d)? a \d\d?\/\d\d?\/\d\d(\d\d)?$/.test(value); 
}, "Por favor, forne&ccedil;a uma data v&aacute;lida.");

jQuery.validator.addMethod("cep", function(value, element) { 
  return this.optional(element) || /^\d{5}-\d{3}$/.test(value); 
}, "Por favor, forne&ccedil;a um cep v&aacute;lido.");

/*
jQuery.validator.addMethod("telefones", function(value, element) { 
  return this.optional(element) || /^(\d{2,3}|\(\d{2,3}\)[ ])?\d{3,4}[-]?\d{3,4}([\n](\d{2,3}|\(\d{2,3}\)[ ])?\d{3,4}[-]?\d{3,4})*$/.test(value);
}, "N&uacute;meros de telefone no formato (12) 3456-7890 (um por linha).");

*/
