we are in admin generator in filters in field. What is the most clearest way to translate is empty label under form fields?
I’ve solve it by own setWidgets and setWidgets in BaseFormFilterDoctrine witch extend the parent methods by translating that is empty( empty_label ).
- setWidgets – translate all empty_labels in form filter( for base filter class )
- setWidget – translate empty_label for one filter field( for the extending filter class )
It works, but i think it’s nasty. I am looking for something more clean
why do you think it’s nasty ? I think that hacking the BaseFormFilterDoctrine class it’s the way to go. I usually do something like this: