Commit 02fd87c8 authored by Claude Paroz's avatar Claude Paroz
Browse files

Fixed #20540 -- Added more translatable strings to contrib.admindocs

Thanks lborgav for the initial patch.
parent f3156933
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -7,27 +7,27 @@
&rsaquo; {% trans 'Documentation' %}</a>
</div>
{% endblock %}
{% block title %}Documentation{% endblock %}
{% block title %}{% trans 'Documentation' %}{% endblock %}

{% block content %}

<h1>Documentation</h1>
<h1>{% trans 'Documentation' %}</h1>

<div id="content-main">
  <h3><a href="tags/">Tags</a></h3>
  <p>List of all the template tags and their functions.</p>
  <h3><a href="tags/">{% trans 'Tags</a></h3>
  <p>{% trans 'List of all the template tags and their functions.' %}</p>

  <h3><a href="filters/">Filters</a></h3>
  <p>Filters are actions which can be applied to variables in a template to alter the output.</p>
  <h3><a href="filters/">{% trans 'Filters</a></h3>
  <p>{% trans 'Filters are actions which can be applied to variables in a template to alter the output.' %}</p>

  <h3><a href="models/">Models</a></h3>
  <p>Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables.</p>
  <h3><a href="models/">{% trans 'Models</a></h3>
  <p>{% trans 'Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables' %}.</p>

  <h3><a href="views/">Views</a></h3>
  <p>Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.</p>
  <h3><a href="views/">{% trans 'Views</a></h3>
  <p>{% trans 'Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.' %}</p>

    <h3><a href="bookmarklets/">Bookmarklets</a></h3>
    <p>Tools for your browser to quickly access admin functionality.</p>
  <h3><a href="bookmarklets/">{% trans 'Bookmarklets</a></h3>
  <p>{% trans 'Tools for your browser to quickly access admin functionality.' %}</p>
</div>

{% endblock %}
+4 −4
Original line number Diff line number Diff line
@@ -7,16 +7,16 @@
&rsaquo; {% trans 'Documentation' %}</a>
</div>
{% endblock %}
{% block title %}Please install docutils{% endblock %}
{% block title %}{% trans 'Please install docutils' %}{% endblock %}

{% block content %}

<h1>Documentation</h1>
<h1>{% trans 'Documentation' %}</h1>

<div id="content-main">
  <h3>The admin documentation system requires Python's <a href="http://docutils.sf.net/">docutils</a> library.</h3>
  <h3>{% blocktrans with "http://docutils.sf.net/" as link %}The admin documentation system requires Python's <a href="{{ link }}">docutils</a> library.{% endblocktrans %}</h3>

  <p>Please ask your administrators to install <a href="http://docutils.sf.net/">docutils</a>.</p>
  <p>{% blocktrans with "http://docutils.sf.net/" as link %}Please ask your administrators to install <a href="{{ link }}">docutils</a>.{% endblocktrans %}</p>
</div>

{% endblock %}
+5 −5
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
</div>
{% endblock %}

{% block title %}Model: {{ name }}{% endblock %}
{% block title %}{% blocktrans %}Model: {{ name }}{% endblocktrans %}{% endblock %}

{% block content %}
<div id="content-main">
@@ -32,9 +32,9 @@
<table class="model">
<thead>
<tr>
    <th>Field</th>
    <th>Type</th>
    <th>Description</th>
    <th>{% trans 'Field' %}</th>
    <th>{% trans 'Type' %}</th>
    <th>{% trans 'Description' %}</th>
</tr>
</thead>
<tbody>
@@ -49,6 +49,6 @@
</table>
</div>

<p class="small"><a href="{% url 'django-admindocs-models-index' %}">&lsaquo; Back to Models Documentation</a></p>
<p class="small"><a href="{% url 'django-admindocs-models-index' %}">&lsaquo; {% trans 'Back to Models Documentation' %}</a></p>
</div>
{% endblock %}
+3 −3
Original line number Diff line number Diff line
@@ -11,11 +11,11 @@
</div>
{% endblock %}

{% block title %}Models{% endblock %}
{% block title %}{% trans 'Models' %}{% endblock %}

{% block content %}

<h1>Model documentation</h1>
<h1>{% trans 'Model documentation' %}</h1>

{% regroup models by app_label as grouped_models %}

@@ -40,7 +40,7 @@
{% block sidebar %}
<div id="content-related" class="sidebar">
<div class="module">
<h2>Model groups</h2>
<h2>{% trans 'Model groups' %}</h2>
<ul>
{% regroup models by app_label as grouped_models %}
{% for group in grouped_models %}
+5 −5
Original line number Diff line number Diff line
@@ -10,20 +10,20 @@
</div>
{% endblock %}

{% block title %}Template: {{ name }}{% endblock %}
{% block title %}{% blocktrans %}Template: {{ name }}{% endblocktrans %}{% endblock %}

{% block content %}
<h1>Template: "{{ name }}"</h1>
<h1>{% blocktrans %}Template: "{{ name }}"{% endblocktrans %}</h1>

{% regroup templates|dictsort:"site_id" by site as templates_by_site %}
{% for group in templates_by_site %}
    <h2>Search path for template "{{ name }}" on {{ group.grouper }}:</h2>
    <h2>{% blocktrans with group.grouper as grouper %}Search path for template "{{ name }}" on {{ grouper }}:{% endblocktrans %}</h2>
    <ol>
    {% for template in group.list|dictsort:"order" %}
        <li><code>{{ template.file }}</code>{% if not template.exists %} <em>(does not exist)</em>{% endif %}</li>
        <li><code>{{ template.file }}</code>{% if not template.exists %} <em>{% trans '(does not exist)' %}</em>{% endif %}</li>
    {% endfor %}
    </ol>
{% endfor %}

<p class="small"><a href="{% url 'django-admindocs-docroot' %}">&lsaquo; Back to Documentation</a></p>
<p class="small"><a href="{% url 'django-admindocs-docroot' %}">&lsaquo; {% trans 'Back to Documentation' %}</a></p>
{% endblock %}
Loading