Symfony form's i18n and add_empty
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-03-15T17:31:01Z
Indexed on
2010/03/15
17:39 UTC
Read the original article
Hit count: 174
symfony
I have this widget:
$this->setWidget('slug', new sfWidgetFormDoctrineChoice(array('model'
=> 'MyTable', 'method' => 'myMethod', 'key_method' => 'myMethod',
'add_empty' => 'Select option')));
Ok, what should I do to translate the "Select option"?
I can't use the __() helper inside the form, and adding that string into my XLIFF file doesn't translate it automatically.
If it can't be done, what workaround should I implement? I can't find any way, and neither can't find any tip in the official documentation.
Thanks!
© Stack Overflow or respective owner