Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
cde166a0
Commit
cde166a0
authored
9 years ago
by
Sarina Canelake
Browse files
Options
Downloads
Patches
Plain Diff
Revert "i18n lon-capa problem explanation title"
This reverts commit
3e0342cb
.
parent
a3b4a251
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
+3
-6
3 additions, 6 deletions
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
with
3 additions
and
6 deletions
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
+
3
−
6
View file @
cde166a0
...
...
@@ -201,8 +201,6 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
#
@
markdownToXml
:
(
markdown
)
->
toXml
=
`
function
(
markdown
)
{
//
Translators
:
This
is
the
title
of
the
text
explaining
a
problem
var
explanation_title
=
gettext
(
"Explanation"
);
var
xml
=
markdown
,
i
,
splits
,
scriptFlag
;
...
...
@@ -350,15 +348,14 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
});
//
replace
explanations
xml
=
xml
.
replace
(
/\[explanation\]\n?([^\]]*)\[\/?explanation\]/gmi
,
function
(
match
,
p1
)
{
var
selectString
=
'<solution>
\n
<div class="detailed-solution">
\n
'
+
e
xplanation
_title
+
'
\n\n
'
+
p1
+
'
\n
</div>
\n
</solution>'
;
var
selectString
=
'<solution>
\n
<div class="detailed-solution">
\n
E
xplanation
\n\n
'
+
p1
+
'
\n
</div>
\n
</solution>'
;
return
selectString
;
});
//
replace
labels
//
looks
for
>>
arbitrary
text
<<
and
inserts
it
into
the
label
attribute
of
the
input
type
directly
below
the
text
.
//
looks
for
>>
arbitrary
text
<<
and
inserts
it
into
the
label
attribute
of
the
input
type
directly
below
the
text
.
var
split
=
xml
.
split
(
'
\n
'
);
var
new_xml
=
[];
var
line
,
i
,
curlabel
,
prevlabel
=
''
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment