don't translate error messages twice

As @stof pointed out in #12164, error messages are already translated
when they are passed to the template.