Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed regression introduced by a962286, changed ugettext to ugettext_…

…lazy.
  • Loading branch information...
commit ec47de77d6a7bc9327047d157fb5706751413f18 1 parent 97a626d
Loic Bistuer authored September 07, 2013 timgraham committed September 07, 2013

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  django/contrib/admin/sites.py
8  django/contrib/admin/sites.py
@@ -11,7 +11,7 @@
11 11
 from django.template.response import TemplateResponse
12 12
 from django.utils import six
13 13
 from django.utils.text import capfirst
14  
-from django.utils.translation import ugettext as _
  14
+from django.utils.translation import ugettext_lazy, ugettext as _
15 15
 from django.views.decorators.cache import never_cache
16 16
 from django.conf import settings
17 17
 
@@ -36,13 +36,13 @@ class AdminSite(object):
36 36
     """
37 37
 
38 38
     # Text to put at the end of each page's <title>.
39  
-    site_title = _('Django site admin')
  39
+    site_title = ugettext_lazy('Django site admin')
40 40
 
41 41
     # Text to put in each page's <h1>.
42  
-    site_header = _('Django administration')
  42
+    site_header = ugettext_lazy('Django administration')
43 43
 
44 44
     # Text to put at the top of the admin index page.
45  
-    index_title = _('Site administration')
  45
+    index_title = ugettext_lazy('Site administration')
46 46
 
47 47
     login_form = None
48 48
     index_template = None

0 notes on commit ec47de7

Please sign in to comment.
Something went wrong with that request. Please try again.