mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Premium product name handling.
This commit is contained in:
parent
256320f344
commit
531bc5fc88
1 changed files with 5 additions and 1 deletions
|
@ -344,7 +344,11 @@
|
|||
[formatter setNumberStyle:NSNumberFormatterCurrencyStyle];
|
||||
[formatter setLocale:product.priceLocale];
|
||||
|
||||
cell.textLabel.text = [NSString stringWithFormat:@"%@", product.localizedTitle];
|
||||
if (!product.localizedTitle) {
|
||||
cell.textLabel.text = [NSString stringWithFormat:@"NewsBlur Premium Subscription"];
|
||||
} else {
|
||||
cell.textLabel.text = [NSString stringWithFormat:@"%@", product.localizedTitle];
|
||||
}
|
||||
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ per year (%@/month)", [formatter stringFromNumber:product.price], [formatter stringFromNumber:@(round([product.price doubleValue] / 12.f))]];;
|
||||
|
||||
UILabel *label = [[UILabel alloc] init];
|
||||
|
|
Loading…
Add table
Reference in a new issue