

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* To pole jest wymagane",
						"alertTextCheckboxMultiple":"* Prosze wybierz jakąś opcje",
						"alertTextCheckboxe":"* Ten checkbox jest wymagany"},
					"length":{
						"regex":"none",
						"alertText":"* Dozwolone od ",
						"alertText2":" do ",
						"alertText3": " znaków"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Prosze wybierz ",
						"alertText2":" opcje"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Zawartość pola jest niewystarczająca"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Niepoprawny numer telefonu"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* Niepoprawny adres email"},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"* Niepoprawny format daty (poprawny format: YYYY-MM-DD)"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Tylko cyfry"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Bez znaków specjalnych"},	
					"ajaxUser":{
						"file":"validateUser.php",
						"extraData":"name=eric",
						"alertTextOk":"* Taki użytkownik jest już dostępny",	
						"alertTextLoad":"* Ładuje, proszę czekaj",
						"alertText":"* Taki użytkownik już istnieje"},	
					"ajaxName":{
						"file":"validateUser.php",
						"alertText":"* Takie imie już istnieje",
						"alertTextOk":"* Takie imie jest dostępne",	
						"alertTextLoad":"* Ładuje, proszę czekaj"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* Tylko litery"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* Musisz podać imię i nazwisko"},
					"jednozdwoch":{
						"nname":"jednozdwoch",
						"alertText":"* Jedno z pół musi być wypełnione"}
					}	
					
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
