Streamlined localization
Refactored translation of error messages
Add better error messages.