Django

Code

Changeset 9116

Show
Ignore:
Timestamp:
10/05/08 00:05:32 (3 months ago)
Author:
mtredinnick
Message:

Fixed #8879 -- Used ungettext instead of ngettext in the comments framework.
Patch from zgoda.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/comments/forms.py

    r8841 r9116  
    1212from django.utils.hashcompat import sha_constructor 
    1313from django.utils.text import get_text_list 
    14 from django.utils.translation import ngettext 
    15 from django.utils.translation import ugettext_lazy as _ 
     14from django.utils.translation import ungettext, ugettext_lazy as _ 
    1615 
    1716COMMENT_MAX_LENGTH = getattr(settings,'COMMENT_MAX_LENGTH', 3000) 
     
    123122            if bad_words: 
    124123                plural = len(bad_words) > 1 
    125                 raise forms.ValidationError(ngettext( 
     124                raise forms.ValidationError(ungettext( 
    126125                    "Watch your mouth! The word %s is not allowed here.", 
    127126                    "Watch your mouth! The words %s are not allowed here.", plural) % \