1 | Index: django/contrib/admin/options.py
|
---|
2 | ===================================================================
|
---|
3 | 757c757,758
|
---|
4 | < msg = _('The %(name)s "%(obj)s" was added successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj)}
|
---|
5 | ---
|
---|
6 | > msg = capfirst(_('The %(name)s "%(obj)s" was added successfully.')
|
---|
7 | > % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj)})
|
---|
8 | 805c806,807
|
---|
9 | < msg = _('The %(name)s "%(obj)s" was changed successfully.') % {'name': force_unicode(verbose_name), 'obj': force_unicode(obj)}
|
---|
10 | ---
|
---|
11 | > msg = capfirst(_('The %(name)s "%(obj)s" was changed successfully.')
|
---|
12 | > % {'name': force_unicode(verbose_name), 'obj': force_unicode(obj)})
|
---|
13 | 813c815,817
|
---|
14 | < msg = _('The %(name)s "%(obj)s" was added successfully. You may edit it again below.') % {'name': force_unicode(verbose_name), 'obj': obj}
|
---|
15 | ---
|
---|
16 | > msg = (capfirst(_('The %(name)s "%(obj)s" was added successfully.')
|
---|
17 | > % {'name': force_unicode(verbose_name), 'obj': obj})
|
---|
18 | > + ' ' + _('You may edit it again below.'))
|
---|
19 | 1264c1268,1269
|
---|
20 | < self.message_user(request, _('The %(name)s "%(obj)s" was deleted successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj_display)})
|
---|
21 | ---
|
---|
22 | > self.message_user(request, capfirst(_('The %(name)s "%(obj)s" was deleted successfully.')
|
---|
23 | > % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj_display)}))
|
---|