$js_rules['submitted['.$component['form_key'].']']['messages']['minlength']=t('!name field has a minimum length of !minl characters.',array('!name'=>$component['name'],'!minl'=>$webform_validation_rule['data']));
$js_rules['submitted['.$component['form_key'].']']['messages']['maxlength']=t('!name field has a maximum length of !maxl characters.',array('!name'=>$component['name'],'!maxl'=>$webform_validation_rule['data']));
$js_rules['submitted['.$component['form_key'].']']['messages']['range']=t('The entered number needs to be between the @start and @end.',array('@start'=>$range[0],'@end'=>$range[1]));
$js_rules['submitted['.$component['form_key'].']']['messages']['equalTo']=t('!name field has to be equal to !firstone.',array('!name'=>$component['name'],'!firstone'=>$firstone['name']));
$js_rules['submitted['.$component['form_key'].']']['messages']['notEqualTo']=t('!name field has to different from !firstone.',array('!name'=>$component['name'],'!firstone'=>$firstone['name']));
$js_rules['submitted['.$component['form_key'].']']['messages']['oneOf']=t('!name field has to one of the following values: !values.',array('!name'=>$component['name'],'!values'=>$webform_validation_rule['data']));
$js_rules[$element['#name']]['messages']['maxlength']=t('!name field has a max length of !maxl characters.',array('!name'=>$element['#title'],'!maxl'=>$element['#maxlength']));