> I have discussed with Ian about the patch for handling localized error > messages in formencode. Basically you pass a "gettext" function in the > state parameter, which then translates the message, This would allow > the TG controller to pass the i18n gettext function to formencode. I > haven't had time to check the formencode SVN yet, but ask Ian about it.
I think this is good solution; if Ian is willing to accept this then I think it is great. Note that in addition to updating validators.Validator.message you'll need to check the code for explicit and implicit str() calls, like the above format_compound_error does -- it will not work with unicode strings.

