issue #20734: Move error translations to where the error codes are defined.