55 lines
2.4 KiB
JavaScript
55 lines
2.4 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.cs = jQuery.extend(window.ParsleyConfig.i18n.cs || {}, {
|
|
defaultMessage: "Tato položka je neplatná.",
|
|
type: {
|
|
email: "Tato položka musí být e-mailová adresa.",
|
|
url: "Tato položka musí být platná URL adresa.",
|
|
number: "Tato položka musí být číslo.",
|
|
integer: "Tato položka musí být celé číslo.",
|
|
digits: "Tato položka musí být kladné celé číslo.",
|
|
alphanum: "Tato položka musí být alfanumerická."
|
|
},
|
|
notblank: "Tato položka nesmí být prázdná.",
|
|
required: "Tato položka je povinná.",
|
|
pattern: "Tato položka je neplatná.",
|
|
min: "Tato položka musí být větší nebo rovna %s.",
|
|
max: "Tato položka musí být menší nebo rovna %s.",
|
|
range: "Tato položka musí být v rozsahu od %s do %s.",
|
|
minlength: "Tato položka musí mít nejméně %s znaků.",
|
|
maxlength: "Tato položka musí mít nejvíce %s znaků.",
|
|
length: "Tato položka musí mít délku od %s do %s znaků.",
|
|
mincheck: "Je nutné vybrat alespoň %s možností.",
|
|
maxcheck: "Je nutné vybrat nejvýše %s možností.",
|
|
check: "Je nutné vybrat od %s do %s možností.",
|
|
equalto: "Tato položka musí být stejná."
|
|
});
|
|
// If file is loaded after Parsley main file, auto-load locale
|
|
if ('undefined' !== typeof window.ParsleyValidator)
|
|
window.ParsleyValidator.addCatalog('cs', window.ParsleyConfig.i18n.cs, true);
|
|
})); |