From 07703fda9cd1642c93393af95ae8a4a9147f6248 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 4 Oct 2024 00:42:09 +0200 Subject: [PATCH] Fix some things about IP module - Reword module description to "Routing" - Make route modal title .inline --- Passepartout/Library/Sources/AppUI/L10n/ModuleType+L10n.swift | 2 +- Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift | 2 ++ .../Sources/AppUI/Resources/en.lproj/Localizable.strings | 1 + .../Library/Sources/AppUI/Views/Modules/IPView+Route.swift | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Passepartout/Library/Sources/AppUI/L10n/ModuleType+L10n.swift b/Passepartout/Library/Sources/AppUI/L10n/ModuleType+L10n.swift index aa6d628b..3d4fbe35 100644 --- a/Passepartout/Library/Sources/AppUI/L10n/ModuleType+L10n.swift +++ b/Passepartout/Library/Sources/AppUI/L10n/ModuleType+L10n.swift @@ -42,7 +42,7 @@ extension ModuleType: LocalizableEntity { return Strings.Unlocalized.httpProxy case .ip: - return Strings.Unlocalized.ip + return Strings.Global.routing case .onDemand: return Strings.Global.onDemand diff --git a/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift b/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift index 2f748a26..7c33edd3 100644 --- a/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift +++ b/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift @@ -253,6 +253,8 @@ public enum Strings { public static let route = Strings.tr("Localizable", "global.route", fallback: "Route") /// Routes public static let routes = Strings.tr("Localizable", "global.routes", fallback: "Routes") + /// Routing + public static let routing = Strings.tr("Localizable", "global.routing", fallback: "Routing") /// Save public static let save = Strings.tr("Localizable", "global.save", fallback: "Save") /// Server diff --git a/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings b/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings index 9b536673..52736002 100644 --- a/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings +++ b/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings @@ -52,6 +52,7 @@ "global.restart" = "Restart"; "global.route" = "Route"; "global.routes" = "Routes"; +"global.routing" = "Routing"; "global.save" = "Save"; "global.server" = "Server"; "global.servers" = "Servers"; diff --git a/Passepartout/Library/Sources/AppUI/Views/Modules/IPView+Route.swift b/Passepartout/Library/Sources/AppUI/Views/Modules/IPView+Route.swift index 895d3c1c..967fe319 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Modules/IPView+Route.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Modules/IPView+Route.swift @@ -68,6 +68,7 @@ extension IPView { Button(Strings.Global.ok, action: parseAndSubmit) } } + .themeNavigationDetail() } } }