From ce151bb8e413a344627e29d3c1599ff06da672f2 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 15 Aug 2007 12:09:32 +0000 Subject: Fixed #5156 -- Added some translation calls to a couple of missed words. Based on a patch from dAniel hAhler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5895 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/core/validators.py') diff --git a/django/core/validators.py b/django/core/validators.py index 717262a065..8a93462b21 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -272,7 +272,7 @@ def hasNoProfanities(field_data, all_data): plural = len(words_seen) raise ValidationError, ungettext("Watch your mouth! The word %s is not allowed here.", "Watch your mouth! The words %s are not allowed here.", plural) % \ - get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in words_seen], 'and') + get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in words_seen], _('and')) class AlwaysMatchesOtherField(object): def __init__(self, other_field_name, error_message=None): -- cgit v1.3