commit 73753bb5032e1137f3fcd461cc41ad03d6fbb9d0 parent c3931a39adeddb2d16fb19d54da5b3d48d017e59 Author: Marc Stibane <marc@taler.net> Date: Mon, 9 Dec 2024 21:40:50 +0100 L10N comments Diffstat:
14 files changed, 62 insertions(+), 22 deletions(-)
diff --git a/TalerWallet1/Localizable.xcstrings b/TalerWallet1/Localizable.xcstrings @@ -1758,11 +1758,12 @@ } }, "Available:\t%@" : { + "extractionState" : "stale", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Verfügbar: %@" + "value" : "Verfügbar: %@ (there was a \"\\ t\")" } }, "es" : { @@ -1779,6 +1780,16 @@ } } }, + "Available: %@" : { + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Verfügbar: %@" + } + } + } + }, "Backup restored" : { "comment" : "RefreshReason", "localizations" : { @@ -1980,13 +1991,13 @@ } } }, - "Choose the payment service." : { + "Choose the payment service:" : { "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Wählen Sie den Zahlungsdienst." + "value" : "Wählen Sie den Zahlungsdienst:" } } } @@ -2715,6 +2726,7 @@ } }, "Double tap to edit the account" : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -4499,12 +4511,12 @@ }, "NavTitle_Deposit_AmountStr" : { "comment" : "NavTitle: Deposit", - "extractionState" : "extracted_with_value", + "extractionState" : "stale", "localizations" : { "de" : { "stringUnit" : { "state" : "translated", - "value" : "Konto wählen" + "value" : "Konto auswählen" } }, "en" : { @@ -4528,7 +4540,7 @@ } }, "NavTitle_Deposit_Currency" : { - "comment" : "NavTitle: Deposit 'currency'\nNavTitle: Deposit 'currencySymbol'", + "comment" : "NavTitle: Deposit 'currencySymbol'", "extractionState" : "extracted_with_value", "localizations" : { "de" : { @@ -4557,6 +4569,24 @@ } } }, + "NavTitle_Deposit_Select" : { + "comment" : "NavTitle: Deposit", + "extractionState" : "extracted_with_value", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Konto auswählen" + } + }, + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Select account" + } + } + } + }, "NavTitle_Request" : { "comment" : "NavTitle: Request", "extractionState" : "extracted_with_value", @@ -4976,6 +5006,7 @@ } }, "not yet verified" : { + "comment" : "KYC state", "localizations" : { "de" : { "stringUnit" : { @@ -8064,6 +8095,7 @@ } }, "Transaction list" : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8690,6 +8722,7 @@ } }, "verified" : { + "comment" : "KYC state", "localizations" : { "de" : { "stringUnit" : { @@ -8857,6 +8890,7 @@ } }, "Will go to bank website to authorize this withdrawal." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8879,6 +8913,7 @@ } }, "Will go to detail view." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8901,6 +8936,7 @@ } }, "Will go to KYC website to permit this withdrawal." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8923,6 +8959,7 @@ } }, "Will go to main transactions list." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8945,6 +8982,7 @@ } }, "Will go to Pending transactions." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8967,6 +9005,7 @@ } }, "Will go to the demo shop website." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { @@ -8989,6 +9028,7 @@ } }, "Will go to the merchant website." : { + "comment" : "VoiceOver", "localizations" : { "de" : { "stringUnit" : { diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift b/TalerWallet1/Views/Actions/ActionsSheet.swift @@ -72,7 +72,7 @@ struct ActionsSheet: View { } } .buttonStyle(TalerButtonStyle(type: .bordered, narrow: false, aligned: .center)) - .accessibilityHint(String(localized: "Will go to the demo shop website.")) + .accessibilityHint(String(localized: "Will go to the demo shop website.", comment: "VoiceOver")) .padding(.bottom, 20) } diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift b/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift @@ -38,7 +38,7 @@ struct DepositAmountView: View { ) -> String { condition ? String(localized: "NavTitle_Deposit_Currency", defaultValue: "Deposit \(currency)", - comment: "NavTitle: Deposit 'currency'") + comment: "NavTitle: Deposit 'currencySymbol'") : String(localized: "NavTitle_Deposit", defaultValue: "Deposit", comment: "NavTitle: Deposit") diff --git a/TalerWallet1/Views/Actions/Banking/DepositSelectV.swift b/TalerWallet1/Views/Actions/Banking/DepositSelectV.swift @@ -39,7 +39,7 @@ struct DepositSelectV: View { private var subjectTitle: String { - return String(localized: "NavTitle_Deposit_AmountStr", + return String(localized: "NavTitle_Deposit_Select", defaultValue: "Select account", comment: "NavTitle: Deposit") } @@ -80,8 +80,8 @@ struct DepositSelectV: View { let iban = payURL?.iban let xTaler = payURL?.xTaler let alias = account.label - let kyc = account.kycCompleted ? String(localized: "verified") - : String(localized: "not yet verified") + let kyc = account.kycCompleted ? String(localized: "verified", comment: "KYC state") + : String(localized: "not yet verified", comment: "KYC state") let destination = DepositAmountV(stack: stack.push(), selectedBalance: $selectedBalance, diff --git a/TalerWallet1/Views/Balances/BalanceCellV.swift b/TalerWallet1/Views/Balances/BalanceCellV.swift @@ -78,7 +78,7 @@ struct BalanceCellV: View { NavigationLink { balanceDest } label: { balanceCell .accessibilityElement(children: .combine) - .accessibilityHint(String(localized: "Will go to main transactions list.")) + .accessibilityHint(String(localized: "Will go to main transactions list.", comment: "VoiceOver")) // .accessibilityLabel(balanceTitleStr + SPACE + amountStr) // TODO: CurrencyFormatter! } } diff --git a/TalerWallet1/Views/Balances/BalancesPendingRowV.swift b/TalerWallet1/Views/Balances/BalancesPendingRowV.swift @@ -56,7 +56,7 @@ struct BalancesPendingRowV: View { needsKYC ? needsKYCStr : shouldConfirm ? needsConfStr : EMPTYSTRING) - .accessibilityHint(String(localized: "Will go to Pending transactions.")) + .accessibilityHint(String(localized: "Will go to Pending transactions.", comment: "VoiceOver")) } var body: some View { diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift b/TalerWallet1/Views/Balances/BalancesSectionView.swift @@ -102,7 +102,7 @@ extension BalancesSectionView: View { reloadAllAction: loadCompleted) Section { if scopeInfo.type == .exchange { - let baseURL = scopeInfo.url?.trimURL ?? String(localized: "Unknown payment provider", comment: "exchange url") + let baseURL = scopeInfo.url?.trimURL ?? String(localized: "Unknown payment service", comment: "exchange url") Text(baseURL) .talerFont(.subheadline) .foregroundColor(.secondary) diff --git a/TalerWallet1/Views/HelperViews/ScopePicker.swift b/TalerWallet1/Views/HelperViews/ScopePicker.swift @@ -47,7 +47,7 @@ struct ScopePicker: View { useISO: true, a11yDecSep: ".") let url = balance.scopeInfo.url?.trimURL ?? EMPTYSTRING // let a11yLabel = url + ", " + availableA11y - let choose = String(localized: "Choose the payment service.", comment: "VoiceOver") + let choose = String(localized: "Choose the payment service:", comment: "VoiceOver") let disabled = (count == 1) HStack(alignment: .firstTextBaseline) { diff --git a/TalerWallet1/Views/Settings/Bank/BankSectionView.swift b/TalerWallet1/Views/Settings/Bank/BankSectionView.swift @@ -128,7 +128,7 @@ struct BankSectionView: View { value: kyc) } .talerFont(.body) .accessibilityElement(children: .combine) - .accessibilityHint("Double tap to edit the account") + .accessibilityHint(String(localized: "Double tap to edit the account", comment: "VoiceOver")) } } header: { } diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift @@ -167,7 +167,7 @@ struct PaymentView: View, Sendable { let buttonTitle = terms.fulfillmentMessage ?? String(localized: "Open merchant website") Link(buttonTitle, destination: destination) .buttonStyle(TalerButtonStyle(type: .bordered)) - .accessibilityHint(String(localized: "Will go to the merchant website.")) + .accessibilityHint(String(localized: "Will go to the merchant website.", comment: "VoiceOver")) } } } diff --git a/TalerWallet1/Views/Transactions/TransactionPayDetailV.swift b/TalerWallet1/Views/Transactions/TransactionPayDetailV.swift @@ -37,7 +37,7 @@ struct TransactionPayDetailV: View { let buttonTitle = info.fulfillmentMessage ?? String(localized: "Open merchant website") Link(buttonTitle, destination: destination) .buttonStyle(TalerButtonStyle(type: .bordered)) - .accessibilityHint(String(localized: "Will go to the merchant website.")) + .accessibilityHint(String(localized: "Will go to the merchant website.", comment: "VoiceOver")) } } else if let fulfillmentMessage = info.fulfillmentMessage { Text(fulfillmentMessage) diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift @@ -203,7 +203,7 @@ struct TransactionRowView: View { : needsKYC ? String(localized: ". Needs K Y C") : shouldConfirm ? String(localized: ". Needs bank authorization") : EMPTYSTRING) - .accessibilityHint(String(localized: "Will go to detail view.")) + .accessibilityHint(String(localized: "Will go to detail view.", comment: "VoiceOver")) } } // MARK: - diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryV.swift b/TalerWallet1/Views/Transactions/TransactionSummaryV.swift @@ -276,7 +276,7 @@ struct TransactionSummaryV: View { LinkButton(destination: destination, hintTitle: String(localized: "You need to pass a KYC procedure."), buttonTitle: String(localized: "Open KYC website"), - a11yHint: String(localized: "Will go to KYC website to permit this withdrawal."), + a11yHint: String(localized: "Will go to KYC website to permit this withdrawal.", comment: "VoiceOver"), badge: NEEDS_KYC) } } } let withdrawalDetails = details.withdrawalDetails @@ -293,7 +293,7 @@ struct TransactionSummaryV: View { LinkButton(destination: destination, hintTitle: String(localized: "The bank is waiting for your authorization."), buttonTitle: String(localized: "Authorize now"), - a11yHint: String(localized: "Will go to bank website to authorize this withdrawal."), + a11yHint: String(localized: "Will go to bank website to authorize this withdrawal.", comment: "VoiceOver"), badge: CONFIRM_BANK) } } } } } // switch diff --git a/TalerWallet1/Views/Transactions/TransactionsListView.swift b/TalerWallet1/Views/Transactions/TransactionsListView.swift @@ -78,7 +78,7 @@ struct TransactionsListView: View { // .navigationTitle("EURO") // Fake EUR instead of the real Currency // .navigationTitle("CHF") // Fake CHF instead of the real Currency .navigationTitle(navTitle ?? scope.currency) - .accessibilityHint(String(localized: "Transaction list")) + .accessibilityHint(String(localized: "Transaction list", comment: "VoiceOver")) .task { symLog.log("❗️.task List❗️") await reloadAllAction(stack.push())