Ticket #17597: 17597.diff

File 17597.diff, 769 bytes (added by Claude Paroz, 12 years ago)

Mark 'and' for translation

  • django/contrib/comments/forms.py

    diff --git a/django/contrib/comments/forms.py b/django/contrib/comments/forms.py
    index 05c4afe..5bc390f 100644
    a b class CommentDetailsForm(CommentSecurityForm):  
    176176                raise forms.ValidationError(ungettext(
    177177                    "Watch your mouth! The word %s is not allowed here.",
    178178                    "Watch your mouth! The words %s are not allowed here.", len(bad_words))
    179                     % get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in bad_words], 'and'))
     179                    % get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in bad_words], _('and')))
    180180        return comment
    181181
    182182class CommentForm(CommentDetailsForm):
Back to Top