diff options
| author | Kenneth Belitzky | 2009-10-10 01:21:56 +0800 |
|---|---|---|
| committer | Rob Hudson | 2009-10-17 10:19:35 +0800 |
| commit | e43d66aec655433705fd9651582781dc32ef2ab0 (patch) | |
| tree | 4e78212c5e7cd77e8df5471073874c54dc530638 | |
| parent | 2ddeea14da444184437e05a1cf70123354eac64a (diff) | |
| download | django-debug-toolbar-e43d66aec655433705fd9651582781dc32ef2ab0.tar.bz2 | |
added missing trans tags inside templates
6 files changed, 16 insertions, 16 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index 3fdbf74..83482e3 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -1,5 +1,5 @@ {% load i18n %} -<h4>COOKIES Variables</h4> +<h4>{% trans 'COOKIES Variables' %}</h4> {% if cookies %} <table> <colgroup> @@ -25,7 +25,7 @@ <p>{% trans "No COOKIE data" %}</p> {% endif %} -<h4>SESSION Variables</h4> +<h4>{% trans 'SESSION Variables' %}</h4> {% if session %} <table> <colgroup> @@ -51,7 +51,7 @@ <p>{% trans "No SESSION data" %}</p> {% endif %} -<h4>GET Variables</h4> +<h4>{% trans 'GET Variables' %}</h4> {% if get %} <table> <thead> @@ -73,7 +73,7 @@ <p>{% trans "No GET data" %}</p> {% endif %} -<h4>POST Variables</h4> +<h4>{% trans 'POST Variables' %}</h4> {% if post %} <table> <thead> diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html index d6d681c..75c1e22 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -3,8 +3,8 @@ <thead> <tr> <th>{% trans "Signal" %}</th> - <th>Providing Args</th> - <th>Receivers</th> + <th>{% trans 'Providing Args' %}</th> + <th>{% trans 'Receivers' %}</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 15466f6..c275bea 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -4,8 +4,8 @@ <tr> <th>{% trans "Time" %} (ms)</th> <th>{% trans "Action" %}</th> - <th>Stacktrace</th> - <th>Query</th> + <th>{% trans 'Stacktrace' %}</th> + <th>{% trans 'Query' %}</th> </tr> </thead> <tbody> diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html index 7074f4f..c4044c9 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -1,7 +1,7 @@ {% load i18n %} <div class="djDebugPanelTitle"> <a class="close back" href="">{% trans "Back" %}</a> - <h3>Template Source: <code>{{ template_name }}</code></h3> + <h3>{% trans 'Template Source' %}: <code>{{ template_name }}</code></h3> </div> <div class="djDebugPanelContent"> <div class="scroll"> diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 6107876..dcd5d85 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,5 +1,5 @@ {% load i18n %} -<h4>Template path{{ template_dirs|length|pluralize }}</h4> +<h4>{% trans 'Template path' %} {{ template_dirs|length|pluralize }}</h4> {% if template_dirs %} <ol> {% for template in template_dirs %} @@ -18,27 +18,27 @@ <dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd> {% if template.context %} <dd> - <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">▶</span> Toggle Context</a></div> + <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">▶</span> {% trans 'Toggle Context' %}</a></div> <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context }}</pre></div> </dd> {% endif %} {% endfor %} </dl> {% else %} - <p>None</p> + <p>{% trans 'None' %}</p> {% endif %} -<h4>Context processor{{ context_processors|length|pluralize }}</h4> +<h4>{% trans 'Context processor' %} {{ context_processors|length|pluralize }}</h4> {% if context_processors %} <dl> {% for key, value in context_processors.iteritems %} <dt><strong>{{ key|escape }}</strong></dt> <dd> - <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">▶</span> Toggle Context</a></div> + <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">▶</span> {% trans 'Toggle Context' %}</a></div> <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ value|escape }}</pre></div> </dd> {% endfor %} </dl> {% else %} - <p>None</p> + <p>{% trans 'None' %}</p> {% endif %} diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html index 93dd67c..250e3e8 100644 --- a/debug_toolbar/templates/debug_toolbar/redirect.html +++ b/debug_toolbar/templates/debug_toolbar/redirect.html @@ -4,7 +4,7 @@ </head> <body> <h1>HttpResponseRedirect</h1> -<p>Location: <a href="{{ redirect_to }}">{{ redirect_to }}</a></p> +<p>{% trans 'Location' %}: <a href="{{ redirect_to }}">{{ redirect_to }}</a></p> <p class="notice"> {% 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 <code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key <code>INTERCEPT_REDIRECTS</code> to <code>False</code>." %} </p> |
