-
Notifications
You must be signed in to change notification settings - Fork 440
Fix #1908: Correct message for claiming ads earning view. #1909
Conversation
} else { | ||
textLabel.text = Strings.SettingsAdsGrantText | ||
textLabel.text = Strings.NotificationEarningsClaimDefault |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallbacks to Your rewards from Ads are here!
if no amount is provided
if let amount = amount { | ||
textLabel.text = String(format: Strings.SettingsAdsGrantText, "\(amount) \(Strings.BAT) ") | ||
textLabel.text = "\(amount) \(Strings.BAT) " + Strings.SettingsAdsGrantText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string is not formatted, there is a chance that it may not sound correctly for all languages, we could always fall back to using the NotificationEarningsClaimDefault
for all cases
if let amount = amount { | ||
textLabel.text = String(format: Strings.SettingsAdsGrantText, "\(amount) \(Strings.BAT) ") | ||
textLabel.text = "\(amount) \(Strings.BAT) " + Strings.SettingsAdsGrantText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just add this to the string formatter like so:
"\(amount) \(Strings.BAT) \(Strings.SettingsAdsGrantText)"
Probably block on merging until 1.13 has officially been submitted? |
yep, don't merge if this isnt going into 1.13 |
Summary of Changes
Note: Sriram marked this ticket for 1.14, if we want to get it in along with other more important tickets to 1.13 the milestone needs to be updated.
This pull request fixes issue #1908
Submitter Checklist:
NSLocalizableString()
Test Plan:
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement