mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
Fixed regression introduced by a962286
, changed ugettext to ugettext_lazy.
This commit is contained in:
parent
97a626d898
commit
ec47de77d6
@ -11,7 +11,7 @@ from django.core.urlresolvers import reverse, NoReverseMatch
|
||||
from django.template.response import TemplateResponse
|
||||
from django.utils import six
|
||||
from django.utils.text import capfirst
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import ugettext_lazy, ugettext as _
|
||||
from django.views.decorators.cache import never_cache
|
||||
from django.conf import settings
|
||||
|
||||
@ -36,13 +36,13 @@ class AdminSite(object):
|
||||
"""
|
||||
|
||||
# Text to put at the end of each page's <title>.
|
||||
site_title = _('Django site admin')
|
||||
site_title = ugettext_lazy('Django site admin')
|
||||
|
||||
# Text to put in each page's <h1>.
|
||||
site_header = _('Django administration')
|
||||
site_header = ugettext_lazy('Django administration')
|
||||
|
||||
# Text to put at the top of the admin index page.
|
||||
index_title = _('Site administration')
|
||||
index_title = ugettext_lazy('Site administration')
|
||||
|
||||
login_form = None
|
||||
index_template = None
|
||||
|
Loading…
Reference in New Issue
Block a user