From 19ca6c845c622374738a84ba959abc99c79765cd Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Thu, 14 Aug 2014 14:58:26 -0400 Subject: [PATCH] Minor i18n fixes prompted by translators --- common/lib/capa/capa/responsetypes.py | 4 ++++ common/lib/xmodule/xmodule/capa_base.py | 1 + .../open_ended_problems/open_ended_flagged_problems.html | 2 +- lms/templates/peer_grading/peer_grading.html | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index 28b4383011..8fe5f4d4c8 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -1218,8 +1218,12 @@ class NumericalResponse(LoncapaResponse): for inclusion, answer in zip(self.inclusion, self.answer_range): boundary = self.get_staff_ans(answer) if boundary.imag != 0: + # Translators: This is an error message for a math problem. If the instructor provided a boundary + # (end limit) for a variable that is a complex number (a + bi), this message displays. raise StudentInputError(_("There was a problem with the staff answer to this problem: complex boundary.")) if isnan(boundary): + # Translators: This is an error message for a math problem. If the instructor did not provide + # a boundary (end limit) for a variable, this message displays. raise StudentInputError(_("There was a problem with the staff answer to this problem: empty boundary.")) boundaries.append(boundary.real) if compare_with_tolerance( diff --git a/common/lib/xmodule/xmodule/capa_base.py b/common/lib/xmodule/xmodule/capa_base.py index 4e69413133..e68b243449 100644 --- a/common/lib/xmodule/xmodule/capa_base.py +++ b/common/lib/xmodule/xmodule/capa_base.py @@ -1384,6 +1384,7 @@ class CapaMixin(CapaFields): self.track_function_unmask('reset_problem_fail', event_info) return { 'success': False, + # Translators: A student must "make an attempt" to solve the problem on the page before they can reset it. 'error': _("Refresh the page and make an attempt before resetting."), } diff --git a/lms/templates/open_ended_problems/open_ended_flagged_problems.html b/lms/templates/open_ended_problems/open_ended_flagged_problems.html index 61053c663b..93c35ba307 100644 --- a/lms/templates/open_ended_problems/open_ended_flagged_problems.html +++ b/lms/templates/open_ended_problems/open_ended_flagged_problems.html @@ -22,7 +22,7 @@

${_("Flagged Open Ended Problems")}

${_("Instructions")}

-

${_("Here are a list of open ended problems for this course that have been flagged by students as potentially inappropriate.")}

+

${_("Here is a list of open ended problems for this course that have been flagged by students as potentially inappropriate.")}

% if success: % if len(problem_list) == 0:
diff --git a/lms/templates/peer_grading/peer_grading.html b/lms/templates/peer_grading/peer_grading.html index 4315a8a5d1..172360c9e2 100644 --- a/lms/templates/peer_grading/peer_grading.html +++ b/lms/templates/peer_grading/peer_grading.html @@ -18,7 +18,7 @@ criteria.{end_li_tag}

${_("Peer Grading")}

${_("Instructions")}

-

${_("Here are a list of problems that need to be peer graded for this course.")}

+

${_("Here is a list of problems that need to be peer graded for this course.")}

% if success: % if len(problem_list) == 0: