aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/cache.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-30 18:16:41 +0100
committerAymeric Augustin2013-12-01 09:40:33 +0100
commite334bf6e4b4975fd87957c473a62c0d889e38cb0 (patch)
tree2f60ad8f111ff7bfcaf041247180ca2505e555f6 /debug_toolbar/panels/cache.py
parentd30452ee1997b3edd0c772e681c2ce816c730384 (diff)
downloaddjango-debug-toolbar-e334bf6e4b4975fd87957c473a62c0d889e38cb0.tar.bz2
Review translated strings.
- Include trailing colons inside translated strings because some languages (eg. French) need a space before the colon. - Normalize capitalization (title-style didn't seem warranted and looked weird in some cases). - Normalize quotes (not very useful, but we had a random mixture of single and double quotes). - Remove msgstr from the English po file because they're identical to msgid by definition.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
-rw-r--r--debug_toolbar/panels/cache.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index d08723f..1c37c6b 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -183,21 +183,21 @@ class CachePanel(Panel):
# Implement the Panel API
- nav_title = _('Cache')
+ nav_title = _("Cache")
@property
def nav_subtitle(self):
cache_calls = len(self.calls)
- return ungettext('%(cache_calls)d call in %(time).2fms',
- '%(cache_calls)d calls in %(time).2fms',
+ return ungettext("%(cache_calls)d call in %(time).2fms",
+ "%(cache_calls)d calls in %(time).2fms",
cache_calls) % {'cache_calls': cache_calls,
'time': self.total_time}
@property
def title(self):
count = len(getattr(settings, 'CACHES', ['default']))
- return ungettext('Cache calls from %(count)d backend',
- 'Cache calls from %(count)d backends',
+ return ungettext("Cache calls from %(count)d backend",
+ "Cache calls from %(count)d backends",
count) % dict(count=count)
def enable_instrumentation(self):