From 960e54f4e68fc22cdfdd6bf79c21feed36bd79b5 Mon Sep 17 00:00:00 2001 From: Grishka Date: Mon, 17 Jun 2024 18:18:10 +0300 Subject: [PATCH] Donation error string --- .../android/fragments/DonationWebViewFragment.java | 4 ++-- mastodon/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/DonationWebViewFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/DonationWebViewFragment.java index ba873f29..7f02bf73 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/DonationWebViewFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/DonationWebViewFragment.java @@ -75,8 +75,8 @@ public class DonationWebViewFragment extends WebViewFragment{ private void onFailure(){ new M3AlertDialogBuilder(getActivity()) - .setTitle("Failure") - .setMessage("Some sort of UI that would tell the user that their payment didn't go through") + .setTitle(R.string.error) + .setMessage(R.string.donation_server_error) .setPositiveButton(R.string.ok, null) .setOnDismissListener(dlg->Nav.finish(this)) .show(); diff --git a/mastodon/src/main/res/values/strings.xml b/mastodon/src/main/res/values/strings.xml index e129ffe9..d022d184 100644 --- a/mastodon/src/main/res/values/strings.xml +++ b/mastodon/src/main/res/values/strings.xml @@ -774,4 +774,5 @@ Spread the word Thank you for your contribution! You should receive an email confirming your donation soon. + We are sorry, an error occurred and we have not been able to process your donation.\n\nPlease retry in a few minutes. \ No newline at end of file