commit 53b82a77ea06fe7f03c31d6d281e7e1fa4224b68
parent fad4fd7a25a5d3203776a60e8caff026fd8319e6
Author: Marc Stibane <marc@taler.net>
Date: Wed, 16 Sep 2026 11:43:28 +0200
wording
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift
@@ -193,6 +193,9 @@ class Controller: ObservableObject {
}
#endif
+ var isIpad : Bool { UIDevice.current.userInterfaceIdiom == .pad }
+ var isIphone : Bool { UIDevice.current.userInterfaceIdiom == .phone }
+
var localizedAppName: String {
#if TALER_WALLET
let appName = "Taler Wallet"
diff --git a/TalerWallet1/Views/Main/MigrationView.swift b/TalerWallet1/Views/Main/MigrationView.swift
@@ -115,7 +115,9 @@ struct MigrationView: View {
.talerFont(.body)
}
} else {
- Text("Good news: the \(controller.localizedAppName) database can be updated and will then be faster.")
+ let device = controller.isIpad ? Text("this iPad", comment: "device")
+ : Text("this iPhone", comment: "device")
+ Text("The \(controller.localizedAppName) database on \(device) can be updated and will then be faster.", comment: "appName, device")
.talerFont(.title)
Text("This might take from a few seconds to a minute or two, depending on how many transactions you made.")
.talerFont(.body)
@@ -172,9 +174,3 @@ struct MigrationView: View {
}.navigationViewStyle(.stack)
}
}
-// MARK: -
-struct MigrationView_Previews: PreviewProvider {
- static var previews: some View {
- MigrationView()
- }
-}