From 9ebc00217997acb6505a4e18e62bd45a3a595407 Mon Sep 17 00:00:00 2001 From: Ian Murray Date: Fri, 2 Nov 2012 12:55:26 +0000 Subject: [PATCH] [#1664] Use field name in internationalized error. --- ckan/controllers/group.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ckan/controllers/group.py b/ckan/controllers/group.py index 189381d7ec4..ef54064749e 100644 --- a/ckan/controllers/group.py +++ b/ckan/controllers/group.py @@ -505,7 +505,9 @@ def activity(self, id): except NotFound: abort(404, _('Group not found')) except NotAuthorized: - abort(401, _('Unauthorized to read group %s') % id) + abort(401, + _('Unauthorized to read group {group_id}').format( + group_id=id)) # Add the group's activity stream (already rendered to HTML) to the # template context for the group/read.html template to retrieve later.