Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/08/2008, 14:29
imefisto
 
Fecha de Ingreso: agosto-2008
Mensajes: 1
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: Cambiar el msg. de error de validación con QuickForm

HOla

Yo tuve que cambiar un mensaje y usé este código:

Básicamente heredé de la clase original y le cambié el atributo $_requiredNote por uno en español. Después el constructor de mi clase llama al constructor de la clase original

Espero que te sirva.
SAludos

<?php
class HTML_QuickForm_es extends HTML_QuickForm {

var $_requiredNote = '<span style="font-size:80%; color:#ff0000;">*</span><span style="font-size:80%;"> denota campos obligatorios</span>';

function HTML_QuickForm_es($formName='', $method='post', $action='', $target='', $attributes=null, $trackSubmit = false)
{
parent::HTML_QuickForm($formName, $method, $action, $target, $attributes, $trackSubmit);
}
}
?>