From 5151e5ff87ab56352df8d6979c14542aa18b2538 Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Fri, 2 Jan 2009 23:19:45 -0800
Subject: working on translating the django toolbar into Spanish. Translating
panel template: cache.html
---
.../templates/debug_toolbar/panels/cache.html | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
index 3142783..7667740 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/cache.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -1,3 +1,4 @@
+{% load i18n %}
Cache Usage
@@ -11,13 +12,13 @@
- | Total Calls |
+ {% trans "Total Calls" %} |
{{ cache_calls }} |
- Total Time |
+ {% trans "Total Time" %} |
{{ cache_time }}ms |
- Hits |
+ {% trans "Hits" %} |
{{ cache.hits }} |
- Misses |
+ {% trans "Misses" %} |
{{ cache.misses }} |
@@ -32,14 +33,14 @@
{% if cache.calls %}
-Breakdown
+{% trans "Breakdown" %}
- | Time (ms) |
- Type |
- Parameters |
- Function |
+ {% trans "Time (ms)" %} |
+ {% trans "Type" %} |
+ {% trans "Parameters" %} |
+ {% trans "Function" %} |
--
cgit v1.2.3
From 22fde8255f935dbadcd958ee04fc3f0a94a64704 Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Fri, 2 Jan 2009 23:26:02 -0800
Subject: finished adding "trans" to panel template headers.html
---
debug_toolbar/templates/debug_toolbar/panels/headers.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index 3ac7fd3..0a1578d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -1,9 +1,10 @@
+{% load i18n %}
HTTP Headers
- | Key |
- Value |
+ {% trans "Key" %} |
+ {% trans "Value" %} |
--
cgit v1.2.3
From 74763c3eb7e8debdf502697dfa28b0122cc9a628 Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Fri, 2 Jan 2009 23:36:49 -0800
Subject: trans fue incorporado a logger.html
---
debug_toolbar/templates/debug_toolbar/panels/headers.html | 2 +-
debug_toolbar/templates/debug_toolbar/panels/logger.html | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index 0a1578d..00b28e2 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -4,7 +4,7 @@
| {% trans "Key" %} |
- {% trans "Value" %} |
+ {% trans Value %} |
diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html
index c079065..112cc7d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/logger.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html
@@ -1,12 +1,13 @@
+{% load i18n %}
Log Messages
{% if records %}
- | Level |
- Time |
- Message |
- Location |
+ {% trans "Level" %} |
+ {% trans "Time" %} |
+ {% trans "Message" %} |
+ {% trans "Location" %} |
@@ -21,6 +22,6 @@
{% else %}
- No messages logged.
+ {% trans "No messages logged" %}.
{% endif %}
--
cgit v1.2.3
From 77c0f4d0b1bb7392b5893cc2fc055ec7605c4fed Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Fri, 2 Jan 2009 23:39:15 -0800
Subject: adding i18n to request_vars template
---
debug_toolbar/templates/debug_toolbar/panels/request_vars.html | 1 +
1 file changed, 1 insertion(+)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
index fe317ae..0885711 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
@@ -1,3 +1,4 @@
+{% load i18n %}
COOKIES Variables
{% if cookies %}
--
cgit v1.2.3
From 5387dbaecb4cd339279dad1b970e15231b9b5deb Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Fri, 2 Jan 2009 23:44:30 -0800
Subject: added trans to request_vars.html
---
.../templates/debug_toolbar/panels/headers.html | 2 +-
.../debug_toolbar/panels/request_vars.html | 24 +++++++++++-----------
2 files changed, 13 insertions(+), 13 deletions(-)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index 00b28e2..0a1578d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -4,7 +4,7 @@
| {% trans "Key" %} |
- {% trans Value %} |
+ {% trans "Value" %} |
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
index 0885711..751e1da 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
@@ -8,8 +8,8 @@
- | Key |
- Value |
+ {% trans "Key" %} |
+ {% trans "Value" %} |
@@ -22,7 +22,7 @@
{% else %}
- None
+ {% trans "None" %}
{% endif %}
SESSION Variables
{% if session %}
@@ -33,8 +33,8 @@
- | Key |
- Value |
+ {% trans "Key" %} |
+ {% trans "Value" %} |
@@ -47,15 +47,15 @@
{% else %}
- None
+ {% trans "None" %}
{% endif %}
GET Variables
{% if get %}
- | Key |
- Value |
+ {% trans "Key" %} |
+ {% trans "Value" %} |
@@ -68,15 +68,15 @@
{% else %}
- None
+ {% trans "None" %}
{% endif %}
POST Variables
{% if post %}
- | Key |
- Value |
+ {% trans "Key" %} |
+ {% trans "Value" %} |
@@ -89,5 +89,5 @@
{% else %}
- None
+ {% trans "None" %}
{% endif %}
--
cgit v1.2.3
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
From 2339b5e95a2ecf0cc64ccef8d50e669f5caff69a Mon Sep 17 00:00:00 2001
From: Percy Perez-Pinedo
Date: Sun, 4 Jan 2009 16:32:52 -0800
Subject: added "trans" to base and redirect templates
---
debug_toolbar/templates/debug_toolbar/base.html | 3 ++-
debug_toolbar/templates/debug_toolbar/redirect.html | 6 ++----
2 files changed, 4 insertions(+), 5 deletions(-)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index a6c8aef..fca6256 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -1,3 +1,4 @@
+{% load i18n %}