Permalink
Browse files

Fixed #9506 take 2 -- Marked the message properly for translation, in…

… both places it appears in the source.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e40bd61 commit 04354e1afcd5d4b4813282c4849017b89f66aa24 @kmtracey kmtracey committed Nov 6, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/options.py
View
4 django/contrib/admin/options.py
@@ -556,7 +556,7 @@ def change_view(self, request, object_id, extra_context=None):
raise PermissionDenied
if obj is None:
- raise Http404(_('%s object with primary key %r does not exist.') % (force_unicode(opts.verbose_name), escape(object_id)))
+ raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)})
if request.method == 'POST' and request.POST.has_key("_saveasnew"):
return self.add_view(request, form_url='../../add/')
@@ -670,7 +670,7 @@ def delete_view(self, request, object_id, extra_context=None):
raise PermissionDenied
if obj is None:
- raise Http404('%s object with primary key %r does not exist.' % (force_unicode(opts.verbose_name), escape(object_id)))
+ raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)})
# Populate deleted_objects, a data structure of all related objects that
# will also be deleted.

0 comments on commit 04354e1

Please sign in to comment.