aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/panels/cache.py')
-rw-r--r--debug_toolbar/panels/cache.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index a05d3cc..8cdd929 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -7,6 +7,7 @@ except ImportError:
from django.core import cache
from django.core.cache.backends.base import BaseCache
from django.template.loader import render_to_string
+from django.utils.translation import ugettext_lazy as _
from debug_toolbar.panels import DebugPanel
class CacheStatTracker(BaseCache):
@@ -88,10 +89,10 @@ class CacheDebugPanel(DebugPanel):
cache.cache = self.cache
def nav_title(self):
- return 'Cache: %.2fms' % self.cache.total_time
+ return _('Cache: %.2fms') % self.cache.total_time
def title(self):
- return 'Cache Usage'
+ return _('Cache Usage')
def url(self):
return ''
@@ -102,4 +103,4 @@ class CacheDebugPanel(DebugPanel):
cache_time = self.cache.total_time,
cache = self.cache,
)
- return render_to_string('debug_toolbar/panels/cache.html', context) \ No newline at end of file
+ return render_to_string('debug_toolbar/panels/cache.html', context)