Ticket #10897: admin-bulk-edits-ungettext.diff
File admin-bulk-edits-ungettext.diff, 1.2 KB (added by , 16 years ago) |
---|
-
Users/zuber/Projekty/przefotka/lib/django/contrib/admin/options.py
18 18 from django.utils.functional import curry 19 19 from django.utils.text import capfirst, get_text_list 20 20 from django.utils.translation import ugettext as _ 21 from django.utils.translation import ngettext, ugettext_lazy21 from django.utils.translation import ungettext, ugettext_lazy 22 22 from django.utils.encoding import force_unicode 23 23 try: 24 24 set … … 937 937 name = force_unicode(opts.verbose_name) 938 938 else: 939 939 name = force_unicode(opts.verbose_name_plural) 940 msg = ngettext("%(count)s %(name)s was changed successfully.",940 msg = ungettext("%(count)s %(name)s was changed successfully.", 941 941 "%(count)s %(name)s were changed successfully.", 942 942 changecount) % {'count': changecount, 943 943 'name': name,