(function($) {
  
  $.fn.validationEngineLanguage = function() {};
  $.validationEngineLanguage    = {

  newLang: function() {

    $.validationEngineLanguage.allRules = {

      "required": {
        "regex":                      "none",
        "alertText":                  "* required",
        "alertTextCheckboxMultiple":  "* please select option",
        "alertTextCheckboxe":         "* verification needed"
      },

      "length": {
        "regex":                      "none",
        "alertText":                  "* between ",
        "alertText2":                 " and ",
        "alertText3":                 " signs are allowed"
      },

      "maxCheckbox": {
        "regex":                      "none",
        "alertText":                  "* too many options"
      },

      "minCheckbox": {
        "regex":                      "none",
        "alertText":                  "* please choose ",
        "alertText2":                 " options"
      },

      "confirm": {
        "regex":                      "none",
        "alertText":                  "* matching required"
      },

      "telephone": {
        "regex":                      "/^[0-9\-\(\)\ ]+$/",
        "alertText":                  "* incorrect phone format / 0711/9971384"
      },

      "email": {
        "regex":                      "/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
        "alertText":                  "* incorrect email format"
      },

      "date": {
        "regex":                      "/^[0-9]{1,2}\.\[0-9]{1,2}\.\[0-9]{4}$/",
        "alertText":                  "* incorrect format / DD.MM.YYYY"
      },

      "onlyNumber": {
        "regex":                      "/^[0-9\ ]+$/",
        "alertText":                  "* only numbers are allowed"
      },

      "noSpecialCaracters": {
        "regex":                      "/^[0-9a-zA-Z]+$/",
        "alertText":                  "* no special signs"
      },

      "street": {
        "regex":                      "/^[\w]+$/",
        "alertText":                  "* incorrect street name"
      },

      "city": {
        "regex":                      "/^[0-9a-zA-Z]+$/",
        "alertText":                  "* incorrect city name"
      },

      "ajaxUser": {
        "file":                       "validateUser.php",
        "alertTextOk":                "* User allowed",
        "alertTextLoad":              "* loading...",
        "alertText":                  "* User name is already in use"
      },

      "emailExists": {
        "file":                       "/ajax/check/email",
        "alertTextOk":                "* email address allowed",
        "alertTextLoad":              "* check email address...",
        "alertText":                  "* email address is already in use"
      },

      "emailExistsWithoutOwn": {
        "file":                       "/ajax/check/emailWithoutUser",
        "alertTextOk":                "* email address allowed",
        "alertTextLoad":              "* check email address...",
        "alertText":                  "* email address is already in use"
      },

      "registerConfirm": {
        "file":                       "/ajax/check/register_hashcode",
        "alertTextOk":                "* activation code checked",
        "alertTextLoad":              "* check activation code...",
        "alertText":                  "* incorrect activation code"
      },

      "onlyLetter":{
        "regex":                      "/^[a-zA-Z]+$/",
        "alertText":                  "* only letters are allowed"}
      }						
    }
  }
})(jQuery);

$(document).ready(function() {	

  $.validationEngineLanguage.newLang()
});
