Ticket #16973: admin_message_capfirst_fix.diff

File admin_message_capfirst_fix.diff, 1.6 KB (added by Erik Wognsen, 13 years ago)
Line 
1Index: django/contrib/admin/options.py
2===================================================================
3757c757,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)})
8805c806,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)})
13813c815,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.'))
191264c1268,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)}))
Back to Top