diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-12-14 16:30:40 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-12-14 16:30:40 +0000 |
| commit | 328836208cd64826ebfe5bbca03ba43521664c85 (patch) | |
| tree | 4f285163d9c3c206c44a18d3941f470a127ca8e8 /django/core | |
| parent | 9fe3ac132222343d058975f81a9a3c810a63cc20 (diff) | |
added a missed translation to the admin (the error message when you try to add a duplicate record)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/meta/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/meta/__init__.py b/django/core/meta/__init__.py index 021a142c22..049b39e2b6 100644 --- a/django/core/meta/__init__.py +++ b/django/core/meta/__init__.py @@ -1943,8 +1943,8 @@ def manipulator_validator_unique_together(field_name_list, opts, self, field_dat if hasattr(self, 'original_object') and getattr(self.original_object, opts.pk.attname) == getattr(old_obj, opts.pk.attname): pass else: - raise validators.ValidationError, "%s with this %s already exists for the given %s." % \ - (capfirst(opts.verbose_name), field_list[0].verbose_name, get_text_list(field_name_list[1:], 'and')) + raise validators.ValidationError, _("%(object)s with this %(type)s already exists for the given %(field)s.") % { + 'object': capfirst(opts.verbose_name), 'type': field_list[0].verbose_name, 'field': get_text_list(field_name_list[1:], 'and')} def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_type, self, field_data, all_data): date_str = all_data.get(date_field.get_manipulator_field_names('')[0], None) |
