|
@@ -506,12 +506,16 @@ static NSString *const KMPurchaseCompareDMGCellIdentifier = @"KMPurchaseCo
|
|
|
NSString *originalText = @"";
|
|
|
NSString *discountText = @"";
|
|
|
#if VERSION_DMG
|
|
|
+ NSString *abbreviation = @"$";
|
|
|
+ if ([@"CNY" isEqualToString:NSLocalizedString(@"USD", nil)]) {
|
|
|
+ abbreviation = @"¥";
|
|
|
+ }
|
|
|
if ([self.buySwitch state]) {
|
|
|
- originalText = [NSString stringWithFormat:@"$%@", [[KMDMGProductsManager shareInstance] getPrice:@"com.brother.pdfreaderpro.mac.product_3"]];
|
|
|
- discountText = [NSString stringWithFormat:@"$%@", [[KMDMGProductsManager shareInstance] getActivityPrice:@"com.brother.pdfreaderpro.mac.product_3"]];
|
|
|
+ originalText = [NSString stringWithFormat:@"%@%@", abbreviation, [[KMDMGProductsManager shareInstance] getPrice:@"com.brother.pdfreaderpro.mac.product_3"]];
|
|
|
+ discountText = [NSString stringWithFormat:@"%@%@", abbreviation, [[KMDMGProductsManager shareInstance] getActivityPrice:@"com.brother.pdfreaderpro.mac.product_3"]];
|
|
|
} else {
|
|
|
- originalText = [NSString stringWithFormat:@"$%@", [[KMDMGProductsManager shareInstance] getPrice:@"com.brother.pdfreaderpro.mac.product_1"]];
|
|
|
- discountText = [NSString stringWithFormat:@"$%@", [[KMDMGProductsManager shareInstance] getActivityPrice:@"com.brother.pdfreaderpro.mac.product_1"]];
|
|
|
+ originalText = [NSString stringWithFormat:@"%@%@", abbreviation, [[KMDMGProductsManager shareInstance] getPrice:@"com.brother.pdfreaderpro.mac.product_1"]];
|
|
|
+ discountText = [NSString stringWithFormat:@"%@%@", abbreviation, [[KMDMGProductsManager shareInstance] getActivityPrice:@"com.brother.pdfreaderpro.mac.product_1"]];
|
|
|
}
|
|
|
#endif
|
|
|
NSMutableAttributedString *attributedText = [[NSMutableAttributedString alloc] initWithString:originalText];
|