From d067429c40dffb17c11d94dfe98644c38322e870 Mon Sep 17 00:00:00 2001 From: Matjaz Gregoric Date: Wed, 10 Feb 2016 10:49:33 +0100 Subject: [PATCH] Make 'Explanation' CAPA header translatable. CAPA nodes get transformed into a HTML
block that contains the word 'Explanation'. This patch makes it translatable. --- common/lib/xmodule/xmodule/js/src/problem/edit.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/js/src/problem/edit.coffee b/common/lib/xmodule/xmodule/js/src/problem/edit.coffee index 2e791633a4..5c2638974b 100644 --- a/common/lib/xmodule/xmodule/js/src/problem/edit.coffee +++ b/common/lib/xmodule/xmodule/js/src/problem/edit.coffee @@ -505,7 +505,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor // replace explanations xml = xml.replace(/\[explanation\]\n?([^\]]*)\[\/?explanation\]/gmi, function(match, p1) { - var selectString = '\n
\nExplanation\n\n' + p1 + '\n
\n
'; + var selectString = '\n
\n' + gettext('Explanation') + '\n\n' + p1 + '\n
\n
'; return selectString; });