Fix error message not being translated

Thanks to Alexandre Perrin (kAworu) for pointing it out.