Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made the message strings added in r11837 visible to makemessages. Ref…

…s #12281.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7aaacb589a12e02d2a04edb5afca6c6eac83fc35 1 parent 35cc439
@kmtracey kmtracey authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 django/contrib/admin/options.py
View
8 django/contrib/admin/options.py
@@ -693,8 +693,8 @@ def response_action(self, request, queryset):
selected = request.POST.getlist(helpers.ACTION_CHECKBOX_NAME)
if not selected:
# Reminder that something needs to be selected or nothing will happen
- msg = "Items must be selected in order to perform actions on them. No items have been changed."
- self.message_user(request, _(msg))
+ msg = _("Items must be selected in order to perform actions on them. No items have been changed.")
+ self.message_user(request, msg)
return None
response = func(self, request, queryset.filter(pk__in=selected))
@@ -707,8 +707,8 @@ def response_action(self, request, queryset):
else:
return HttpResponseRedirect(".")
else:
- msg = "No action selected."
- self.message_user(request, _(msg))
+ msg = _("No action selected.")
+ self.message_user(request, msg)
@csrf_protect
@transaction.commit_on_success
Please sign in to comment.
Something went wrong with that request. Please try again.