check that i have wrote a plugin for that ...
sfI18nFormExtract or so ... :)

On Wed, Dec 9, 2009 at 4:09 PM, Benoît Nadaud <benoit.nad...@gmail.com> wrote:
> Nobody ?
>
> On 7 déc, 14:34, Benoît Nadaud <benoit.nad...@gmail.com> wrote:
>> Hi,
>>
>> First, sorry for my english, i'm french.
>>
>> I'm using Symfony 1.2 and i've got some questions about i18n and
>> forms.
>>
>> i18n:extract task does not extract labels and validation messages from
>> form classes. How do you deal with these strings ?
>>
>> I've tried this hack :http://trac.symfony-project.org/ticket/5668
>> which works but it is not recommended by Fabien Potencier
>> Using this hack brings a problem : strings used with __() function in
>> form classes are extracted but appear several times (one time by
>> application in i18n/XX/messages.xml.
>> So it is quite hard to maintain theses files.
>>
>> Is there is another solution ?
>>
>> I see these solutions :
>>   - do not use __() in form classes. But it implies  that i have to
>> add manually each i18n string in messages.xml and i have to do it for
>> each application.
>> - do not define labels in form classes, put them directly in templates
>> so they will be extracted by i18n:extract. But what about error
>> message for validators ?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@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.
>
>
>



-- 
Have a nice day!
Alecs

As programmers create bigger & better idiot proof programs, so the
universe creates bigger & better idiots!
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0748.543.798

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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.


Reply via email to