taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

commit 8643037f06c25be1508ef6027ef4d49e03beb620
parent f7649e331dcc795694c67a13c6cbe347766ff5a6
Author: Torsten Grote <t@grobox.de>
Date:   Tue,  3 Jan 2023 09:52:43 -0300

[wallet] Change 'Subject' to 'Purpose' for pay-push and pay-pull

#7470

Diffstat:
Mwallet/src/main/java/net/taler/wallet/peer/OutgoingPullIntroComposable.kt | 2+-
Mwallet/src/main/java/net/taler/wallet/peer/OutgoingPushIntroComposable.kt | 2+-
Mwallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt | 2+-
Mwallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt | 2+-
Mwallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt | 2+-
Mwallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt | 2+-
Mwallet/src/main/res/values/strings.xml | 1+
7 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/wallet/src/main/java/net/taler/wallet/peer/OutgoingPullIntroComposable.kt b/wallet/src/main/java/net/taler/wallet/peer/OutgoingPullIntroComposable.kt @@ -76,7 +76,7 @@ fun OutgoingPullIntroComposable( isError = subject.isBlank(), label = { Text( - stringResource(R.string.withdraw_manual_ready_subject), + stringResource(R.string.send_peer_purpose), color = if (subject.isBlank()) { colorResource(R.color.red) } else Color.Unspecified, diff --git a/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushIntroComposable.kt b/wallet/src/main/java/net/taler/wallet/peer/OutgoingPushIntroComposable.kt @@ -78,7 +78,7 @@ fun OutgoingPushIntroComposable( isError = subject.isBlank(), label = { Text( - stringResource(R.string.withdraw_manual_ready_subject), + stringResource(R.string.send_peer_purpose), color = if (subject.isBlank()) { colorResource(R.color.red) } else Color.Unspecified, diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt @@ -58,7 +58,7 @@ fun ColumnScope.TransactionPeerPullCreditComposable(t: TransactionPeerPullCredit ) } TransactionInfoComposable( - label = stringResource(id = R.string.withdraw_manual_ready_subject), + label = stringResource(id = R.string.send_peer_purpose), info = t.info.summary ?: "", ) if (t.pending) { diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt @@ -51,7 +51,7 @@ fun TransactionPeerPullDebitComposable(t: TransactionPeerPullDebit) { ) } TransactionInfoComposable( - label = stringResource(id = R.string.withdraw_manual_ready_subject), + label = stringResource(id = R.string.send_peer_purpose), info = t.info.summary ?: "", ) } diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt @@ -51,7 +51,7 @@ fun TransactionPeerPushCreditComposable(t: TransactionPeerPushCredit) { ) } TransactionInfoComposable( - label = stringResource(id = R.string.withdraw_manual_ready_subject), + label = stringResource(id = R.string.send_peer_purpose), info = t.info.summary ?: "", ) } diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt @@ -58,7 +58,7 @@ fun ColumnScope.TransactionPeerPushDebitComposable(t: TransactionPeerPushDebit) ) } TransactionInfoComposable( - label = stringResource(id = R.string.withdraw_manual_ready_subject), + label = stringResource(id = R.string.send_peer_purpose), info = t.info.summary ?: "", ) QrCodeUriComposable( diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml @@ -143,6 +143,7 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card <string name="send_peer_payment_instruction">Let the payee scan this QR code to receive:</string> <string name="send_peer_payment_amount_received">Amount received</string> <string name="send_peer_payment_amount_sent">Amount sent</string> + <string name="send_peer_purpose">Purpose</string> <string name="pay_peer_title">Pay invoice</string> <string name="pay_peer_intro">Do you want to pay this invoice?</string>