commit 144af7702ed2420f9e30ef564cb33664d044010e parent 34af304c504a2e1623494774f370c5b0eb684c39 Author: Marc Stibane <marc@taler.net> Date: Wed, 9 Jul 2025 07:36:45 +0200 wording, a11y Diffstat:
7 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/TalerWallet1/Resources/Localizable.xcstrings b/TalerWallet1/Resources/Localizable.xcstrings @@ -1701,7 +1701,7 @@ } }, "Amount to deposit:" : { - "comment" : "accessibility, no abbreviations", + "comment" : "a11y, no abbreviations", "localizations" : { "de" : { "stringUnit" : { @@ -1758,7 +1758,7 @@ } }, "Amount to pay:" : { - "comment" : "accessibility, no abbreviations", + "comment" : "a11y, no abbreviations", "localizations" : { "de" : { "stringUnit" : { @@ -1787,7 +1787,7 @@ } }, "Amount to request:" : { - "comment" : "accessibility, no abbreviations", + "comment" : "a11y, no abbreviations", "localizations" : { "de" : { "stringUnit" : { @@ -1816,7 +1816,7 @@ } }, "Amount to send:" : { - "comment" : "accessibility, no abbreviations", + "comment" : "a11y, no abbreviations", "localizations" : { "de" : { "stringUnit" : { @@ -1953,7 +1953,7 @@ } }, "Amount to withdraw:" : { - "comment" : "accessibility, no abbreviations", + "comment" : "a11y, no abbreviations", "localizations" : { "de" : { "stringUnit" : { diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift b/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift @@ -149,7 +149,7 @@ struct DepositAmountView: View { .frame(maxWidth: .infinity, alignment: .trailing) .padding(.horizontal) // .padding(.bottom, 2) - let a11yLabel = String(localized: "Amount to deposit:", comment: "accessibility, no abbreviations") + let a11yLabel = String(localized: "Amount to deposit:", comment: "a11y, no abbreviations") let amountLabel = minimalistic ? String(localized: "Amount:") : a11yLabel CurrencyInputView(scope: scopeInfo, diff --git a/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift @@ -284,7 +284,7 @@ struct RequestPaymentContent: View { } let tosAccepted = (exchange?.tosStatus == .accepted) ?? false if tosAccepted { - let a11yLabel = String(localized: "Amount to request:", comment: "accessibility, no abbreviations") + let a11yLabel = String(localized: "Amount to request:", comment: "a11y, no abbreviations") let amountLabel = minimalistic ? String(localized: "Amount:") : a11yLabel AmountInputV(stack: stack.push(), diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift b/TalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift @@ -168,7 +168,7 @@ struct SendAmountView: View { NavLink($buttonSelected) { inputDestination } NavLink($shortcutSelected) { shortcutDestination } } - let a11yLabel = String(localized: "Amount to send:", comment: "accessibility, no abbreviations") + let a11yLabel = String(localized: "Amount to send:", comment: "a11y, no abbreviations") AmountInputV(stack: stack.push(), scope: balance.scopeInfo, amountAvailable: $amountAvailable, diff --git a/TalerWallet1/Views/Sheets/Payment/PayTemplateV.swift b/TalerWallet1/Views/Sheets/Payment/PayTemplateV.swift @@ -129,7 +129,7 @@ struct PayTemplateV: View { var body: some View { if let templateContract { // preparePayResult // let currency = templateContract.currency ?? templateContract.amount?.currencyStr ?? UNKNOWN - let a11yLabel = String(localized: "Amount to pay:", comment: "accessibility, no abbreviations") + let a11yLabel = String(localized: "Amount to pay:", comment: "a11y, no abbreviations") let amountLabel = minimalistic ? String(localized: "Amount:") : a11yLabel // final destination with amountToTransfer, after user input of amount diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift @@ -100,7 +100,12 @@ struct WithdrawAcceptView: View { if !wireFee.isZero { let currencyInfo = controller.info(for: scope, controller.currencyTicker) let feeStr = wireFee.formatted(currencyInfo, isNegative: false) - Text("Your bank's wire fee: \(feeStr)") + let feeTitle = String(localized: "FEE_WITHDRAW_BANK_WIRE", + defaultValue: "Your bank's wire fee: \(feeStr.0)") + let feeA11y = String(localized: "FEE_WITHDRAW_BANK_WIRE_A11Y", + defaultValue: "Your bank's wire fee: \(feeStr.1)", comment: "a11y") + Text(feeTitle) + .accessibilityLabel(Text(feeA11y)) } } } else { diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift @@ -170,7 +170,7 @@ struct WithdrawURIView: View { NavLink($shortcutSelected) { shortcutDest } NavLink($buttonSelected) { acceptDestination } } - let a11yLabel = String(localized: "Amount to withdraw:", comment: "accessibility, no abbreviations") + let a11yLabel = String(localized: "Amount to withdraw:", comment: "a11y, no abbreviations") let amountLabel = minimalistic ? String(localized: "Amount:") // maxAmount : a11yLabel // TODO: input amount, then