Used a more translator-friendly format in admin sites.py

This commit is contained in:
Claude Paroz 2013-12-23 09:44:16 +01:00
parent b4a11f2720
commit 8cff95e937
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ class AdminSite(object):
# Sort the models alphabetically within each app.
app_dict['models'].sort(key=lambda x: x['name'])
context = dict(self.each_context(),
title=_('%s administration') % app_name,
title=_('%(app)s administration') % {'app': app_name},
app_list=[app_dict],
app_label=app_label,
)