Added translation function so we can get actual error messages.