Missing translation function call

This commit is contained in:
Shadi Naif
2019-10-22 18:50:28 +03:00
parent 262574b815
commit 7142d55b1a

View File

@@ -725,6 +725,7 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
html = self.handle_problem_html_error(err)
html = self.remove_tags_from_html(html)
_ = self.runtime.service(self, "i18n").ugettext
# Enable/Disable Submit button if should_enable_submit_button returns True/False.
submit_button = self.submit_button_name()
@@ -821,6 +822,7 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
# Build the notification message based on the notification type and translate it.
ungettext = self.runtime.service(self, "i18n").ungettext
_ = self.runtime.service(self, "i18n").ugettext
if answer_notification_type == 'incorrect':
if progress is not None:
answer_notification_message = ungettext(