          self._bulk_flag(request, queryset, perform_flag, _("flagged"))
      flag_comments.short_description = _("Flag selected comments")
  
      def approve_comments(self, request, queryset):
          self._bulk_flag(request, queryset, perform_approve, _('approved'))
      approve_comments.short_description = _("Approve selected comments")
  
      def remove_comments(self, request, queryset):
          self._bulk_flag(request, queryset, perform_delete, _('removed'))
      remove_comments.short_description = _("Remove selected comments")
 
</s> remove         self._bulk_flag(request, queryset, perform_flag, _("flagged"))
 </s> add         self._bulk_flag(request, queryset, perform_flag,
                        lambda n: ungettext('flagged', 'flagged', n)) </s> remove         self._bulk_flag(request, queryset, perform_delete, _('removed'))
 </s> add         self._bulk_flag(request, queryset, perform_delete,
                        lambda n: ungettext('removed', 'removed', n)) </s> remove     def _bulk_flag(self, request, queryset, action, description):
 </s> add     def _bulk_flag(self, request, queryset, action, done_message): </s> remove         self.message_user(request, msg % {'count': n_comments, 'action': description})
 </s> add         self.message_user(request, msg % {'count': n_comments, 'action': done_message(n_comments)})
        self._bulk_flag(request, queryset, perform_approve,
                        lambda n: ungettext('approved', 'approved', n))
          self._bulk_flag(request, queryset, perform_flag, _("flagged"))
      flag_comments.short_description = _("Flag selected comments")
  
      def approve_comments(self, request, queryset):
        self._bulk_flag(request, queryset, perform_approve,
                        lambda n: ungettext('approved', 'approved', n))
      approve_comments.short_description = _("Approve selected comments")
  
      def remove_comments(self, request, queryset):
          self._bulk_flag(request, queryset, perform_delete, _('removed'))
      remove_comments.short_description = _("Remove selected comments")
keep keep keep keep replace keep keep keep keep keep
 Fixed #12940 -- Modified some admin actions in contrib.comments to use ungettext in order to support Russian (and similar) pluralization rules. Thanks to void for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12770 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/comments/admin.py