Django

Code

Changeset 5864

Show
Ignore:
Timestamp:
08/11/07 22:27:57 (1 year ago)
Author:
adrian
Message:

Fixed #5011 -- Fixed usage of ungettext in hasNoProfanities validator. Thanks, tzellman@gmail.com

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/validators.py

    r5811 r5864  
    270270    if words_seen: 
    271271        from django.utils.text import get_text_list 
    272         plural = len(words_seen) > 1 
     272        plural = len(words_seen) 
    273273        raise ValidationError, ungettext("Watch your mouth! The word %s is not allowed here.", 
    274274            "Watch your mouth! The words %s are not allowed here.", plural) % \