Fixed regression introduced by a962286, changed ugettext to ugettext_lazy.

This commit is contained in:
Loic Bistuer 2013-09-07 13:05:21 +07:00 committed by Tim Graham
parent 97a626d898
commit ec47de77d6
1 changed files with 4 additions and 4 deletions

View File

@ -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