Oh, nevermind, I've solved it: $translated_text = $this->widgetSchema->getFormFormatter()- >translate('String to translate');
On 15 mar, 18:19, HiDDeN <davidmoralesmoj...@gmail.com> wrote: > 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! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en