From 88fbcdcaaf9d8cced4d321ffed395b7937b9aa2a Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Sun, 4 Jan 2009 15:07:34 -0800
Subject: added "trans" to the templates to be translated
---
debug_toolbar/templates/debug_toolbar/panels/settings_vars.html | 5 +++--
debug_toolbar/templates/debug_toolbar/panels/sql.html | 7 ++++---
debug_toolbar/templates/debug_toolbar/panels/sql_explain.html | 7 ++++---
debug_toolbar/templates/debug_toolbar/panels/sql_profile.html | 7 ++++---
debug_toolbar/templates/debug_toolbar/panels/sql_select.html | 9 +++++----
.../templates/debug_toolbar/panels/template_source.html | 3 ++-
debug_toolbar/templates/debug_toolbar/panels/timer.html | 5 +++--
debug_toolbar/templates/debug_toolbar/redirect.html | 7 +++++--
8 files changed, 30 insertions(+), 20 deletions(-)
(limited to 'debug_toolbar/templates')
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 %}
Settings from {{ settings.SETTINGS_MODULE }}
- | Setting |
- Value |
+ {% trans "Setting" %} |
+ {% trans "Value" %} |
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 %}
SQL Queries
- | Time (ms) |
- Action |
- Query |
+ {% trans "Time (ms)" %} |
+ {% trans "Action" %} |
+ {% trans "Query" %} |
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 @@
-« Back
+{% load i18n %}
+« {% trans "Back" %}
SQL Explained
- - Executed SQL
+ - {% trans "Executed SQL" %}
{{ sql|safe }}
- - Time
+ - {% trans "Time" %}
- {{ time }} ms
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 @@
-« Back
+{% load i18n %}
+« {% trans "Back" %}
SQL Profiled
- - Executed SQL
+ - {% trans "Executed SQL" %}
{{ sql|safe }}
- - Time
+ - {% trans "Time" %}
- {{ time }} ms
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 @@
-« Back
+{% load i18n %}
+« {% trans "Back" %}
SQL Selected
- - Executed SQL
+ - {% trans "Executed SQL" %}
{{ sql|safe }}
- - Time
+ - {% trans "Time" %}
- {{ time }} ms
{% if result %}
@@ -26,5 +27,5 @@
{% else %}
- Empty set
+ {% trans "Empty set" %}
{% 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 @@
-« Back
+{% load i18n %}
+« {% trans "Back" %}
Template Source: {{ template_name }}
{{ 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 %}
Resource Usage
@@ -6,8 +7,8 @@
- | Key |
- Value |
+ {% trans "Key" %} |
+ {% trans "Value" %} |
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 %}
@@ -5,9 +6,11 @@
HttpResponseRedirect
Location: {{ redirect_to }}
- 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"
+ %}
DEBUG_TOOLBAR_CONFIG dictionary's key
INTERCEPT_REDIRECTS to False.
--
cgit v1.2.3