aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/settings_vars.html5
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html7
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_explain.html7
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_profile.html7
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_select.html9
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/template_source.html3
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/timer.html5
-rw-r--r--debug_toolbar/templates/debug_toolbar/redirect.html7
8 files changed, 30 insertions, 20 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
index 1d332bf..1e84edf 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
@@ -1,9 +1,10 @@
+{% load i18n %}
<h3>Settings from <code>{{ settings.SETTINGS_MODULE }}</code></h3>
<table>
<thead>
<tr>
- <th>Setting</th>
- <th>Value</th>
+ <th>{% trans "Setting" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index 7de2220..0dc82e6 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -1,10 +1,11 @@
+{% load i18n %}
<h3>SQL Queries</h3>
<table>
<thead>
<tr>
- <th>Time&nbsp;(ms)</th>
- <th>Action</th>
- <th>Query</th>
+ <th>{% trans "Time&nbsp;(ms)" %}</th>
+ <th>{% trans "Action" %}</th>
+ <th>{% trans "Query" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
index dc306f0..cb3ca5e 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
@@ -1,9 +1,10 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
+{% load i18n %}
+<a class="back" href="">&laquo;&nbsp;{% trans "Back" %}</a>
<h3>SQL Explained</h3>
<dl>
- <dt>Executed SQL</dt>
+ <dt>{% trans "Executed SQL" %}</dt>
<dd><pre>{{ sql|safe }}</pre></dd>
- <dt>Time</dt>
+ <dt>{% trans "Time" %}</dt>
<dd>{{ time }} ms</dd>
</dl>
<table>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index c1d04ce..c058b2b 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
@@ -1,9 +1,10 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
+{% load i18n %}
+<a class="back" href="">&laquo;&nbsp;{% trans "Back" %}</a>
<h3>SQL Profiled</h3>
<dl>
- <dt>Executed SQL</dt>
+ <dt>{% trans "Executed SQL" %}</dt>
<dd><pre>{{ sql|safe }}</pre></dd>
- <dt>Time</dt>
+ <dt>{% trans "Time" %}</dt>
<dd>{{ time }} ms</dd>
</dl>
<table>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index 73109ef..c2ab7b6 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
@@ -1,9 +1,10 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
+{% load i18n %}
+<a class="back" href="">&laquo;&nbsp;{% trans "Back" %}</a>
<h3>SQL Selected</h3>
<dl>
- <dt>Executed SQL</dt>
+ <dt>{% trans "Executed SQL" %}</dt>
<dd><pre>{{ sql|safe }}</pre></dd>
- <dt>Time</dt>
+ <dt>{% trans "Time" %}</dt>
<dd>{{ time }} ms</dd>
</dl>
{% if result %}
@@ -26,5 +27,5 @@
</tbody>
</table>
{% else %}
- <p>Empty set</p>
+ <p>{% trans "Empty set" %}</p>
{% endif %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
index 572522b..e716691 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
@@ -1,3 +1,4 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
+{% load i18n %}
+<a class="back" href="">&laquo;&nbsp;{% trans "Back" %}</a>
<h3>Template Source: <samp>{{ template_name }}</samp></h3>
{{ source }}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html
index 1b077c6..2d409b0 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/timer.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html
@@ -1,3 +1,4 @@
+{% load i18n %}
<h3>Resource Usage</h3>
<table>
<colgroup>
@@ -6,8 +7,8 @@
</colgroup>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Key" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html
index afdccc4..d0585ca 100644
--- a/debug_toolbar/templates/debug_toolbar/redirect.html
+++ b/debug_toolbar/templates/debug_toolbar/redirect.html
@@ -1,3 +1,4 @@
+{% load i18n %}
<html>
<head>
</head>
@@ -5,9 +6,11 @@
<h1>HttpResponseRedirect</h1>
<p>Location: <a href="{{ redirect_to }}">{{ redirect_to }}</a></p>
<p class="notice">
- The Django Debug Toolbar has intercepted a redirect to the above URL for
+ {% trans
+ "The Django Debug Toolbar has intercepted a redirect to the above URL for
debug viewing purposes. You can click the above link to continue with the
- redirect as normal. If you'd like to disable this feature, set the
+ redirect as normal. If you'd like to disable this feature, set the"
+ %}
<code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key
<code>INTERCEPT_REDIRECTS</code> to <code>False</code>.
</p>