After replacing FormEncode validators with TW2 validators in a TG2 app I found that the validator messages were not translated any more. I'm proposing the patch at https://github.com/toscawidgets/tw2.core/issues/55 to solve this problem, please let me know what you think. Maybe we could also use the same method for FormEncode, I find the currently used method of translating FormEncode messages too intricate.
On Mon, Oct 1, 2012 at 9:45 PM, Christoph Zwerschke <c...@online.de> wrote:
> After replacing FormEncode validators with TW2 validators in a TG2 app I
> found that the validator messages were not translated any more. I'm
> proposing the patch at https://github.com/toscawidgets/tw2.core/issues/55 to
> solve this problem, please let me know what you think. Maybe we could also
> use the same method for FormEncode, I find the currently used method of
> translating FormEncode messages too intricate.
> -- Christoph
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears Trunk" group.
> To post to this group, send email to turbogears-trunk@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears-trunk+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears-trunk?hl=en.
That's a great work, I ended up having the same issue but I solved it
by handling the translation inside my own application, your solution
is much more convenient.
On Tue, Oct 2, 2012 at 5:39 AM, Michael Pedersen <m.peder...@icelus.org> wrote:
> That looks like a fairly simple way of dealing with the issue. If they
> go for the change to tw2, I'm all for making our side and getting it
> working.
> On Mon, Oct 1, 2012 at 9:45 PM, Christoph Zwerschke <c...@online.de> wrote:
>> After replacing FormEncode validators with TW2 validators in a TG2 app I
>> found that the validator messages were not translated any more. I'm
>> proposing the patch at https://github.com/toscawidgets/tw2.core/issues/55 to
>> solve this problem, please let me know what you think. Maybe we could also
>> use the same method for FormEncode, I find the currently used method of
>> translating FormEncode messages too intricate.
>> -- Christoph
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TurboGears Trunk" group.
>> To post to this group, send email to turbogears-trunk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> turbogears-trunk+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/turbogears-trunk?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group.
> To post to this group, send email to turbogears-trunk@googlegroups.com.
> To unsubscribe from this group, send email to turbogears-trunk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en.
> That's a great work, I ended up having the same issue but I solved it
> by handling the translation inside my own application, your solution
> is much more convenient.
Ok, so I sent a pull request to get in TW2. Maybe you can then add the Italian translations.