Commit 8d096b6e by Jillian Vogel

PR review: ensure all template text is translated.

parent 432c1b9a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="data-export-field"> <div class="data-export-field">
<label> <label>
<span>{% trans "Username[s]:" %}</span> <span>{% trans "Username[s]:" %}</span>
<input type="text" name="usernames" title="Enter one or more usernames, comma separated." /> <input type="text" name="usernames" title="{% trans "Enter one or more usernames, comma separated." %}" />
</label> </label>
</div> </div>
</div> </div>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<label> <label>
<span>{% trans "Problem types:" %}</span> <span>{% trans "Problem types:" %}</span>
<select name="block_types"> <select name="block_types">
<option value="all">All</option> <option value="all">{% trans "All" %}</option>
{% for label, value in block_choices.items %} {% for label, value in block_choices.items %}
<option value="{{value}}">{{label}}</option> <option value="{{value}}">{{label}}</option>
{% endfor %} {% endfor %}
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
</div> </div>
<div class="data-export-actions"> <div class="data-export-actions">
<button class="data-export-start">Search</button> <button class="data-export-start">{% trans "Search" %}</button>
</div> </div>
</div> </div>
</div> </div>
...@@ -77,11 +77,11 @@ ...@@ -77,11 +77,11 @@
</table> </table>
<div class="data-export-info"></div> <div class="data-export-info"></div>
<div class="data-export-result-actions"> <div class="data-export-result-actions">
<button id="first-page">First</button> <button id="first-page">{% trans "First" %}</button>
<button id="prev-page">Prev</button> <button id="prev-page">{% trans "Prev" %}</button>
<span id="current-page"></span>/<span id="total-pages"></span> <span id="current-page"></span>/<span id="total-pages"></span>
<button id="next-page">Next</button> <button id="next-page">{% trans "Next" %}</button>
<button id="last-page">Last</button> <button id="last-page">{% trans "Last" %}</button>
</div> </div>
</div> </div>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</select> </select>
{% endif %} {% endif %}
<button class="mentoring-share-button"> <button class="mentoring-share-button">
<i class="fa fa-share-alt"></i> Share <i class="fa fa-share-alt"></i>{% trans "Share" %}
</button> </button>
<div class="mentoring-share-with" style="display: none;"> <div class="mentoring-share-with" style="display: none;">
<div class="shared-with-container"></div> <div class="shared-with-container"></div>
...@@ -24,21 +24,15 @@ ...@@ -24,21 +24,15 @@
<div class="share-errors"></div> <div class="share-errors"></div>
</div> </div>
<div class="share-action-buttons"> <div class="share-action-buttons">
<button class="do-share-button">Share</button> <button class="do-share-button">{% trans "Share" %}</button>
</div> </div>
</div> </div>
{% if share_notifications %} {% if share_notifications %}
<div class="share-notification" data-shared="{{share_notifications}}"> <div class="share-notification" data-shared="{{share_notifications}}">
<a class="notification-close"><i class="fa fa-close"></i></a> <a class="notification-close"><i class="fa fa-close"></i></a>
<p><strong>{% trans "Map added!" %}</strong></p> <p><strong>{% trans "Map added!" %}</strong></p>
<p> <p>{% trans "Another user has shared a map with you." %}</p>
{% blocktrans %} <p>{% trans "You can change the user you're currently displaying using the drop-down selector above." %}</p>
Another user has shared a map with you.
</p>
<p>
You can change the user you're currently displaying using the drop-down selector above.
{% endblocktrans %}
</p>
</div> </div>
{% endif %} {% endif %}
</div> </div>
......
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
<span class="assessment-checkmark fa icon-2x"></span> <span class="assessment-checkmark fa icon-2x"></span>
{% endif %} {% endif %}
<input type="button" class="input-main" value="Submit" disabled="disabled" /> <input type="button" class="input-main" value="{% trans "Submit" %}" disabled="disabled" />
{% if self.mode == 'assessment' %} {% if self.mode == 'assessment' %}
<input type="button" class="input-next" value="Next Question" disabled="disabled" /> <input type="button" class="input-next" value="{% trans "Next Question" %}" disabled="disabled" />
<input type="button" class="input-review" value="Review grade" disabled="disabled" /> <input type="button" class="input-review" value="{% trans "Review grade" %}" disabled="disabled" />
<input type="button" class="input-try-again" value="Try again" disabled="disabled" /> <input type="button" class="input-try-again" value="{% trans "Try again" %}" disabled="disabled" />
{% endif %} {% endif %}
<div class="attempts" data-max_attempts="{{ self.max_attempts }}" data-num_attempts="{{ self.num_attempts }}"></div> <div class="attempts" data-max_attempts="{{ self.max_attempts }}" data-num_attempts="{{ self.num_attempts }}"></div>
...@@ -55,10 +55,10 @@ ...@@ -55,10 +55,10 @@
<div class="messages"></div> <div class="messages"></div>
<div class="assessment-review-tips"></div> <div class="assessment-review-tips"></div>
</div> </div>
<div class="review-link"><a href="#">Review final grade</a></div> <div class="review-link"><a href="#">{% trans "Review final grade" %}</a></div>
<p class="copyright"> <p class="copyright">
Copyright &copy; 2013&ndash;2015 OpenCraft, Harvard, edX, McKinsey, and The People's Science, released under the Copyright &copy; 2013&ndash;2015 OpenCraft, Harvard, edX, McKinsey, and The People's Science, released under the
<a target="_blank" href="https://github.com/open-craft/problem-builder/blob/master/LICENSE">APGLv3 license</a> <a target="_blank" href="https://github.com/open-craft/problem-builder/blob/master/LICENSE">{% trans "APGLv3 license" %}</a>
</p> </p>
</div> </div>
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<span class="step-overall-checkmark fa icon-2x fa-fw" aria-label="" <span class="step-overall-checkmark fa icon-2x fa-fw" aria-label=""
data-label_correct="{% trans "Correct" %}" data-label_incorrect="{% trans "Incorrect" %}" data-label_correct="{% trans "Correct" %}" data-label_incorrect="{% trans "Incorrect" %}"
data-label_partial="{% trans "Partially correct" %}"></span> data-label_partial="{% trans "Partially correct" %}"></span>
<input type="button" class="input-main" value="Submit" disabled="disabled" /> <input type="button" class="input-main" value="{% trans "Submit" %}" disabled="disabled" />
<input type="button" class="input-next" value="Next Step" disabled="disabled" /> <input type="button" class="input-next" value="{% trans "Next Step" %}" disabled="disabled" />
<input type="button" class="input-review" value="Review grade" disabled="disabled" /> <input type="button" class="input-review" value="{% trans "Review grade" %}" disabled="disabled" />
<input type="button" class="input-try-again" value="Try again" disabled="disabled" /> <input type="button" class="input-try-again" value="{% trans "Try again" %}" disabled="disabled" />
<div class="attempts" <div class="attempts"
data-max_attempts="{{ self.max_attempts }}" data-num_attempts="{{ self.num_attempts }}"> data-max_attempts="{{ self.max_attempts }}" data-num_attempts="{{ self.num_attempts }}">
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
</div> </div>
</div> </div>
<div class="review-link"><a href="#">Review final grade</a></div> <div class="review-link"><a href="#">{% trans "Review final grade" %}</a></div>
<p class="copyright"> <p class="copyright">
Copyright &copy; 2013&ndash;2015 OpenCraft, Harvard, edX, McKinsey, and The People's Science, released under the Copyright &copy; 2013&ndash;2015 OpenCraft, Harvard, edX, McKinsey, and The People's Science, released under the
<a target="_blank" href="https://github.com/open-craft/problem-builder/blob/master/LICENSE">APGLv3 license</a> <a target="_blank" href="https://github.com/open-craft/problem-builder/blob/master/LICENSE">{% trans "APGLv3 license" %}</a>
</p> </p>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment