From 7142d55b1a4c122bc5e2fd668d7f44028ffaa3b5 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Tue, 22 Oct 2019 18:50:28 +0300 Subject: [PATCH] Missing translation function call --- common/lib/xmodule/xmodule/capa_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/xmodule/xmodule/capa_base.py b/common/lib/xmodule/xmodule/capa_base.py index 9de45d785b..4a44eb6062 100644 --- a/common/lib/xmodule/xmodule/capa_base.py +++ b/common/lib/xmodule/xmodule/capa_base.py @@ -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(