Re: [FE-discuss] FormEncode i18n translation integration in TurboGears

Ian Bicking <[email protected]>
Newsgroups gmane.comp.web.turbogears,gmane.comp.python.formencode
Message-ID <[email protected]>
Gregor Horvath wrote:
> I therefore propose a new class attribute: formencode.Validator.gettextargs
> For standalone FormEncode this attribute is {}. (Because standard
> gettext function does not allow additional parameters)
> 
> <formencode.api.py>
> class Validator(declarative.Declarative):
>   [....]
>   gettextargs = {}
>   [...]

That would be fine, but for this case we might also just put 
"gettext_domain='FormEncode'" into the class too, no?  It seems 
reasonable to set the domain to 'FormEncode' by default.


-- 
Ian Bicking | [email protected] | http://blog.ianbicking.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.