All you have to do is change the posts in jquery.validationEngine-en.js (or in any other language you want, if not in English). Keep in mind that all fields of the validation type that you change display the same message.
It is also a place where you can add your own verification and messages.
\ Edit - Ah, I understand what you mean. Well, I take no reason for this, but a company called iPragmaTech has developed a solution to the same problem using the title of the field attribute.
They override the buildprompt function from validationengine and add functions to select a custom error message.
Here is their code below:
var buildPrompt = $.validationEngine.buildPrompt; $.validationEngine.buildPrompt = function(caller, promptText, type, ajaxed) { // Get the rules to map the message for a method var rulesRegExp = /\[(.*)\]/; var getRules = rulesRegExp.exec($(caller).attr('class')); var str = getRules[1]; var pattern = /\[|,|\]/; var rules = str.split(pattern); //Check if title attribute present in the element //otherwise we shall use default error message if ($(caller).attr('title')) { var getMessages = rulesRegExp.exec($(caller).attr('title')); var str = getMessages[1]; var pattern = /\[|,|\]/; var messages = str.split(pattern); var j = 0; newPrompt = ""; for ( var i = 0; i < rules.length; i++) { rules = $.validationEngine.settings.allrules[rules[i]] if (rules) { if (promptText.indexOf(rules.alertText) != -1) { newPrompt += " <p class="errorMsg">" + messages[j] + " "; } j++; } } promptText = newPrompt; } buildPrompt(caller, promptText, type, ajaxed); } </p>
They added error messages to the title attribute, and this gives the flexibility to customize the error message for different fields. So, here is an example where you can add an error message:
<input value="" class="validate[required,custom[noSpecialCaracters],length[0,20]]" name="user" id="user" title="[* Desired username is required,* No special caracters allowed for Desired username,* Desired username should have characters between 0 and 20]" type="text">
Hope this solves your problem.