Fix #1291 "Error Summary doesn't update when FR language changes"
Small refactoring