diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-08-15 12:09:32 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-08-15 12:09:32 +0000 |
| commit | ce151bb8e413a344627e29d3c1599ff06da672f2 (patch) | |
| tree | 5029549e9aff08b29bd055d26df1ca5f8473a417 /django/core | |
| parent | f0ca553a68c7956805406c4432fe398763b564f9 (diff) | |
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
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
