On Mon, Jan 12, 2009 at 4:59 PM, google <[email protected]> wrote:

> But it doesn't seem very clean to have to define the __() and getI18N
> () methods in the Form. Is there a better place to define these static
> choice strings? To me it appears that they are part of the model.

You can define a translation callable by using:
$widgetSchema->getFormFormatter()->setTranslationCallable(array(new
myI18n(), 'text to translate'));

More information here http://bit.ly/6sNm

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 67

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to