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
61414c7c
Commit
61414c7c
authored
May 20, 2014
by
Anton Stupak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3715 from edx/anton/i18n-string-response
StringResponse i18n.
parents
d8f1ebef
934b8dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common/lib/capa/capa/responsetypes.py
+3
-2
No files found.
common/lib/capa/capa/responsetypes.py
View file @
61414c7c
...
...
@@ -1388,7 +1388,7 @@ class StringResponse(LoncapaResponse):
result
=
re
.
search
(
regexp
,
given
)
except
Exception
as
err
:
msg
=
u'[courseware.capa.responsetypes.stringresponse] {error}: {message}'
.
format
(
error
=
_
(
u
'error'
),
error
=
_
(
'error'
),
message
=
err
.
message
)
log
.
error
(
msg
,
exc_info
=
True
)
...
...
@@ -1415,7 +1415,8 @@ class StringResponse(LoncapaResponse):
def
get_answers
(
self
):
_
=
self
.
capa_system
.
i18n
.
ugettext
separator
=
u' <b>{}</b> '
.
format
(
_
(
u'or'
))
# Translators: Separator used in StringResponse to display multiple answers. Example: "Answer: Answer_1 or Answer_2 or Answer_3".
separator
=
u' <b>{}</b> '
.
format
(
_
(
'or'
))
return
{
self
.
answer_id
:
separator
.
join
(
self
.
correct_answer
)}
#-----------------------------------------------------------------------------
...
...
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