[TurboGears] Re: next up: forms/widgets talk and tickets

2005-12-24 Thread Dan Jacob
I added a lazy_gettext function in the other week which should handle that. For example: from turbogears.i18n import lazy_gettext v=validators.MinLength(minLength=3, messages={'tooShort':lazy_gettext('Enter at least %(minLength)i characters')}) The lazy_gettext function calls gettext only when

[TurboGears] Re: next up: forms/widgets talk and tickets

2005-12-23 Thread Jorge Godoy
Ian Bicking [EMAIL PROTECTED] writes: There should be a way to pass error messages in, but it should just be a matter of passing those through to the validators. Dan Jacob submitted a patch for internationalization to FormEncode that I have been very untimely in applying. However,

[TurboGears] Re: next up: forms/widgets talk and tickets

2005-12-22 Thread Jorge Godoy
Kevin Dangoor [EMAIL PROTECTED] writes: I *think* good balances have been struck with turbogears.widgets and that they're easy to use and build on for the future... but, I'm definitely interested in the input of people who have looked closely at the problems and want to be sure we end up