Hi,

Jorge Vargas wrote:
>> when displaying a form with validation errors, I want the error
>> messages to be localized to my local language. 
> 
> I believe your not aware of the building i18n.

I am aware of it, but admi18n (1.0b1) only collects "my" strings. The
form validation messages are supplied by formencode and are *not*
collected. FormEncode has an interface to supply my own error messages,
but to use this with form widgets AFAIK I would have to hack my way
through all the form widget code. This same interface could have been
used to internationalize form widgets, but as I understand Gregor, this
hasn't been done so far.

I could be completely wrong about this, but as I understand so far
I have to either (a) not use form widgets or patch it very deeply or
(b) accept that i18n is not supported (so far) with form widgets.

Now, I'd really like you to prove me wrong. But if I'm not wrong, the
best solution for TurboGears would be to provide built-in i18n for form
widget error messages. (And I know this is open source. Maybe I'll find
the time to provide these patches myself...)

Cheers,
  --Jan Niklas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to