Localization support

Add the ability to display error messages in locales other than en-us.