Update donor badge strings.

This commit is contained in:
Alex Hart
2022-04-18 16:38:06 -03:00
committed by GitHub
parent 115f7063d5
commit 6101048f07
8 changed files with 48 additions and 38 deletions

View File

@@ -151,7 +151,7 @@ class AppSettingsFragment : DSLSettingsFragment(R.string.text_secure_normal__men
if (state.hasActiveSubscription) {
R.string.preferences__subscription
} else {
R.string.preferences__become_a_signal_sustainer
R.string.preferences__monthly_donation
}
),
icon = DSLSettingsIcon.from(R.drawable.ic_heart_24),
@@ -166,7 +166,7 @@ class AppSettingsFragment : DSLSettingsFragment(R.string.text_secure_normal__men
)
)
clickPref(
title = DSLSettingsText.from(R.string.preferences__signal_boost),
title = DSLSettingsText.from(R.string.preferences__one_time_donation),
icon = DSLSettingsIcon.from(R.drawable.ic_boost_24),
onClick = {
findNavController().safeNavigate(AppSettingsFragmentDirections.actionAppSettingsFragmentToBoostsFragment())

View File

@@ -70,7 +70,7 @@ class BoostFragment : DSLSettingsBottomSheetFragment(
private var errorDialog: DialogInterface? = null
private val sayThanks: CharSequence by lazy {
SpannableStringBuilder(requireContext().getString(R.string.BoostFragment__say_thanks_and_earn, 30))
SpannableStringBuilder(requireContext().getString(R.string.BoostFragment__make_a_one_time, 30))
.append(" ")
.append(
SpanUtil.learnMore(requireContext(), ContextCompat.getColor(requireContext(), R.color.signal_accent_primary)) {
@@ -239,7 +239,7 @@ class BoostFragment : DSLSettingsBottomSheetFragment(
}
private fun onGooglePayButtonClicked() {
viewModel.requestTokenFromGooglePay(getString(R.string.preferences__signal_boost))
viewModel.requestTokenFromGooglePay(getString(R.string.preferences__one_time_donation))
}
private fun onPaymentConfirmed(boostBadge: Badge) {

View File

@@ -52,7 +52,7 @@ class SubscribeFragment : DSLSettingsFragment(
private val lifecycleDisposable = LifecycleDisposable()
private val supportTechSummary: CharSequence by lazy {
SpannableStringBuilder(requireContext().getString(R.string.SubscribeFragment__support_technology_that_is_built_for_you_not))
SpannableStringBuilder(requireContext().getString(R.string.SubscribeFragment__make_a_recurring_monthly_donation))
.append(" ")
.append(
SpanUtil.readMore(requireContext(), ContextCompat.getColor(requireContext(), R.color.signal_button_secondary_text)) {

View File

@@ -67,9 +67,9 @@ class ThanksForYourSupportBottomSheetDialogFragment : FixedRoundedCornerBottomSh
if (args.badge.isBoost()) {
if (Recipient.self().badges.any { !it.isBoost() }) {
subhead.setText(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__youve_earned_a_boost_badge_help_signal)
subhead.setText(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__youve_earned_a_boost_badge_display)
} else {
subhead.text = SpannableStringBuilder(getString(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__youve_earned_a_boost_badge_help_signal))
subhead.text = SpannableStringBuilder(getString(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__youve_earned_a_boost_badge_display))
.append(" ")
.append(getString(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__you_can_also))
.append(" ")
@@ -84,7 +84,7 @@ class ThanksForYourSupportBottomSheetDialogFragment : FixedRoundedCornerBottomSh
)
}
} else {
subhead.text = getString(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__youve_earned_s_badge_help_signal, args.badge.name)
subhead.text = getString(R.string.SubscribeThanksForYourSupportBottomSheetDialogFragment__youve_earned_s_badge_display, args.badge.name)
}
val otherBadges = Recipient.self().badges.filterNot { it.id == args.badge.id }