From a2f17cc9059b36724dfc591226f9514f989eb513 Mon Sep 17 00:00:00 2001 From: Davide Date: Sun, 17 Nov 2024 16:26:22 +0100 Subject: [PATCH] Use long dash for excluded migration profiles --- .../AppUIMain/Views/Migration/MigrateContentView+List.swift | 2 +- .../AppUIMain/Views/Migration/MigrateContentView+Table.swift | 2 +- .../Library/Sources/UILibrary/L10n/Strings+Unlocalized.swift | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+List.swift b/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+List.swift index 864de332..33961b9e 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+List.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+List.swift @@ -278,7 +278,7 @@ private extension MigrateContentView.ListView { func icon(forStatus status: MigrationStatus) -> some View { switch status { case .excluded: - Text("--") + Text(Strings.Unlocalized.longDash) case .pending: ProgressView() diff --git a/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+Table.swift b/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+Table.swift index b2495387..0d5793f4 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+Table.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/Migration/MigrateContentView+Table.swift @@ -146,7 +146,7 @@ private extension MigrateContentView.TableView { var statusView: some View { switch status { case .excluded: - Text("--") + Text(Strings.Unlocalized.longDash) case .pending: ThemeImage(.progress) diff --git a/Passepartout/Library/Sources/UILibrary/L10n/Strings+Unlocalized.swift b/Passepartout/Library/Sources/UILibrary/L10n/Strings+Unlocalized.swift index 9d14158b..c884b4df 100644 --- a/Passepartout/Library/Sources/UILibrary/L10n/Strings+Unlocalized.swift +++ b/Passepartout/Library/Sources/UILibrary/L10n/Strings+Unlocalized.swift @@ -118,6 +118,8 @@ extension Strings { public static let ipv6 = "IPv6" + public static let longDash = "—" + public static let mtu = "MTU" public static let openVPN = "OpenVPN"