taler-ios

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

commit ac86750281e8df2886a61407452151367748bcaa
parent 6b30a36faeb70ce4dee28b2bfeefd56a4dddd08e
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 18 Jul 2024 15:10:01 +0200

Use currencyName for a11y

Diffstat:
MTalerWallet1/Views/Banking/ManualWithdraw.swift | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Banking/ManualWithdraw.swift @@ -44,12 +44,14 @@ struct ManualWithdraw: View { let scopeInfo = exchange.scopeInfo let currency = scopeInfo.currency let currencyInfo = controller.info(for: currency, controller.currencyTicker) - let currencySymbol = currencyInfo.specs.altUnitNames?[0] ?? currency + let currencyName = currencyInfo.scope.currency + let currencySymbol = currencyInfo.specs.altUnitNames?[0] ?? currencyName + let navTitle = String(localized: "NavTitle_Withdraw (currency)", defaultValue: "Withdraw \(currencySymbol)", comment: "NavTitle: Withdraw 'currencySymbol'") let navA11y = String(localized: "NavTitle_Withdraw (currency) A11y", - defaultValue: "Withdraw \(currency)", + defaultValue: "Withdraw \(currencyName)", comment: "NavTitle: Withdraw 'currency'") // let agePicker = AgePicker(ageMenuList: $ageMenuList, selectedAge: $selectedAge)