Added localization support for error messages