Ticket #7564: gettext.diff
File gettext.diff, 2.0 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
427 427 if formsets: 428 428 for formset in formsets: 429 429 for added_object in formset.new_objects: 430 change_message.append(_('Added % s "%s".')431 % (added_object._meta.verbose_name, added_object))430 change_message.append(_('Added %(name)s "%(object)s".') 431 % {'name': added_object._meta.verbose_name, % 'object': added_object}) 432 432 for changed_object, changed_fields in formset.changed_objects: 433 change_message.append(_('Changed % s for %s "%s".')434 % (get_text_list(changed_fields, _('and')),435 changed_object._meta.verbose_name,436 changed_object))433 change_message.append(_('Changed %(list)s for %(name)s "%(object)s".') 434 % {'list': get_text_list(changed_fields, _('and')), 435 'name': changed_object._meta.verbose_name, 436 'object': changed_object}) 437 437 for deleted_object in formset.deleted_objects: 438 change_message.append(_('Deleted % s "%s".')439 % (deleted_object._meta.verbose_name, deleted_object))440 438 change_message.append(_('Deleted %(name)s "%(object)s".') 439 % {'name': deleted_object._meta.verbose_name, 440 'object': deleted_object}) 441 441 change_message = ' '.join(change_message) 442 442 if not change_message: 443 443 change_message = _('No fields changed.')