Symfony - admin - FormFilter - is empty - i18n
Posted
by Mailo
on Stack Overflow
See other posts from Stack Overflow
or by Mailo
Published on 2009-11-12T10:13:59Z
Indexed on
2010/03/15
17:39 UTC
Read the original article
Hit count: 671
Hi, 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_label*s 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
© Stack Overflow or respective owner