taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 6b5b97f9fcc0d5ea5f80c5aa00d45064749d5fd3
parent 9ee74d5119aad2637c326fc35c8d5cdde979bcb2
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 24 Aug 2026 15:50:11 +0200

AI: localized

Diffstat:
MTalerWallet1/Views/Actions/Banking/ManualWithdraw.swift | 4++--
MTalerWallet1/Views/Main/MainView.swift | 2+-
MTalerWallet1/Views/Transactions/KYCauth.swift | 8++++----
MTalerWallet1/Views/Transactions/ManualDetailsV.swift | 15+++++++++------
4 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift @@ -93,8 +93,8 @@ struct ManualWithdraw: View { amountToTransfer: $amountToTransfer, exchange: exchange) } else { // should never happen, we either have an exchange or a balance - ErrorView(stack.push(), title: "ManualWithdraw", - message: "ManualWithdrawContent: Cannot determine scope", copyable: true) + ErrorView(stack.push(), title: navTitle, + message: String(localized: "No scope"), copyable: true) } } // ScrollView .navigationTitle(navTitle) diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -228,7 +228,7 @@ struct MainView: View { case .ready: mainContent case .error(let error): ErrorView(stack.push("mainGroup"), - title: "Launch error", // TODO: String(localized: "") + title: String(localized: "Launch error"), message: error.localizedDescription, copyable: true ) {} diff --git a/TalerWallet1/Views/Transactions/KYCauth.swift b/TalerWallet1/Views/Transactions/KYCauth.swift @@ -24,7 +24,7 @@ struct KYCauth: View { } var body: some View { - let kycErr = "KYC Error" + let kycErr = String(localized: "KYC Error") if let info = common.kycAuthTransferInfo { let debitPayTo = PayTo(info.debitPaytoUri) if let debitIban = debitPayTo.iban { @@ -41,12 +41,12 @@ struct KYCauth: View { obtainStr: nil, kycData: kycData, validDetails: validDetails) - } else { ErrorView(stack.push(), title: kycErr, message: "No scope") } + } else { ErrorView(stack.push(), title: kycErr, message: String(localized: "No scope")) } } else { ErrorView(stack.push(), title: kycErr, message: "No valid details") } } else { // TODO: What if payto contains no IBAN, but URL? - ErrorView(stack.push(), title: kycErr, message: "No IBAN") + ErrorView(stack.push(), title: kycErr, message: String(localized: "No IBAN")) } - } else { ErrorView(stack.push(), title: kycErr, message: "No KYC infos") } + } else { ErrorView(stack.push(), title: kycErr, message: String(localized: "No KYC infos")) } } // body } diff --git a/TalerWallet1/Views/Transactions/ManualDetailsV.swift b/TalerWallet1/Views/Transactions/ManualDetailsV.swift @@ -14,6 +14,9 @@ struct ManualDetailsV: View { let common: TransactionCommon let details: WithdrawalDetails + var errTitle: String { + String(localized: "Payment Error") + } var body: some View { if let accountDetails = details.exchangeCreditAccountDetails, let validDetails = accountDetails.validDetails { @@ -27,8 +30,8 @@ struct ManualDetailsV: View { obtainStr: obtainStr, // only for withdrawal kycData: nil, // only for deposit auth validDetails: validDetails) - } else { ErrorView(stack.push(), title: "Payment Error", message: "No scope") } - } else { ErrorView(stack.push(), title: "Payment Error", message: "No valid details") } + } else { ErrorView(stack.push(), title: errTitle, message: String(localized: "No scope")) } + } else { ErrorView(stack.push(), title: errTitle, message: String(localized: "No valid details")) } } // body } // MARK: - @@ -168,10 +171,10 @@ struct WireTransferView: View { } } #endif - } else { ErrorView(stack.push(), title: "No receiver", message: json, copyable: true) } - } else { ErrorView(stack.push(), title: "No payto URL", message: json, copyable: true) } - } else { ErrorView(stack.push(), title: "No transfer options", message: json, copyable: true) } - } else { ErrorView(stack.push(), title: "No amount", message: json, copyable: true) } + } else { ErrorView(stack.push(), title: String(localized: "No receiver"), message: json, copyable: true) } + } else { ErrorView(stack.push(), title: String(localized: "No payto URL"), message: json, copyable: true) } + } else { ErrorView(stack.push(), title: String(localized: "No transfer options"), message: json, copyable: true) } + } else { ErrorView(stack.push(), title: String(localized: "No amount"), message: json, copyable: true) } } } // MARK: -