Skip to content

Commit

Permalink
Translate new project settings content
Browse files Browse the repository at this point in the history
  • Loading branch information
nlhkabu committed Sep 14, 2019
1 parent c4cd3c0 commit 4aefa0d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions warehouse/templates/manage/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@
{% block main %}
<h2>{% trans %}Project settings{% endtrans %}</h2>

<h3>API tokens</h3>
<p>API tokens provide an alternative way to authenticate when uploading packages to PyPI.</p>
<h3>{% trans %}API tokens{% endtrans %}</h3>
<p>{% trans %}API tokens provide an alternative way to authenticate when uploading packages to PyPI.{% endtrans %}</p>
{% if user.has_primary_verified_email %}
<p class="no-bottom-padding">
<a href="{{ request.route_path('manage.account.token') }}" class="button button--primary">Create a token for {{ project.name }}</a>
<a href="{{ request.route_path('manage.account.token') }}" class="button button--primary">
{% trans project_name=project.name %}Create a token for {{ project_name }}{% endtrans %}
</a>
</p>
{% else %}
<p class="no-bottom-padding">
<a href="{{ request.route_path('manage.account') }}#account-emails">Verify your primary email address</a> to add an API token for {{ project.name }}.
{% trans trimmed href='{url}#account-emails'.format(url=request.route_path('manage.account')), project_name=project.name %}
<a href="{{ href }}">Verify your primary email address</a> to add an API token for {{ project_name }}.
{% endtrans %}
</p>
{% endif %}
<hr>
Expand Down

0 comments on commit 4aefa0d

Please sign in to comment.