Skip to content

Commit

Permalink
Merge pull request #3869 from italia/moretranslatable
Browse files Browse the repository at this point in the history
templates: mark a few more strings for translations
  • Loading branch information
humitos committed Apr 17, 2018
2 parents fe2dfe5 + 216578c commit 0f95cf4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</p>
{% endif %}

<h3>Recent Activity</h3>
<h3>{% trans "Recent Activity" %}</h3>

<div class="module-list-wrapper httpexchanges">
<ul>
Expand Down
4 changes: 2 additions & 2 deletions readthedocs/templates/projects/onboard_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2>{% trans "Your documentation is ready to use" %}</h2>
{% endblocktrans %}
</p>

<input type="submit" value="View your documentation" />
<input type="submit" value="{% trans "View your documentation" %}"/>
</form>
{% else %}
{% comment %}Last build failed{% endcomment %}
Expand All @@ -55,7 +55,7 @@ <h2>{% trans "Your documentation failed to build" %}</h2>
{% endblocktrans %}
</p>

<input type="submit" value="View build output" />
<input type="submit" value="{% trans "View build output" %}"/>
</form>
{% endif %}
{% else %}
Expand Down
9 changes: 6 additions & 3 deletions readthedocs/templates/projects/onboard_import.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- BEGIN onboard import project -->
<div class="onboard onboard-import-project">
<h2>Ready to share your documentation{% if request.user.first_name %}, {{ request.user.first_name }}{% endif %}?</h2>
<h2>{% trans "Ready to share your documentation" %}{% if request.user.first_name %}, {{ request.user.first_name }}{% endif %}?</h2>

{% with getting_started_url="http://docs.readthedocs.io/en/latest/getting_started.html" %}
<form method="get" action="{% url "projects_import" %}">
Expand All @@ -15,10 +15,13 @@ <h2>Ready to share your documentation{% if request.user.first_name %}, {{ reques
</p>

<p>
Want to try a demo? <a href="{% url "projects_import_demo" %}">Import our own demo project</a>.
{% url "projects_import_demo" as import_demo_url %}
{% blocktrans %}
Want to try a demo? <a href="{{ import_demo_url }}">Import our own demo project</a>.
{% endblocktrans %}
</p>

<input type="submit" value="Import a Project" />
<input type="submit" value="{% trans "Import a Project" %}"/>
</form>
{% endwith %}
</div>
Expand Down
14 changes: 8 additions & 6 deletions readthedocs/templates/projects/project_dashboard_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h3>{% trans "Important Versions" %}</h3>
<div class="module-header">
{% block project_import_button %}
<form method="get" action="{{ projects_import_url }}">
<input type="submit" value="Import a Project" />
<input type="submit" value="{% trans "Import a Project" %}" />
</form>
{% endblock %}
<h3>{% trans "Projects" %}</h3>
Expand Down Expand Up @@ -131,7 +131,7 @@ <h3>{% trans "Projects" %}</h3>
{% get_social_accounts request.user as accounts %}
{% if not accounts.github.0 %}
<div class="module onboard onboard-accounts">
<h3>Connect your Accounts</h3>
<h3>{% trans "Connect your Accounts" %}</h3>

<p>
{% blocktrans %}
Expand All @@ -140,7 +140,7 @@ <h3>Connect your Accounts</h3>
</p>

<form method="get" action="{{ social_accounts }}">
<input type="submit" value="Connect your Accounts" />
<input type="submit" value="{% trans "Connect your Accounts" %}" />
</form>
</div>
{% endif %}
Expand All @@ -150,10 +150,12 @@ <h3>Connect your Accounts</h3>
{% endblock %}

<div class="module info info-docs">
<h3>Learn More</h3>
<h3>{% trans "Learn More" %}</h3>
<p>
Check out the <a href="http://docs.readthedocs.io/en/latest/index.html">documentation for Read the Docs</a>.
It contains lots of information about how to get the most out of RTD.
{% blocktrans with rtd_docs_url="http://docs.readthedocs.io/en/latest/index.html" %}
Check out the <a href="{{ rtd_docs_url }}">documentation for Read the Docs</a>.
It contains lots of information about how to get the most out of RTD.
{% endblocktrans %}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/templates/projects/project_users.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h3>{% trans "Remove Maintainer" %}</h3>
{% endif %}
{% endfor %}
</select>
<input type="submit" value="Remove">
<input type="submit" value="{% trans "Remove" %}">
</form>
</p>
{% endif %}
Expand Down

0 comments on commit 0f95cf4

Please sign in to comment.