#19034: Plural to MinLength, MaxLengt validation messages
--------------------------------------+------------------------------------
Reporter: clay.evil@… | Owner: nobody
Type: Bug | Status: new
Component: Internationalization | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by claudep):
Thanks Alexey for the patch. It may be used as a temporary workaround if
we cannot find a good way to resolve #19160.
Basically, if you use a lambda, then the lazy aspect of the translation
function is not needed anymore. The advantage of the lazy over lambda is
that you can transparently use the string as if it was a normal string.
Imagine a user wants to customize the error messages himself, he'd have to
set message_function (and this should be documented) unless he would have
the same original issue with plurals.
So I'd really like to find a way to make ungettext_lazy really usable, if
possible.
--
Ticket URL: <https://code.djangoproject.com/ticket/19034#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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 https://groups.google.com/groups/opt_out.