Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0dbcf062
Commit
0dbcf062
authored
Jun 16, 2014
by
polesye
Committed by
Gabe Mulley
Jun 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix i18n in ChoiceGroup and ChoiceTextGroup.
parent
72dbd05f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/lib/capa/capa/inputtypes.py
+3
-3
No files found.
common/lib/capa/capa/inputtypes.py
View file @
0dbcf062
...
...
@@ -230,8 +230,8 @@ class InputTypeBase(object):
self
.
setup
()
except
Exception
as
err
:
# Something went wrong: add xml to message, but keep the traceback
msg
=
"Error in xml '{x}': {err} "
.
format
(
x
=
etree
.
tostring
(
xml
),
err
=
str
(
err
)
)
msg
=
u
"Error in xml '{x}': {err} "
.
format
(
x
=
etree
.
tostring
(
xml
),
err
=
err
.
message
)
raise
Exception
,
msg
,
sys
.
exc_info
()[
2
]
@classmethod
...
...
@@ -1744,7 +1744,7 @@ class ChoiceTextGroup(InputTypeBase):
for
choice
in
element
:
if
choice
.
tag
!=
'choice'
:
msg
=
"[capa.inputtypes.extract_choices] {0}"
.
format
(
msg
=
u
"[capa.inputtypes.extract_choices] {0}"
.
format
(
# Translators: a "tag" is an XML element, such as "<b>" in HTML
_
(
"Expected a {expected_tag} tag; got {given_tag} instead"
)
.
format
(
expected_tag
=
u"<choice>"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment