On 6/5/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> Nice catch. What's the proper plural-only way to handle this with gettext?
In this case, since we know it can never trigger (please verify it
cannot ;)) we can simply use gettext(), so:
raise validators.ValidationError, gettext("Ensure your text is less
than %s characters.") % self.maxlength
The same applies if we know it will never trigger a plural case.
--
Jeroen Ruigrok van der Werven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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/django-developers
-~----------~----~----~----~------~----~------~--~---