Missing translation function call
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user