Commit 741881b3 by Waheed Ahmed

Internationalization fixed for error msg on staff grading page.

LMS-2195
parent 137faf44
...@@ -287,9 +287,11 @@ def get_problem_list(request, course_id): ...@@ -287,9 +287,11 @@ def get_problem_list(request, course_id):
else: else:
problem_list = [] problem_list = []
# Make an error messages to reflect that we could not find anything to grade. # Make an error messages to reflect that we could not find anything to grade.
response['error'] = ("Cannot find any open response problems in this course. " response['error'] = _(
"Have you submitted answers to any open response assessment questions? " u'Cannot find any open response problems in this course. '
"If not, please do so and return to this page.") u'Have you submitted answers to any open response assessment questions? '
u'If not, please do so and return to this page.'
)
valid_problem_list = [] valid_problem_list = []
for i in xrange(0,len(problem_list)): for i in xrange(0,len(problem_list)):
# Needed to ensure that the 'location' key can be accessed. # Needed to ensure that the 'location' key can be accessed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment