Adding localization support for errors