I was having trouble using that method without the helper. And althought it
worked on my forms, after upgrade sfDoctrineGuardPlugin from 4.x to 5.0.0
the translations of its forms doesn't work (even if it uses my translated
messages). I had to translate again the messages on the forms of
sfDoctrine
I think that just sfValidatorBase::setDefaultMessage( 'required',
'Required field' ); is enough and the __() helper will be used
automaticly.
On 27 čnc, 04:23, Gustavo Adrian wrote:
> Hi,
>
> I've found a way to do this in the BaseForm class. I just set the default
> message of each validator o