55 lines
2.7 KiB
JavaScript
55 lines
2.7 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.ko = jQuery.extend(window.ParsleyConfig.i18n.ko || {}, {
|
|
defaultMessage: "입력하신 내용이 올바르지 않습니다.",
|
|
type: {
|
|
email: "입력하신 이메일이 유효하지 않습니다.",
|
|
url: "입력하신 URL이 유효하지 않습니다.",
|
|
number: "입력하신 전화번호가 올바르지 않습니다.",
|
|
integer: "입력하신 URL이 유효하지 않습니다.",
|
|
digits: "숫자를 입력하여 주십시오.",
|
|
alphanum: "입력하신 내용은 알파벳과 숫자의 조합이어야 합니다."
|
|
},
|
|
notblank: "공백은 입력하실 수 없습니다.",
|
|
required: "필수 입력사항입니다.",
|
|
pattern: "입력하신 내용이 올바르지 않습니다.",
|
|
min: "입력하신 내용이 %s보다 크거나 같아야 합니다. ",
|
|
max: "입력하신 내용이 %s보다 작거나 같아야 합니다.",
|
|
range: "입력하신 내용이 %s보다 크고 %s 보다 작아야 합니다.",
|
|
minlength: "%s 이상의 글자수를 입력하십시오. ",
|
|
maxlength: "%s 이하의 글자수를 입력하십시오. ",
|
|
length: "입력하신 내용의 글자수가 %s보다 크고 %s보다 작아야 합니다.",
|
|
mincheck: "최소한 %s개를 선택하여 주십시오. ",
|
|
maxcheck: "%s개 또는 그보다 적게 선택하여 주십시오.",
|
|
check: "선택하신 내용이 %s보다 크거나 %s보다 작아야 합니다.",
|
|
equalto: "같은 값을 입력하여 주십시오."
|
|
});
|
|
// If file is loaded after Parsley main file, auto-load locale
|
|
if ('undefined' !== typeof window.ParsleyValidator)
|
|
window.ParsleyValidator.addCatalog('ko', window.ParsleyConfig.i18n.ko, true);
|
|
})); |