Skip to content

Commit

Permalink
Ensure new content has translations
Browse files Browse the repository at this point in the history
  • Loading branch information
nlhkabu committed Sep 9, 2019
1 parent cb4ec07 commit 453e589
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-#}
<nav aria-label="Navigation for managing {{project.normalized_name}}">
<nav aria-label="{% trans project=project.normalized_name %}Navigation for managing {{ project }}{% endtrans %}">
<ul class="vertical-tabs__list">
<li>
<a href="{{ request.route_path('manage.project.releases', project_name=project.normalized_name)}}" class="vertical-tabs__tab vertical-tabs__tab--with-icon {% if active_tab == 'releases' %}vertical-tabs__tab--is-active{% endif %} {% if mode == 'mobile' %}vertical-tabs__tab--mobile{% endif %}">
Expand Down
4 changes: 2 additions & 2 deletions warehouse/templates/manage/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -634,11 +634,11 @@ <h2>{% trans %}Security history{% endtrans %} <span class="badge badge--warning"
<tr>
<td>{{ event_summary(event) }}</td>
<td>
<span class="table__mobile-label">Date / time</span>
<span class="table__mobile-label">{% trans %}Date / time{% endtrans %}</span>
{{ humanize(event.time) }}
</td>
<td>
<span class="table__mobile-label">IP address</span>
<span class="table__mobile-label">{% trans %}IP address{% endtrans %}</span>
{{ event.ip_address }}
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions warehouse/templates/manage/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ <h2>{% trans %}Security history{% endtrans %} <span class="badge badge--warning"
<tr>
<td>{{ event_summary(event) }}</td>
<td>
<span class="table__mobile-label">Date / time</span>
<span class="table__mobile-label">{% trans %}Date / time{% endtrans %}</span>
{{ humanize(event.time) }}
</td>
<td>
<span class="table__mobile-label">IP address</span>
<span class="table__mobile-label">{% trans %}IP address{% endtrans %}</span>
{{ event.ip_address }}
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/templates/manage/manage_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3 class="sidebar-section__title">{% trans %}Your account{% endtrans %}</h3>
</div>
<div class="vertical-tabs__panel">
<!-- mobile nav -->
<nav aria-label="Account navigation">
<nav aria-label="{% trans %}Account navigation{% endtrans %}">
<ul class="vertical-tabs__list">
<li>
<a href="{{ request.route_path('manage.projects') }}" class="vertical-tabs__tab vertical-tabs__tab--mobile vertical-tabs__tab--with-icon vertical-tabs__tab--no-top-border {% block projects_mobile_active %}{% endblock %}">
Expand Down
2 changes: 1 addition & 1 deletion warehouse/templates/manage/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>{% trans release_count=project.releases|length %}Releases ({{ release_count
{%- endif -%}
{% endfor %})
{% else %}
No files
{% trans %}No files{% endtrans %}
{% endif %}
</td>
<td class="table__align-right">
Expand Down
2 changes: 1 addition & 1 deletion warehouse/templates/manage/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2>{% trans %}Collaborators{% endtrans %}</h2>
</option>
{% endfor %}
</select>
<button type="submit" class="button button--primary table__change-button" title="{% trans %}Save this new role{% endtrans %}">
<button type="submit" class="button button--primary table__change-button" title="{% trans %}Save role{% endtrans %}">
{% trans %}Save{% endtrans %}
</button>
</form>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/templates/packaging/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h3 class="sidebar-section__title">{% trans %}Navigation{% endtrans %}</h3>
</div>
<div class="vertical-tabs__panel">
<!-- mobile menu -->
<nav aria-label="Navigation for {{ release.project.name }}">
<nav aria-label="{% trans project=release.project.name %}Navigation for {{ project }}{% endtrans %}">
<ul class="vertical-tabs__list" role="tablist">
<li role="tab">
<a id="mobile-description-tab" data-target="project-tabs.mobileTab" data-action="project-tabs#onTabClick" class="vertical-tabs__tab vertical-tabs__tab--with-icon vertical-tabs__tab--mobile vertical-tabs__tab--no-top-border vertical-tabs__tab--is-active" href="#description">
Expand Down
18 changes: 9 additions & 9 deletions warehouse/templates/pages/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="callout-block">
<p>
<strong>{% trans %}Note:{% endtrans %}</strong>
{% trans trimmed href='https://www.pypa.io/en/latest/code-of-conduct/' title={% trans %}External link') %}
{% trans trimmed href='https://www.pypa.io/en/latest/code-of-conduct/' title=gettext('External link') %}
All users submitting feedback, reporting issues or contributing to Warehouse are expected to follow the <a href="{{ href }}" title="{{ title }}" target="_blank" rel="noopener">PyPA Code of Conduct</a>.
{% endtrans %}
</p>
Expand All @@ -28,7 +28,7 @@
<div class="callout-block">
<p>
<strong>{% trans %}Note:{% endtrans %}</strong>
{% trans trimmed method=method policy_href='https://github.com/pypa/warehouse/issues/5758' recovery_codes_href='https://github.com/pypa/warehouse/issues/5800' title={% trans %}External link') %}
{% trans trimmed method=method policy_href='https://github.com/pypa/warehouse/issues/5758' recovery_codes_href='https://github.com/pypa/warehouse/issues/5800' title=gettext('External link') %}
If you lose your {{ method }} and can no longer log in, the PyPI team <strong>cannot</strong> currently help you recover your account.
We plan to develop a <a href="{{ policy_href }}" title="{{ title }}" target="_blank" rel="noopener">manual account recovery policy</a>
and implement <a href="{{ recovery_codes_href }}" title="{{ title }}" target="_blank" rel="noopener">account recovery codes</a>
Expand Down Expand Up @@ -202,7 +202,7 @@ <h3 id="trove-classifier">{{ trove_classifier() }}</h3>
<p>
{% trans trimmed href=request.route_path('classifiers') %}
Classifiers are used to categorize projects on PyPI.
See <a href="{{ href }}">{{ href }}</a>
See <a href="{{ href }}">the classifiers page</a>
for more information, as well as a list of valid classifiers.
{% endtrans %}
</p>
Expand Down Expand Up @@ -532,7 +532,7 @@ <h3 id="tls-deprecation">{{ tls_deprecation() }}</h3>
Transport Layer Security, or TLS, is part of how we make sure connections between your computer and PyPI are private and secure.
It's a cryptographic protocol that's had several versions over time.
PyPI <a href="{{ announcement_href }}" title="{{ title }}" target="_blank" rel="noopener">turned off support for TLS versions 1.0 and 1.1</a>
in April 2018 (<a href="{{ reason_href }}" title="{{ title }}" target="_blank" rel="noopener">reason</a>).
in April 2018. <a href="{{ reason_href }}" title="{{ title }}" target="_blank" rel="noopener">Learn why on the PSF blog</a>.
{% endtrans %}
</p>
<p>{% trans command='pip install' %}If you are having trouble with <code>{{ command }}</code> and get a <code>No matching distribution found</code> or <code>Could not fetch URL</code> error, try adding <code>-v</code> to the command to get more information:{% endtrans %}</p>
Expand Down Expand Up @@ -649,7 +649,7 @@ <h3 id="maintainers">{{ maintainers() }}</h3>
<h3 id="sponsors">{{ sponsors() }}</h3>
<p>
{% trans trimmed warehouse_href='https://warehouse.readthedocs.io/' sponsors_href=request.route_path('sponsors') title=gettext('External link') %}
PyPI is powered by <a href="{{ warehouse_href }}" title="External link" target="_blank" rel="noopener">Warehouse</a>
PyPI is powered by <a href="{{ warehouse_href }}" title="{{ title }}" target="_blank" rel="noopener">Warehouse</a>
and by a variety of tools and services provided by our <a href="{{ sponsors_href }}">generous sponsors</a>.
{% endtrans %}
</p>
Expand Down Expand Up @@ -740,10 +740,10 @@ <h3 id="pronunciation">{{ pronunciation() }}</h3>
<h3>{% trans %}Resources{% endtrans %}</h3>
<p>{% trans %}Looking for something else? Perhaps these links will help:{% endtrans %}</p>
<ul>
<li><a href="https://packaging.python.org" title="External link" target="_blank" rel="noopener">{% trans %}Python Packaging User Guide{% endtrans %}</a></li>
<li><a href="https://docs.python.org" title="External link" target="_blank" rel="noopener">{% trans %}Python Documentation{% endtrans %}</a></li>
<li><a href="https://python.org/" title="External link" target="_blank" rel="noopener">Python.org</a> {% trans %}(main Python website){% endtrans %}</li>
<li><a href="https://python.org/community/" title="External link" target="_blank" rel="noopener">{% trans %}Python community page{% endtrans %}</a> {% trans %}(lists IRC channels, mailing lists, etc.){% endtrans %}</li>
<li><a href="https://packaging.python.org" title="{% trans %}External link{% endtrans %}k" target="_blank" rel="noopener">{% trans %}Python Packaging User Guide{% endtrans %}</a></li>
<li><a href="https://docs.python.org" title="{% trans %}External link{% endtrans %}" target="_blank" rel="noopener">{% trans %}Python documentation{% endtrans %}</a></li>
<li><a href="https://python.org/" title="{% trans %}External link{% endtrans %}" target="_blank" rel="noopener">Python.org</a> {% trans %}(main Python website){% endtrans %}</li>
<li><a href="https://python.org/community/" title="{% trans %}External link{% endtrans %}" target="_blank" rel="noopener">{% trans %}Python community page{% endtrans %}</a> {% trans %}(lists IRC channels, mailing lists, etc.){% endtrans %}</li>
</ul>

<h3>{% trans %}Contact{% endtrans %}</h3>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/templates/pages/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2>{% trans %}Top storage users{% endtrans %}</h2>
{% endtrans %}
</p>

<table class="table table--light">
<table class="table">
<caption class="sr-only">{% trans %}Statistics by project{% endtrans %}</caption>
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/templates/search/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h3 class="package-snippet__title">
<div class="left-layout__sidebar">
<div class="dark-overlay -js-dark-overlay"></div>
<div class="filter-panel -js-filter-panel">
<button type="button" class="filter-panel__close -js-close-panel" aria-label="Close panel">
<button type="button" class="filter-panel__close -js-close-panel" aria-label="{% trans %}Close panel{% endtrans %}">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
<h2 class="no-top-padding">
Expand Down

0 comments on commit 453e589

Please sign in to comment.