From 1c3f69819ca89c9c5d9ec4da768bd97781255304 Mon Sep 17 00:00:00 2001 From: Davide Date: Wed, 27 Nov 2024 14:35:35 +0100 Subject: [PATCH] Decouple error strings from views --- .../Views/App/ProfileContainerView.swift | 2 +- .../Views/App/ProfileDuplicateButton.swift | 2 +- .../Views/App/ProfileImporterModifier.swift | 2 +- .../Views/App/TunnelRestartButton.swift | 2 +- .../AppUITV/Views/Profile/ProfileView.swift | 2 +- .../UILibrary/L10n/SwiftGen+Strings.swift | 22 +++++++------------ .../Resources/en.lproj/Localizable.strings | 7 +++--- .../Views/UI/TunnelToggleButton.swift | 2 +- 8 files changed, 17 insertions(+), 24 deletions(-) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift index 085ce9cef..54052c732 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift @@ -97,7 +97,7 @@ private extension ProfileContainerView { errorHandler.handle( $0, title: interactiveManager.editor.profile.name, - message: Strings.Views.App.Errors.tunnel + message: Strings.Errors.App.tunnel ) } .presentationDetents([.medium]) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift index 7b83ec2ca..d897ba542 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift @@ -45,7 +45,7 @@ struct ProfileDuplicateButton