commit 6a2308e8006b2503b53cb795b52d31d5383c607e
parent 68b8bdc4ffe6a488af57a212a551e89e63d183ba
Author: Marc Stibane <marc@taler.net>
Date: Wed, 24 Apr 2024 14:09:25 +0200
Localization exceptions
Diffstat:
3 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/TalerWallet1/Helper/Font+Taler.swift b/TalerWallet1/Helper/Font+Taler.swift
@@ -301,27 +301,27 @@ struct ContentViewFonts: View {
var body: some View {
VStack {
HStack {
- Text("title a")
- Text("bold").bold()
+ Text(verbatim: "title a")
+ Text(verbatim: "bold").bold()
}
.talerFont(.title)
.padding()
HStack {
- Text("title2 a")
- Text("italic").italic()
- Text("bold").bold()
+ Text(verbatim: "title2 a")
+ Text(verbatim: "italic").italic()
+ Text(verbatim: "bold").bold()
}
.talerFont(.title2)
.padding()
- Text("headline")
+ Text(verbatim: "headline")
.talerFont(.headline)
.padding(.top)
- Text("headline bold")
+ Text(verbatim: "headline bold")
.bold()
.talerFont(.headline)
.padding(.bottom)
- Text("title2 bold italic")
+ Text(verbatim: "title2 bold italic")
.bold()
.italic()
.talerFont(.title2)
diff --git a/TalerWallet1/Views/Balances/PendingRowView.swift b/TalerWallet1/Views/Balances/PendingRowView.swift
@@ -82,7 +82,8 @@ fileprivate struct Previews: PreviewProvider {
struct StateContainer: View {
// @StateObject private var controller = Controller.shared
var body: some View {
- Text("Hello")
+ let hello = "Hello"
+ Text(hello)
// Preview_Content()
// .environmentObject(controller)
}
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -125,7 +125,7 @@ struct SettingsView: View {
description: hideDescriptions ? nil : String(localized: "For Delete, Fail & Abort buttons"))
// SettingsFont(title: String(localized: "Font:"), value: talerFontIndex, action: redraw)
// .id("font")
- SettingsStyle(title: String(localized: "Liststyle:"), myListStyle: $myListStyle)
+ SettingsStyle(title: String(localized: "List Style:"), myListStyle: $myListStyle)
.id("liststyle")
let localConsStr = String(localized: "on LocalConsole")
let observability = String(localized: "Observe walletCore")
@@ -154,12 +154,12 @@ struct SettingsView: View {
}
#if DEBUG
if showDevelopItems {
- Text("https://bank.taler.grothoff.org/")
- Text("https://bank.regio-taler.fdold.eu/")
- Text("https://bank.head.taler.net/")
- Text("https://bank.test.taler.net/")
- Text("https://bank.demo.taler.net/")
- Text("https://bank.taler.ar/")
+ Text(verbatim: "https://bank.taler.grothoff.org/")
+ Text(verbatim: "https://bank.regio-taler.fdold.eu/")
+ Text(verbatim: "https://bank.head.taler.net/")
+ Text(verbatim: "https://bank.test.taler.net/")
+ Text(verbatim: "https://bank.demo.taler.net/")
+ Text(verbatim: "https://bank.taler.ar/")
}
#endif
if showDevelopItems { // show or hide the following items