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
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,
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
3 matches
Mail list logo