views:

33

answers:

1

Hi, I am quite aware that the extract task accepts application as a parameter, and thus one can't expect it too look into the forms folder. However, I referred the link (below) and tried a couple of ways: 1. defining my proxy __() method 2. including the I18n helper in App Configuration However, both aren't working.

Can anyone tell me how to extract these from the form classes? Thanks

http://groups.google.com/group/symfony-devs/browse_thread/thread/1d034f5f7367fe0c

+1  A: 

You need to use the i18n helper and add the translated strings manually to your XML/XLIFF files. The translations themselves work, it's just the i18n:extract task that doesn't look inside form classes so it has to be done manually. I hope they add this feature in Symfony 2.0.

See the first few paragraphs here: http://www.symfony-project.org/forms/1_4/en/08-Internationalisation-and-Localisation

Tom