Add backup specific strings for token redemption error.

This commit is contained in:
Alex Hart
2024-11-14 10:54:44 -04:00
committed by Greyson Parrelli
parent c6368a3166
commit 02ecc19112
2 changed files with 13 additions and 2 deletions

View File

@@ -98,9 +98,16 @@ class DonationErrorParams<V> private constructor(
negativeAction = null
)
InAppPaymentType.RECURRING_BACKUP -> DonationErrorParams(
title = R.string.DonationsError__something_went_wrong,
message = R.string.DonationsError__your_backups_subscription_couldnt_be_displayed,
positiveAction = callback.onContactSupport(context),
negativeAction = null
)
else -> DonationErrorParams(
title = R.string.DonationsErrors__couldnt_add_badge, // TODO [backups] -- This will need a backups-specific string
message = R.string.DonationsErrors__your_badge_could_not, // TODO [backups] -- This will need a backups-specific string
title = R.string.DonationsErrors__couldnt_add_badge,
message = R.string.DonationsErrors__your_badge_could_not,
positiveAction = callback.onContactSupport(context),
negativeAction = null
)

View File

@@ -5816,6 +5816,10 @@
<string name="DonationsErrors__your_payment">Your donation couldn\'t be processed and you have not been charged. Please try again.</string>
<string name="DonationsErrors__still_processing">Still processing</string>
<string name="DonationsErrors__couldnt_add_badge">Couldn\'t add badge</string>
<!-- Displayed when backup credential could not be redeemed. Dialog or notification title -->
<string name="DonationsError__something_went_wrong">Something went wrong</string>
<!-- Displayed when backup credential could not be redeemed. Dialog or notification body -->
<string name="DonationsError__your_backups_subscription_couldnt_be_displayed">Your backups subscription couldn\'t be displayed. Please contact support.</string>
<!-- Displayed when badge credential couldn\'t be verified -->
<string name="DonationsErrors__failed_to_validate_badge">Failed to validate badge</string>
<!-- Displayed when badge credential couldn\'t be verified -->