Add proper text for pending sheet.

This commit is contained in:
Alex Hart
2023-10-11 16:25:47 -03:00
committed by Cody Henthorne
parent 7e68050e0a
commit 05296e3d9b
2 changed files with 9 additions and 2 deletions

View File

@@ -116,9 +116,14 @@ private fun DonationPendingBottomSheetContent(
modifier = Modifier.padding(bottom = 8.dp)
)
// TODO [sepa] -- Need proper copy here for one-time donations.
val textResource = if (badge.isSubscription()) {
R.string.DonationPendingBottomSheet__your_monthly_donation_is_pending
} else {
R.string.DonationPendingBottomSheet__your_one_time_donation_is_pending
}
Text(
text = stringResource(id = R.string.DonationPendingBottomSheet__your_monthly_donation_is_pending, badge.name),
text = stringResource(id = textResource, badge.name),
textAlign = TextAlign.Center,
color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.padding(bottom = 20.dp)

View File

@@ -5870,6 +5870,8 @@
<string name="DonationPendingBottomSheet__donation_pending">Donation pending</string>
<!-- Top text block of donation pending sheet displayed after subscribing via a bank transfer. Placeholder is the badge name. -->
<string name="DonationPendingBottomSheet__your_monthly_donation_is_pending">Your monthly donation is pending. Youll be able to display the %1$s badge on your profile when your donation is received.</string>
<!-- Top text block of donation pending sheet displayed after one-time donation via a bank transfer. Placeholder is the badge name. -->
<string name="DonationPendingBottomSheet__your_one_time_donation_is_pending">Your one-time donation is pending. Youll be able to display the %1$s badge on your profile when your donation is received.</string>
<!-- Bottom text block of donation pending sheet displayed after donating via a bank transfer. Placeholder is for learn more. -->
<string name="DonationPendingBottomSheet__bank_transfers_usually_take">Bank transfers usually take 1 business day to process. %1$s</string>
<!-- Learn more text for donation pending sheet displayed after donating via a bank transfer. -->