Django

Code

Changeset 9363

Show
Ignore:
Timestamp:
11/06/08 10:44:42 (2 months ago)
Author:
kmtracey
Message:

Fixed #9506 take 2 -- Marked the message properly for translation, in both places it appears in the source.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/options.py

    r9360 r9363  
    557557 
    558558        if obj is None: 
    559             raise Http404(_('%s object with primary key %r does not exist.') % (force_unicode(opts.verbose_name), escape(object_id))
     559            raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)}
    560560 
    561561        if request.method == 'POST' and request.POST.has_key("_saveasnew"): 
     
    671671 
    672672        if obj is None: 
    673             raise Http404('%s object with primary key %r does not exist.' % (force_unicode(opts.verbose_name), escape(object_id))
     673            raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)}
    674674 
    675675        # Populate deleted_objects, a data structure of all related objects that