Fix hard coded placeholder in iDEAL dialog.

This commit is contained in:
Alex Hart
2024-06-25 10:19:27 -03:00
parent 93ec322bb9
commit f11028529e
2 changed files with 4 additions and 3 deletions

View File

@@ -164,9 +164,10 @@ class IdealTransferDetailsFragment : ComposeFragment(), DonationCheckoutDelegate
}
if (args.inAppPayment.type.recurring) { // TODO [message-requests] -- handle backup
val formattedMoney = FiatMoneyUtil.format(requireContext().resources, args.inAppPayment.data.amount!!.toFiatMoney(), FiatMoneyUtil.formatOptions().trimZerosAfterDecimal())
MaterialAlertDialogBuilder(requireContext())
.setTitle(getString(R.string.IdealTransferDetailsFragment__confirm_your_donation_with_s, getString(state.idealBank!!.getUIValues().name)))
.setMessage(R.string.IdealTransferDetailsFragment__monthly_ideal_warning)
.setMessage(getString(R.string.IdealTransferDetailsFragment__to_setup_your_recurring_donation, formattedMoney))
.setPositiveButton(R.string.IdealTransferDetailsFragment__continue) { _, _ ->
continueTransfer()
}

View File

@@ -6418,8 +6418,8 @@
<string name="IdealTransferDetailsFragment__choose_your_bank">Choose your bank</string>
<!-- Dialog title shown when using iDEAL payment for setting up a monthly donation -->
<string name="IdealTransferDetailsFragment__confirm_your_donation_with_s">Confirm your donation with %1$s</string>
<!-- Dialog warning shown when using iDEAL payment for setting up a monthly donation -->
<string name="IdealTransferDetailsFragment__monthly_ideal_warning">To setup your recurring donation tap continue to confirm a €0,01 charge with your bank. This will be automatically refunded and allows your €5/month donation to debited from your account.</string>
<!-- Dialog warning shown when using iDEAL payment for setting up a monthly donation. Placeholder is donation amount.Z -->
<string name="IdealTransferDetailsFragment__to_setup_your_recurring_donation">To setup your recurring donation tap continue to confirm a €0,01 charge with your bank. This will be automatically refunded and allows your %1$s/month donation to debited from your account.</string>
<!-- Dialog button shown when using iDEAL payment for setting up a monthly donation to continue with the donation -->
<string name="IdealTransferDetailsFragment__continue">Continue</string>