Make hardcoded exception messages translatable

@karlitschek @DeepDiver1975