Updated error messages to use NSLocalizedString.