From 71e9c85dcab30715a84b34a7811e00fae2c6e563 Mon Sep 17 00:00:00 2001 From: Jeremy Bowman Date: Mon, 7 Oct 2019 11:19:49 -0400 Subject: [PATCH] Fix capa problem i18n BOM-775 (#21832) --- common/lib/capa/capa/capa_problem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/capa/capa/capa_problem.py b/common/lib/capa/capa/capa_problem.py index 7ab2b180a2..bc650c426f 100644 --- a/common/lib/capa/capa/capa_problem.py +++ b/common/lib/capa/capa/capa_problem.py @@ -457,7 +457,7 @@ class LoncapaProblem(object): # an earlier submission, so for now skip these entirely. # TODO: figure out where to get file submissions when rescoring. if 'filesubmission' in responder.allowed_inputfields and student_answers is None: - _ = self.capa_system.i18n.ugettext + _ = get_gettext(self.capa_system.i18n) raise Exception(_(u"Cannot rescore problems with possible file submissions")) # use 'student_answers' only if it is provided, and if it might contain a file @@ -543,7 +543,7 @@ class LoncapaProblem(object): Returns: a string with the question text """ - _ = self.capa_system.i18n.ugettext + _ = get_gettext(self.capa_system.i18n) # Some questions define a prompt with this format: >>This is a prompt<< prompt = self.problem_data[answer_id].get('label')