mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Add finalized strings to strings.xml for backups.
This commit is contained in:
committed by
Nicholas Tinsley
parent
06d475fb6e
commit
44b2c62a0e
@@ -86,7 +86,7 @@ class ChatsSettingsFragment : DSLSettingsFragment(R.string.preferences_chats__ch
|
||||
|
||||
if (RemoteConfig.messageBackups || state.remoteBackupsEnabled) {
|
||||
clickPref(
|
||||
title = DSLSettingsText.from("Signal Backups"), // TODO [message-backups] -- Finalized copy
|
||||
title = DSLSettingsText.from(R.string.RemoteBackupsSettingsFragment__signal_backups),
|
||||
summary = DSLSettingsText.from(if (state.remoteBackupsEnabled) R.string.arrays__enabled else R.string.arrays__disabled),
|
||||
onClick = {
|
||||
if (state.remoteBackupsEnabled) {
|
||||
|
||||
@@ -121,7 +121,7 @@ private fun BackupsTypeSettingsContent(
|
||||
|
||||
item {
|
||||
Rows.TextRow(
|
||||
text = "Change or cancel subscription", // TODO [message-backups] final copy
|
||||
text = stringResource(id = R.string.BackupsTypeSettingsFragment__change_or_cancel_subscription),
|
||||
onClick = contentCallbacks::onChangeOrCancelSubscriptionClick
|
||||
)
|
||||
}
|
||||
@@ -154,7 +154,7 @@ private fun BackupsTypeRow(
|
||||
Column {
|
||||
Text(text = messageBackupsType.title)
|
||||
Text(
|
||||
text = "$formattedAmount/month . Renews $renewal", // TODO [message-backups] final copy
|
||||
text = stringResource(id = R.string.BackupsTypeSettingsFragment__s_month_renews_s, formattedAmount, renewal),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant
|
||||
)
|
||||
|
||||
@@ -58,14 +58,22 @@ class CreditCardFragment : Fragment(R.layout.credit_card_fragment) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO [message-backups] Copy for this button in backups checkout flow.
|
||||
binding.continueButton.text = if (args.inAppPayment.type == InAppPaymentType.RECURRING_DONATION) {
|
||||
getString(
|
||||
R.string.CreditCardFragment__donate_s_month,
|
||||
FiatMoneyUtil.format(resources, args.inAppPayment.data.amount!!.toFiatMoney(), FiatMoneyUtil.formatOptions().trimZerosAfterDecimal())
|
||||
)
|
||||
} else {
|
||||
getString(R.string.CreditCardFragment__donate_s, FiatMoneyUtil.format(resources, args.inAppPayment.data.amount!!.toFiatMoney()))
|
||||
binding.continueButton.text = when (args.inAppPayment.type) {
|
||||
InAppPaymentType.RECURRING_DONATION -> {
|
||||
getString(
|
||||
R.string.CreditCardFragment__donate_s_month,
|
||||
FiatMoneyUtil.format(resources, args.inAppPayment.data.amount!!.toFiatMoney(), FiatMoneyUtil.formatOptions().trimZerosAfterDecimal())
|
||||
)
|
||||
}
|
||||
InAppPaymentType.RECURRING_BACKUP -> {
|
||||
getString(
|
||||
R.string.CreditCardFragment__pay_s_month,
|
||||
FiatMoneyUtil.format(resources, args.inAppPayment.data.amount!!.toFiatMoney(), FiatMoneyUtil.formatOptions().trimZerosAfterDecimal())
|
||||
)
|
||||
}
|
||||
else -> {
|
||||
getString(R.string.CreditCardFragment__donate_s, FiatMoneyUtil.format(resources, args.inAppPayment.data.amount!!.toFiatMoney()))
|
||||
}
|
||||
}
|
||||
|
||||
binding.description.setLinkColor(ContextCompat.getColor(requireContext(), R.color.signal_colorPrimary))
|
||||
|
||||
Reference in New Issue
Block a user