diff options
17 files changed, 212 insertions, 56 deletions
@@ -1,2 +1,3 @@ *.pyc - +*.DS_Store +*~ 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..d8d3edd --- /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..ad12522 --- /dev/null +++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po @@ -0,0 +1,143 @@ +# 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-01-04 17:18-0800\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" + +msgid "Hide" +msgstr "Ocultar" + + +#: templates/debug_toolbar/base.html:30 +msgid "Close" +msgstr "Cerrar" + +#: templates/debug_toolbar/panels/cache.html:15 +msgid "Total Calls" +msgstr "Total Llamadas" + +#: templates/debug_toolbar/panels/cache.html:17 +msgid "Total Time" +msgstr "Tiempo Total" + +#: templates/debug_toolbar/panels/cache.html:19 +msgid "Hits" +msgstr "" + +#: templates/debug_toolbar/panels/cache.html:21 +msgid "Misses" +msgstr "" + +#: templates/debug_toolbar/panels/cache.html:36 +msgid "Breakdown" +msgstr "" + +#: templates/debug_toolbar/panels/cache.html:40 +#: 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:41 +msgid "Type" +msgstr "Tipo" + +#: templates/debug_toolbar/panels/cache.html:42 +msgid "Parameters" +msgstr "Parámetros" + +#: templates/debug_toolbar/panels/cache.html:43 +msgid "Function" +msgstr "Función" + +#: templates/debug_toolbar/panels/headers.html:6 +#: templates/debug_toolbar/panels/request_vars.html:11 +#: templates/debug_toolbar/panels/request_vars.html:36 +#: templates/debug_toolbar/panels/request_vars.html:57 +#: templates/debug_toolbar/panels/request_vars.html:78 +#: templates/debug_toolbar/panels/timer.html:10 +msgid "Key" +msgstr "Llave" + +#: templates/debug_toolbar/panels/headers.html:7 +#: templates/debug_toolbar/panels/request_vars.html:12 +#: templates/debug_toolbar/panels/request_vars.html:37 +#: templates/debug_toolbar/panels/request_vars.html:58 +#: templates/debug_toolbar/panels/request_vars.html:79 +#: 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:25 +#: templates/debug_toolbar/panels/request_vars.html:50 +#: templates/debug_toolbar/panels/request_vars.html:71 +#: templates/debug_toolbar/panels/request_vars.html:92 +msgid "None" +msgstr "Ninguno" + +#: templates/debug_toolbar/panels/settings_vars.html:2 +msgid "Settings from" +msgstr "Configuraciones de" + +#: templates/debug_toolbar/panels/settings_vars.html:6 +msgid "Setting" +msgstr "Configuración" + +#: templates/debug_toolbar/panels/sql.html:7 +msgid "Action" +msgstr "Acción" + +#: templates/debug_toolbar/panels/sql.html:8 +msgid "Query" +msgstr "" + +#: 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 "" + +#: 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" diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index a44d31e..830bceb 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 %} @@ -52,7 +53,7 @@ {% for panel in panels %} {% if panel.has_content %} <div id="{{ panel.dom_id }}" class="panelContent"> - <a href="" class="close">Close</a> + <a href="" class="close">{% trans "Close" %}</a> <h3>{{ panel.title|safe }}</h3> <div class="panelScrollWrap"> <div class="panelScrollContent"> 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..791a736 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 "Key" %}</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 "Key" %}</th> + <th>{% trans "Value" %}</th> </tr> </thead> <tbody> @@ -50,7 +51,7 @@ </tbody> </table> {% else %} - <p>None</p> + <p>{% trans "None" %}</p> {% endif %} </div> @@ -60,8 +61,8 @@ <table> <thead> <tr> - <th>Key</th> - <th>Value</th> + <th>{% trans "Key" %}</th> + <th>{% trans "Value" %}</th> </tr> </thead> <tbody> @@ -74,7 +75,7 @@ </tbody> </table> {% else %} - <p>None</p> + <p>{% trans "None" %}</p> {% endif %} </div> @@ -84,8 +85,8 @@ <table> <thead> <tr> - <th>Key</th> - <th>Value</th> + <th>{% trans "Key" %}</th> + <th>{% trans "Value" %}</th> </tr> </thead> <tbody> @@ -98,6 +99,6 @@ </tbody> </table> {% else %} - <p>None</p> + <p>{% trans "None" %}</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..3936dba 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -2,7 +2,7 @@ <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..4c100e9 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 "Action" %}</th> <th>Stacktrace</th> <th>Query</th> </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 a163b25..64076e7 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 e46f41d..f53dcc0 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 17e7d48..1438050 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 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/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index ba801b2..70ba61e 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 "Key" %}</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> |
