Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #1908: Correct message for claiming ads earning view. #1909

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

iccub
Copy link
Contributor

@iccub iccub commented Nov 6, 2019

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:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

Screenshots:

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue is assigned to a milestone (should happen at merge time).

} else {
textLabel.text = Strings.SettingsAdsGrantText
textLabel.text = Strings.NotificationEarningsClaimDefault
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Collaborator

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)"

@kylehickinson
Copy link
Collaborator

Probably block on merging until 1.13 has officially been submitted?

@iccub
Copy link
Contributor Author

iccub commented Nov 6, 2019

yep, don't merge if this isnt going into 1.13

@iccub iccub added the blocked If a ticket is blocked for some reason, if not using a sub-block label, please provide info in issue label Nov 6, 2019
@kylehickinson kylehickinson removed the blocked If a ticket is blocked for some reason, if not using a sub-block label, please provide info in issue label Nov 7, 2019
@kylehickinson kylehickinson merged commit 17eb252 into development Nov 7, 2019
@kylehickinson kylehickinson deleted the bugfix/1908 branch November 7, 2019 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants