Move error messages to locale file