Skip to content

Commit

Permalink
Update some donation error strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Aug 24, 2022
1 parent f0a1092 commit bcef73c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ class DonationErrorParams<V> private constructor(
private fun <V> getVerificationErrorParams(context: Context, verificationError: DonationError.GiftRecipientVerificationError, callback: Callback<V>): DonationErrorParams<V> {
return when (verificationError) {
is DonationError.GiftRecipientVerificationError.FailedToFetchProfile -> DonationErrorParams(
title = R.string.DonationsErrors__could_not_verify_recipient,
title = R.string.DonationsErrors__couldnt_send_gift,
message = R.string.DonationsErrors__please_check_your_network_connection,
positiveAction = callback.onOk(context),
negativeAction = null
)
else -> DonationErrorParams(
title = R.string.DonationsErrors__recipient_verification_failed,
title = R.string.DonationsErrors__cant_send_gift,
message = R.string.DonationsErrors__target_does_not_support_gifting,
positiveAction = callback.onOk(context),
negativeAction = null
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4374,13 +4374,13 @@
<string name="NetworkFailure__network_error_check_your_connection_and_try_again">Network error. Check your connection and try again.</string>
<string name="NetworkFailure__retry">Retry</string>
<!-- Displayed as a dialog title when the selected recipient for a gift doesn\'t support gifting -->
<string name="DonationsErrors__recipient_verification_failed">Recipient verification failed.</string>
<string name="DonationsErrors__cant_send_gift">Can\'t send gift</string>
<!-- Displayed as a dialog message when the selected recipient for a gift doesn\'t support gifting -->
<string name="DonationsErrors__target_does_not_support_gifting">Target does not support gifting.</string>
<string name="DonationsErrors__target_does_not_support_gifting">This recipient is using a version of Signal that can\'t receive gift badges. They\'ll be able to receive gifts when they update to the latest version.</string>
<!-- Displayed as a dialog title when the user\'s profile could not be fetched, likely due to lack of internet -->
<string name="DonationsErrors__could_not_verify_recipient">Could not verify recipient.</string>
<string name="DonationsErrors__couldnt_send_gift">Couldn\'t send gift</string>
<!-- Displayed as a dialog message when the user\'s profile could not be fetched, likely due to lack of internet -->
<string name="DonationsErrors__please_check_your_network_connection">Please check your network connection and try again.</string>
<string name="DonationsErrors__please_check_your_network_connection">Your gift could not be sent because of a network error. Check your connection and try again.</string>

<!-- Gift message view title -->
<string name="GiftMessageView__gift_badge">Gift badge</string>
Expand Down

0 comments on commit bcef73c

Please sign in to comment.