diff options
| author | Rob Hudson | 2009-08-24 16:16:10 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2009-08-24 16:16:10 -0700 | 
| commit | 2fcfa87b1addcb903185af943d6f7a20c0cfa6bf (patch) | |
| tree | 80d3efb1cb5be90a56e88083992c6eb60ec10971 /debug_toolbar | |
| parent | ecd7f2abe62996b19720e9ade61b45eafac590e8 (diff) | |
| download | django-debug-toolbar-2fcfa87b1addcb903185af943d6f7a20c0cfa6bf.tar.bz2 | |
Merge locale work by Percy.
Diffstat (limited to 'debug_toolbar')
17 files changed, 245 insertions, 60 deletions
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.mo b/debug_toolbar/locale/es/LC_MESSAGES/django.mo Binary files differnew file mode 100644 index 0000000..a09808b --- /dev/null +++ b/debug_toolbar/locale/es/LC_MESSAGES/django.mo diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.po b/debug_toolbar/locale/es/LC_MESSAGES/django.po new file mode 100644 index 0000000..2d4c199 --- /dev/null +++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po @@ -0,0 +1,171 @@ +# Django Debug Toolbar en Español. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Percy Pérez-Pinedo <percyp3@gmail.com>, 2009. +# +# Caracteres especiales: á, é, í, ó, ú, ñ, +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-08-21 15:26-0700\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: templates/debug_toolbar/base.html:24 +msgid "Hide" +msgstr "Ocultar" + +#: templates/debug_toolbar/base.html:56 +msgid "Close" +msgstr "Cerrar" + +#: templates/debug_toolbar/panels/cache.html:14 +msgid "Total Calls" +msgstr "Total Llamadas" + +#: templates/debug_toolbar/panels/cache.html:16 +msgid "Total Time" +msgstr "Tiempo Total" + +#: templates/debug_toolbar/panels/cache.html:18 +msgid "Hits" +msgstr "" + +#: templates/debug_toolbar/panels/cache.html:20 +msgid "Misses" +msgstr "" + +#: templates/debug_toolbar/panels/cache.html:35 +msgid "Breakdown" +msgstr "" + +#: templates/debug_toolbar/panels/cache.html:39 +#: templates/debug_toolbar/panels/logger.html:8 +#: templates/debug_toolbar/panels/sql.html:6 +#: templates/debug_toolbar/panels/sql_explain.html:7 +#: templates/debug_toolbar/panels/sql_profile.html:7 +#: templates/debug_toolbar/panels/sql_select.html:7 +msgid "Time" +msgstr "Tiempo" + +#: templates/debug_toolbar/panels/cache.html:40 +msgid "Type" +msgstr "Tipo" + +#: templates/debug_toolbar/panels/cache.html:41 +msgid "Parameters" +msgstr "Parámetros" + +#: templates/debug_toolbar/panels/cache.html:42 +msgid "Function" +msgstr "Función" + +#: templates/debug_toolbar/panels/headers.html:6 +msgid "Key" +msgstr "Llave" + +#: templates/debug_toolbar/panels/headers.html:7 +#: templates/debug_toolbar/panels/request_vars.html:13 +#: templates/debug_toolbar/panels/request_vars.html:41 +#: templates/debug_toolbar/panels/request_vars.html:65 +#: templates/debug_toolbar/panels/request_vars.html:89 +#: templates/debug_toolbar/panels/settings_vars.html:7 +#: templates/debug_toolbar/panels/timer.html:11 +msgid "Value" +msgstr "Valor" + +#: templates/debug_toolbar/panels/logger.html:7 +msgid "Level" +msgstr "Nivel" + +#: templates/debug_toolbar/panels/logger.html:9 +msgid "Message" +msgstr "Mensaje" + +#: templates/debug_toolbar/panels/logger.html:10 +msgid "Location" +msgstr "" + +#: templates/debug_toolbar/panels/logger.html:25 +msgid "No messages logged" +msgstr "" + +#: templates/debug_toolbar/panels/request_vars.html:12 +#: templates/debug_toolbar/panels/request_vars.html:40 +#: templates/debug_toolbar/panels/request_vars.html:64 +#: templates/debug_toolbar/panels/request_vars.html:88 +#, fuzzy +msgid "Variable" +msgstr "Variable" + +#: templates/debug_toolbar/panels/request_vars.html:26 +msgid "None" +msgstr "Ninguno" + +#: templates/debug_toolbar/panels/request_vars.html:54 +msgid "No SESSION data" +msgstr "No SESSION datos" + +#: templates/debug_toolbar/panels/request_vars.html:78 +msgid "No GET data" +msgstr "No GET datos" + +#: templates/debug_toolbar/panels/request_vars.html:102 +msgid "No POST data" +msgstr "No POST datos" + +#: templates/debug_toolbar/panels/settings_vars.html:6 +msgid "Setting" +msgstr "Configuración" + +#: templates/debug_toolbar/panels/signals.html:6 +msgid "Signal" +msgstr "Señal" + +#: templates/debug_toolbar/panels/sql.html:7 +msgid "Action" +msgstr "Acción" + +#: templates/debug_toolbar/panels/sql.html:31 +msgid "Line" +msgstr "Línea" + +#: templates/debug_toolbar/panels/sql.html:32 +msgid "Method" +msgstr "Método" + +#: templates/debug_toolbar/panels/sql.html:33 +msgid "File" +msgstr "Archivo" + +#: templates/debug_toolbar/panels/sql_explain.html:2 +#: templates/debug_toolbar/panels/sql_profile.html:2 +#: templates/debug_toolbar/panels/sql_select.html:2 +#: templates/debug_toolbar/panels/template_source.html:2 +msgid "Back" +msgstr "Regresar" + +#: templates/debug_toolbar/panels/sql_explain.html:5 +#: templates/debug_toolbar/panels/sql_profile.html:5 +#: templates/debug_toolbar/panels/sql_select.html:5 +msgid "Executed SQL" +msgstr "SQL Ejecutado" + +#: templates/debug_toolbar/panels/sql_select.html:30 +msgid "Empty set" +msgstr "Set Vacío" + +#: templates/debug_toolbar/panels/templates.html:14 +msgid "Template" +msgstr "Plantilla" + +#: templates/debug_toolbar/panels/timer.html:10 +msgid "Resource" +msgstr "Recurso" diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index d0f4562..b80daef 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,3 +1,4 @@ +{% load i18n %}  <script type="text/javascript" charset="utf-8">  	// When jQuery is sourced, it's going to overwrite whatever might be in the  	// '$' variable, so store a reference of it in a temporary variable... @@ -20,7 +21,7 @@  	<div style="display:none;" id="djDebugToolbar">  		<ul id="djDebugPanelList">  			{% if panels %} -			<li><a id="djHideToolBarButton" href="#" title="Hide Toolbar">Hide »</a></li> +			<li><a id="djHideToolBarButton" href="#" title="Hide Toolbar">{% trans "Hide" %} »</a></li>  			{% else %}  			<li id="djDebugButton">DEBUG</li>  			{% endif %} @@ -51,7 +52,7 @@  		{% if panel.has_content %}  			<div id="{{ panel.dom_id }}" class="panelContent">  				<div class="djDebugPanelTitle"> -					<a href="" class="close">Close</a> +					<a href="" class="close">{% trans "Close" %}</a>  					<h3>{{ panel.title|safe }}</h3>  				</div>  				<div class="djDebugPanelContent"> diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html index d102cdd..5c5f13b 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 %}  <table>  	<colgroup>  		<col width="12%"/> @@ -10,13 +11,13 @@  		<col width="12%"/>  	</colgroup>  	<tr> -		<th>Total Calls</th> +		<th>{% trans "Total Calls" %}</th>  		<td>{{ cache_calls }}</td> -		<th>Total Time</th> +		<th>{% trans "Total Time" %}</th>  		<td>{{ cache_time }}ms</td> -		<th>Hits</th> +		<th>{% trans "Hits" %}</th>  		<td>{{ cache.hits }}</td> -		<th>Misses</th> +		<th>{% trans "Misses" %}</th>  		<td>{{ cache.misses }}</td>  	</tr>  	<tr> @@ -31,14 +32,14 @@  	</tr>  </table>  {% if cache.calls %} -<h3>Breakdown</h3> +<h3>{% trans "Breakdown" %}</h3>  <table>  	<thead>  		<tr> -			<th>Time (ms)</th> -			<th>Type</th> -			<th>Parameters</th> -			<th>Function</th> +			<th>{% trans "Time" %} (ms)</th> +			<th>{% trans "Type" %}</th> +			<th>{% trans "Parameters" %}</th> +			<th>{% trans "Function" %}</th>  		</tr>  	</thead>  	<tbody> diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index a6b6b59..ef153bf 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 %}  <div class="boxed">      <table>      	<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/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html index 2bfab05..080f955 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 %}  <div class="boxed">      {% if records %}      	<table>      		<thead>      			<tr> -    				<th>Level</th> -    				<th>Time</th> -    				<th>Message</th> -    				<th>Location</th> +    				<th>{% trans "Level" %}</th> +    				<th>{% trans "Time" %}</th> +    				<th>{% trans "Message" %}</th> +    				<th>{% trans "Location" %}</th>      			</tr>      		</thead>      		<tbody> @@ -21,6 +22,6 @@      		</tbody>      	</table>      {% else %} -    	<p>No messages logged.</p> +    	<p>{% trans "No messages logged" %}.</p>      {% endif %} -</div> +</div>
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index d8c81ba..c2797dc 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 %}  <h4>COOKIES Variables</h4>  <div class="boxed">      {% if cookies %} @@ -8,8 +9,8 @@      		</colgroup>      		<thead>      			<tr> -    				<th>Key</th> -    				<th>Value</th> +    				<th>{% trans "Variable" %}</th> +    				<th>{% trans "Value" %}</th>      			</tr>      		</thead>      		<tbody> @@ -22,7 +23,7 @@      		</tbody>      	</table>      {% else %} -    	<p>None</p> +    	<p>{% trans "None" %}</p>      {% endif %}  </div> @@ -36,8 +37,8 @@      		</colgroup>      		<thead>      			<tr> -    				<th>Key</th> -    				<th>Value</th> +    				<th>{% trans "Variable" %}</th> +    				<th>{% trans "Value" %}</th>      			</tr>      		</thead>      		<tbody> @@ -50,7 +51,7 @@      		</tbody>      	</table>      {% else %} -    	<p>None</p> +    	<p>{% trans "No SESSION data" %}</p>      {% endif %}  </div> @@ -60,8 +61,8 @@      	<table>      		<thead>      			<tr> -    				<th>Key</th> -    				<th>Value</th> +    				<th>{% trans "Variable" %}</th> +    				<th>{% trans "Value" %}</th>      			</tr>      		</thead>      		<tbody> @@ -74,7 +75,7 @@      		</tbody>      	</table>      {% else %} -    	<p>None</p> +    	<p>{% trans "No GET data" %}</p>      {% endif %}  </div> @@ -84,8 +85,8 @@      	<table>      		<thead>      			<tr> -    				<th>Key</th> -    				<th>Value</th> +    				<th>{% trans "Variable" %}</th> +    				<th>{% trans "Value" %}</th>      			</tr>      		</thead>      		<tbody> @@ -98,6 +99,6 @@      		</tbody>      	</table>      {% else %} -    	<p>None</p> +    	<p>{% trans "No POST data" %}</p>      {% endif %} -</div>
\ No newline at end of file +</div> diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html index 8c65700..1b9d452 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 %}  <div class="boxed">      <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/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html index c7a7733..fccf7ff 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -1,8 +1,9 @@ +{% load i18n %}  <div class="boxed">      <table>          <thead>              <tr> -                <th>Signal</th> +                <th>{% trans "Signal" %}</th>                  <th>Providing Args</th>                  <th>Receivers</th>              </tr> diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index bb805e6..cac2e47 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -1,9 +1,10 @@ +{% load i18n %}  <div class="boxed">      <table>      	<thead>      		<tr> -    			<th>Time (ms)</th> -    			<th>Action</th> +    			<th>{% trans "Time" %} (ms)</th> +    			<th>{% trans "Action" %}</th>      			<th>Stacktrace</th>      			<th>Query</th>      		</tr> @@ -27,9 +28,9 @@      					<div class="djSQLHideStacktraceDiv" style="display:none;">      						<table>      							<tr> -    								<th>Line</th> -    								<th>Method</th> -    								<th>File</th> +    								<th>{% trans "Line" %}</th> +    								<th>{% trans "Method" %}</th> +    								<th>{% trans "File" %}</th>      							</tr>      							{% for file, line, method in query.stacktrace %}      								<tr> @@ -47,5 +48,4 @@      		{% endfor %}      	</tbody>      </table> -</div> - +</div>
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index d26a8a3..38249b3 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -1,12 +1,13 @@ +{% load i18n %}  <div class="djDebugPanelTitle"> -	<a class="back" href="">« Back</a> +	<a class="back" href="">« {% trans "Back" %}</a>  	<h3>SQL Explained</h3>  </div>  <div class="djDebugPanelContent">  	<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 c5410f8..7df65da 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -1,12 +1,13 @@ +{% load i18n %}  <div class="djDebugPanelTitle"> -	<a class="back" href="">« Back</a> +	<a class="back" href="">« {% trans "Back" %}</a>  	<h3>SQL Profiled</h3>  </div>  <div class="djDebugPanelContent">  	<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 4fc928d..e4d6027 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -1,12 +1,13 @@ +{% load i18n %}  <div class="djDebugPanelTitle"> -	<a class="back" href="">« Back</a> +	<a class="back" href="">« {% trans "Back" %}</a>  	<h3>SQL Selected</h3>  </div>  <div class="djDebugPanelContent">  	<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 %} @@ -29,6 +30,6 @@  		</tbody>  	</table>  	{% else %} -		<p>Empty set</p> +		<p>{% trans "Empty set" %}</p>  	{% endif %}  </div> diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html index 2094a3f..a9d6a88 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -1,4 +1,5 @@ -<a class="close back" href="">Back</a> +{% load i18n %} +<a class="close back" href="">{% trans "Back" %}</a>  <h3>Template Source: <code>{{ template_name }}</code></h3>  <div class="panelScrollWrap">      <div class="panelScrollContent"> @@ -6,4 +7,4 @@              {{ source }}          </div>      </div> -</div> +</div>
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 622321f..194e477 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,3 +1,4 @@ +{% load i18n %}  <h4>Template path{{ template_dirs|length|pluralize }}</h4>  <div class="boxed">  {% if template_dirs %} @@ -11,7 +12,7 @@  {% endif %}  </div> -<h4>Template{{ templates|length|pluralize }}</h4> +<h4>{% trans "Template" %}{{ templates|length|pluralize }}</h4>  <div class="boxed">      {% if templates %}      <dl> diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index ba801b2..d089276 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 %}  <div class="boxed">      <table>      	<colgroup> @@ -6,8 +7,8 @@      	</colgroup>      	<thead>      		<tr> -    			<th>Key</th> -    			<th>Value</th> +    			<th>{% trans "Resource" %}</th> +    			<th>{% trans "Value" %}</th>      		</tr>      	</thead>      	<tbody> @@ -19,4 +20,4 @@      		{% endfor %}      	</tbody>      </table> -</div> +</div>
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html index 1f5c84b..5611977 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,9 @@  <h1>HttpResponseRedirect</h1>  <p>Location: <a href="{{ redirect_to|urlencode }}">{{ 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>  | 
