diff --git a/RMStore/Optional/RMStoreAppReceiptVerificator.m b/RMStore/Optional/RMStoreAppReceiptVerificator.m index 44077b26..bc40aeda 100644 --- a/RMStore/Optional/RMStoreAppReceiptVerificator.m +++ b/RMStore/Optional/RMStoreAppReceiptVerificator.m @@ -89,14 +89,14 @@ - (BOOL)verifyTransaction:(SKPaymentTransaction*)transaction const BOOL receiptVerified = [self verifyAppReceipt:receipt]; if (!receiptVerified) { - [self failWithBlock:failureBlock message:NSLocalizedString(@"The app receipt failed verification", @"")]; + [self failWithBlock:failureBlock message:NSLocalizedStringFromTable(@"The app receipt failed verification", @"RMStore", nil)]; return NO; } SKPayment *payment = transaction.payment; const BOOL transactionVerified = [receipt containsInAppPurchaseOfProductIdentifier:payment.productIdentifier]; if (!transactionVerified) { - [self failWithBlock:failureBlock message:NSLocalizedString(@"The app receipt does not contain the given product", @"")]; + [self failWithBlock:failureBlock message:NSLocalizedStringFromTable(@"The app receipt does not contain the given product", @"RMStore", nil)]; return NO; } if (successBlock) diff --git a/RMStore/Optional/RMStoreTransactionReceiptVerificator.m b/RMStore/Optional/RMStoreTransactionReceiptVerificator.m index ad9c4cf7..06adf6a2 100644 --- a/RMStore/Optional/RMStoreTransactionReceiptVerificator.m +++ b/RMStore/Optional/RMStoreTransactionReceiptVerificator.m @@ -145,7 +145,7 @@ - (void)verifyRequestData:(NSData*)requestData if (!data) { RMStoreLog(@"Server Connection Failed"); - NSError *wrapperError = [NSError errorWithDomain:RMStoreErrorDomain code:RMStoreErrorCodeUnableToCompleteVerification userInfo:@{NSUnderlyingErrorKey : error, NSLocalizedDescriptionKey : NSLocalizedString(@"Connection to Apple failed. Check the underlying error for more info.", @"Error description")}]; + NSError *wrapperError = [NSError errorWithDomain:RMStoreErrorDomain code:RMStoreErrorCodeUnableToCompleteVerification userInfo:@{NSUnderlyingErrorKey : error, NSLocalizedDescriptionKey : NSLocalizedStringFromTable(@"Connection to Apple failed. Check the underlying error for more info.", @"RMStore", @"Error description")}]; if (failureBlock != nil) { failureBlock(wrapperError); diff --git a/RMStore/RMStore.m b/RMStore/RMStore.m index 550c8916..af43b406 100755 --- a/RMStore/RMStore.m +++ b/RMStore/RMStore.m @@ -196,7 +196,7 @@ - (void)addPayment:(NSString*)productIdentifier RMStoreLog(@"unknown product id %@", productIdentifier) if (failureBlock != nil) { - NSError *error = [NSError errorWithDomain:RMStoreErrorDomain code:RMStoreErrorCodeUnknownProductIdentifier userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Unknown product identifier", "Error description")}]; + NSError *error = [NSError errorWithDomain:RMStoreErrorDomain code:RMStoreErrorCodeUnknownProductIdentifier userInfo:@{NSLocalizedDescriptionKey: NSLocalizedStringFromTable(@"Unknown product identifier", @"RMStore", @"Error description")}]; failureBlock(nil, error); } return; @@ -433,7 +433,7 @@ - (void)didCancelDownload:(SKDownload*)download queue:(SKPaymentQueue*)queue [self postNotificationWithName:RMSKDownloadCanceled download:download userInfoExtras:nil]; - NSError *error = [NSError errorWithDomain:RMStoreErrorDomain code:RMStoreErrorCodeDownloadCanceled userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Download canceled", "Error description")}]; + NSError *error = [NSError errorWithDomain:RMStoreErrorDomain code:RMStoreErrorCodeDownloadCanceled userInfo:@{NSLocalizedDescriptionKey: NSLocalizedStringFromTable(@"Download canceled", @"RMStore", @"Error description")}]; const BOOL hasPendingDownloads = [self.class hasPendingDownloadsInTransaction:transaction]; if (!hasPendingDownloads)