Pass locale to PyLint translator and allow switchable output
This commit is contained in:
@ -33,7 +33,7 @@ module SubmissionScoring
|
||||
|
||||
if file.teacher_defined_linter?
|
||||
LinterCheckRun.create_from(testrun, assessment)
|
||||
assessment = assessor.translate_linter(assessment)
|
||||
assessment = assessor.translate_linter(assessment, session[:locale])
|
||||
|
||||
# replace file name with hint if linter is not used for grading. Refactor!
|
||||
filename = t('exercises.implement.not_graded', locale: :de) if file.weight.zero?
|
||||
|
Reference in New Issue
Block a user