1
0
mirror of https://github.com/django/django.git synced 2025-04-01 12:06:43 +00:00

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

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,
)