Re-enable translation of linter messages

This commit is contained in:
Sebastian Serth
2021-06-28 22:11:00 +02:00
parent d08707f62e
commit 7010614a75
2 changed files with 6 additions and 4 deletions

View File

@ -33,7 +33,9 @@ module SubmissionScoring
if file.teacher_defined_linter?
LinterCheckRun.create_from(testrun, assessment)
assessment = assessor.translate_linter(assessment, session[:locale])
switch_locale do
assessment = assessor.translate_linter(assessment, I18n.locale)
end
# replace file name with hint if linter is not used for grading. Refactor!
filename = t('exercises.implement.not_graded') if file.weight.zero?