55 lines
2.5 KiB
JavaScript
55 lines
2.5 KiB
JavaScript
/*!
|
|
* Parsleyjs
|
|
* Guillaume Potier - <guillaume@wisembly.com>
|
|
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
|
|
* MIT Licensed
|
|
*
|
|
*/
|
|
!(function (factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
// AMD. Register as an anonymous module depending on jQuery.
|
|
define(['jquery'], factory);
|
|
} else if (typeof exports === 'object') {
|
|
// Node/CommonJS
|
|
module.exports = factory(require('jquery'));
|
|
} else {
|
|
// Register plugin with global jQuery object.
|
|
factory(jQuery);
|
|
}
|
|
}(function ($) {
|
|
// small hack for requirejs if jquery is loaded through map and not path
|
|
// see http://requirejs.org/docs/jquery.html
|
|
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
|
|
$ = window.jQuery;
|
|
// ParsleyConfig definition if not already set
|
|
window.ParsleyConfig = window.ParsleyConfig || {};
|
|
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
|
|
// Define then the messages
|
|
window.ParsleyConfig.i18n.it = jQuery.extend(window.ParsleyConfig.i18n.it || {}, {
|
|
defaultMessage: "Questo valore sembra essere non valido.",
|
|
type: {
|
|
email: "Questo valore deve essere un indirizzo email valido.",
|
|
url: "Questo valore deve essere un URL valido.",
|
|
number: "Questo valore deve essere un numero valido.",
|
|
integer: "Questo valore deve essere un numero valido.",
|
|
digits: "Questo valore deve essere di tipo numerico.",
|
|
alphanum: "Questo valore deve essere di tipo alfanumerico."
|
|
},
|
|
notblank: "Questo valore non deve essere vuoto.",
|
|
required: "Questo valore è richiesto.",
|
|
pattern: "Questo valore non è corretto.",
|
|
min: "Questo valore deve essere maggiore di %s.",
|
|
max: "Questo valore deve essere minore di %s.",
|
|
range: "Questo valore deve essere compreso tra %s e %s.",
|
|
minlength: "Questo valore è troppo corto. La lunghezza minima è di %s caratteri.",
|
|
maxlength: "Questo valore è troppo lungo. La lunghezza massima è di %s caratteri.",
|
|
length: "La lunghezza di questo valore deve essere compresa fra %s e %s caratteri.",
|
|
mincheck: "Devi scegliere almeno %s opzioni.",
|
|
maxcheck: "Devi scegliere al più %s opzioni.",
|
|
check: "Devi scegliere tra %s e %s opzioni.",
|
|
equalto: "Questo valore deve essere identico."
|
|
});
|
|
// If file is loaded after Parsley main file, auto-load locale
|
|
if ('undefined' !== typeof window.ParsleyValidator)
|
|
window.ParsleyValidator.addCatalog('it', window.ParsleyConfig.i18n.it, true);
|
|
})); |