Made the message strings added in r11837 visible to makemessages. Refs #12281.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2009-12-14 16:01:43 +00:00
parent 35cc439228
commit 7aaacb589a
1 changed files with 4 additions and 4 deletions

View File

@ -693,8 +693,8 @@ class ModelAdmin(BaseModelAdmin):
selected = request.POST.getlist(helpers.ACTION_CHECKBOX_NAME) selected = request.POST.getlist(helpers.ACTION_CHECKBOX_NAME)
if not selected: if not selected:
# Reminder that something needs to be selected or nothing will happen # 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." msg = _("Items must be selected in order to perform actions on them. No items have been changed.")
self.message_user(request, _(msg)) self.message_user(request, msg)
return None return None
response = func(self, request, queryset.filter(pk__in=selected)) response = func(self, request, queryset.filter(pk__in=selected))
@ -707,8 +707,8 @@ class ModelAdmin(BaseModelAdmin):
else: else:
return HttpResponseRedirect(".") return HttpResponseRedirect(".")
else: else:
msg = "No action selected." msg = _("No action selected.")
self.message_user(request, _(msg)) self.message_user(request, msg)
@csrf_protect @csrf_protect
@transaction.commit_on_success @transaction.commit_on_success