Re: [symfony-users] Re: Better way of setting default i18n messages for validators?

2010-07-28 Thread Gustavo Adrian
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

[symfony-users] Re: Better way of setting default i18n messages for validators?

2010-07-28 Thread Tom Ptacnik
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