i18n: problem submit buttons.
This commit is contained in:
@@ -21,6 +21,7 @@ from xmodule.exceptions import NotFoundError, ProcessingError
|
||||
from xblock.fields import Scope, String, Boolean, Dict, Integer, Float
|
||||
from .fields import Timedelta, Date
|
||||
from django.utils.timezone import UTC
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
log = logging.getLogger("mitx.courseware")
|
||||
|
||||
@@ -348,7 +349,7 @@ class CapaModule(CapaFields, XModule):
|
||||
else:
|
||||
final_check = False
|
||||
|
||||
return "Final Check" if final_check else "Check"
|
||||
return _("Final Check") if final_check else _("Check")
|
||||
|
||||
def should_show_check_button(self):
|
||||
"""
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</section>
|
||||
|
||||
<section class="problem">
|
||||
<p>Problem Content</p>
|
||||
<p>${_("Problem Content")}</p>
|
||||
|
||||
<section class="action">
|
||||
<input type="hidden" name="problem_id" value="1">
|
||||
@@ -13,11 +13,11 @@
|
||||
<span id="display_example_1"></span>
|
||||
<span id="input_example_1_dynamath"></span>
|
||||
|
||||
<input class="check" type="button" value="Check">
|
||||
<input class="reset" type="button" value="Reset">
|
||||
<input class="save" type="button" value="Save">
|
||||
<button class="show"><span class="show-label">Show Answer(s)</span> <span class="sr">(for question(s) above - adjacent to each field)</span></button>
|
||||
<a href="/courseware/6.002_Spring_2012/${ explain }" class="new-page">Explanation</a>
|
||||
<input class="check" type="button" value="${_('Check')}">
|
||||
<input class="reset" type="button" value="${_('Reset')}">
|
||||
<input class="save" type="button" value=$"${_('Save')}">
|
||||
<button class="show"><span class="show-label">${_("Show Answer(s)")}</span> <span class="sr">(for question(s) above - adjacent to each field)</span></button>
|
||||
<a href="/courseware/6.002_Spring_2012/${ explain }" class="new-page">${_("Explanation")}</a>
|
||||
<section class="submission_feedback"></section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user