Hi, I have some problems when using custom validators: I wrote my own validator and now I like to translate its messages. This seems to be easy as I did it before and added the solution suggest on this mailing list to the official docs [1].
Now I found another problem: Sometimes I want to change the behavior of and existing validator just a little bit. So I inherit from the existing validator, extend e.g. the _to_python() or validate_python() methods and add a custom message. Now this is a problem when it comes to i18n: I have to specify the gettext domain 'messages' so that I can translate my own message easily. But by doing that I loose all existing translations for this validator (which come from formencode) because they are living in the formencode domain... Adding something to the messages attribut works well on the Python level due to some magic from formencode but it miserably fails for gettext as the translations do live in two different domains. Did I overlook something? Is my problem only due to my lacking gettext knowlegde? It would even help if could confirm my analysis above so I can add some documentation for that. fs [1] http://docs.turbogears.org/1.0/Internationalization#custom-validators-with-localized-error-messages --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

