From eef4739deeac46a8b06fc412182007669e55a427 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Mon, 14 Dec 2009 16:05:28 +0000 Subject: [PATCH] [1.1.X] Made the message strings added in r11838 visible to makemessages. Refs #12281. r11864 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11865 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/options.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index a230416152..c7231a2755 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -690,8 +690,8 @@ class ModelAdmin(BaseModelAdmin): 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)) @@ -704,8 +704,8 @@ class ModelAdmin(BaseModelAdmin): else: return HttpResponseRedirect(".") else: - msg = "No action selected." - self.message_user(request, _(msg)) + msg = _("No action selected.") + self.message_user(request, msg) def add_view(self, request, form_url='', extra_context=None): "The 'add' admin view for this model."