diff options
| author | Percy Perez-Pinedo | 2009-01-04 15:07:34 -0800 | 
|---|---|---|
| committer | Percy Perez-Pinedo | 2009-01-04 15:07:34 -0800 | 
| commit | 88fbcdcaaf9d8cced4d321ffed395b7937b9aa2a (patch) | |
| tree | 8a9ea26c4e3ed32bc49b6c818e99ac03091ab9f4 /debug_toolbar/templates | |
| parent | 5387dbaecb4cd339279dad1b970e15231b9b5deb (diff) | |
| download | django-debug-toolbar-88fbcdcaaf9d8cced4d321ffed395b7937b9aa2a.tar.bz2 | |
added "trans" to the templates to be translated
Diffstat (limited to 'debug_toolbar/templates')
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 (ms)</th> -			<th>Action</th> -			<th>Query</th> +			<th>{% trans "Time (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="">« Back</a> +{% load i18n %} +<a class="back" href="">« {% 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="">« Back</a> +{% load i18n %} +<a class="back" href="">« {% 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="">« Back</a> +{% load i18n %} +<a class="back" href="">« {% 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="">« Back</a> +{% load i18n %} +<a class="back" href="">« {% 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>  | 
