diff --git a/Passepartout/Library/Sources/AppUIMain/Views/About/AboutCoordinator.swift b/Passepartout/Library/Sources/AppUIMain/Views/About/AboutCoordinator.swift index c7e6ea8c..ec9ef68f 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/About/AboutCoordinator.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/About/AboutCoordinator.swift @@ -96,7 +96,7 @@ extension AboutCoordinator { LinksView() default: - Text(Strings.Global.noSelection) + Text(Strings.Global.Nouns.noSelection) .themeEmptyMessage() } } @@ -124,7 +124,7 @@ extension AboutCoordinator { } default: - Text(Strings.Global.noSelection) + Text(Strings.Global.Nouns.noSelection) .themeEmptyMessage() } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/About/iOS/AboutContentView+iOS.swift b/Passepartout/Library/Sources/AppUIMain/Views/About/iOS/AboutContentView+iOS.swift index e8512167..16043246 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/About/iOS/AboutContentView+iOS.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/About/iOS/AboutContentView+iOS.swift @@ -74,11 +74,11 @@ private extension AboutContentView { .themeSection(header: Strings.Views.About.Sections.resources) Section { linkContent(.diagnostics) - Text(Strings.Global.version) + Text(Strings.Global.Nouns.version) .themeTrailingValue(BundleConfiguration.mainVersionString) } } - .navigationTitle(Strings.Global.settings) + .navigationTitle(Strings.Global.Nouns.settings) } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/About/macOS/AboutContentView+macOS.swift b/Passepartout/Library/Sources/AppUIMain/Views/About/macOS/AboutContentView+macOS.swift index 306a5805..4e51819e 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/About/macOS/AboutContentView+macOS.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/About/macOS/AboutContentView+macOS.swift @@ -60,7 +60,7 @@ struct AboutContentView: View whe .themeNavigationStack(closable: false, path: $path) .toolbar { ToolbarItem(placement: .confirmationAction) { - Button(Strings.Global.ok) { + Button(Strings.Global.Nouns.ok) { dismiss() } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/AddProfileMenu.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/AddProfileMenu.swift index 0bbf976b..8e5f7706 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/AddProfileMenu.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/AddProfileMenu.swift @@ -52,10 +52,10 @@ struct AddProfileMenu: View { private extension AddProfileMenu { var newProfileButton: some View { Button { - let profile = profileManager.new(withName: Strings.Entities.Profile.Name.new) + let profile = profileManager.new(withName: Strings.Placeholders.Profile.name) onNewProfile(profile) } label: { - ThemeImageLabel(Strings.Views.Profiles.Toolbar.newProfile, .profileEdit) + ThemeImageLabel(Strings.Views.App.Toolbar.newProfile, .profileEdit) } } @@ -63,13 +63,13 @@ private extension AddProfileMenu { Button { isImporting = true } label: { - ThemeImageLabel(Strings.Views.Profiles.Toolbar.importProfile.withTrailingDots, .profileImport) + ThemeImageLabel(Strings.Views.App.Toolbar.importProfile.withTrailingDots, .profileImport) } } var migrateProfilesButton: some View { Button(action: onMigrateProfiles) { - ThemeImageLabel(Strings.Views.Profiles.Toolbar.migrateProfiles.withTrailingDots, .profileMigrate) + ThemeImageLabel(Strings.Views.App.Toolbar.migrateProfiles.withTrailingDots, .profileMigrate) } } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/InstalledProfileView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/InstalledProfileView.swift index fed25cc8..818c1f1c 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/InstalledProfileView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/InstalledProfileView.swift @@ -90,7 +90,7 @@ private extension InstalledProfileView { } var nameView: some View { - Text(profile?.name ?? Strings.Views.Profiles.Rows.notInstalled) + Text(profile?.name ?? Strings.Views.App.Rows.notInstalled) .font(.title2) .fontWeight(theme.relevantWeight) .themeTruncating(.tail) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileAttributesView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileAttributesView.swift index c964c475..c26471ce 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileAttributesView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileAttributesView.swift @@ -70,7 +70,7 @@ struct ProfileAttributesView: View { case .tv: return ( isRemoteImportingEnabled ? .tvOn : .tvOff, - Strings.Modules.General.Rows.appleTv(Strings.Unlocalized.appleTV) + Strings.Modules.General.Rows.appletv(Strings.Unlocalized.appleTV) ) } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileCardView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileCardView.swift index 745b54f1..6e615ff4 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileCardView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileCardView.swift @@ -50,7 +50,7 @@ struct ProfileCardView: View { .font(.headline) .themeTruncating() - Text(preview.subtitle ?? Strings.Views.Profiles.Rows.noModules) + Text(preview.subtitle ?? Strings.Views.App.Rows.noModules) .multilineTextAlignment(.leading) .font(.subheadline) .foregroundStyle(.secondary) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift index 8ccc6ca6..d3eeb6ff 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift @@ -96,8 +96,8 @@ private extension ProfileContainerView { InteractiveCoordinator(style: .modal, manager: interactiveManager) { errorHandler.handle( $0, - title: Strings.Global.connection, - message: Strings.Views.Profiles.Errors.tunnel + title: Strings.Global.Nouns.connection, + message: Strings.Views.App.Errors.tunnel ) } .presentationDetents([.medium]) @@ -122,10 +122,10 @@ private struct ContainerModifier: ViewModifier { isEmpty: !profileManager.hasProfiles, emptyContent: { VStack(spacing: 16) { - Text(Strings.Views.Profiles.Folders.noProfiles) + Text(Strings.Views.App.Folders.noProfiles) .themeEmptyMessage(fullScreen: false) - Button(Strings.Views.Profiles.Folders.NoProfiles.migrate) { + Button(Strings.Views.App.Folders.NoProfiles.migrate) { flow?.onMigrateProfiles() } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContextMenu.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContextMenu.swift index d069aeda..5b179857 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContextMenu.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileContextMenu.swift @@ -78,7 +78,7 @@ private extension ProfileContextMenu { }, label: { ThemeImageLabel( - $0 ? Strings.Global.enable : Strings.Global.disable, + $0 ? Strings.Global.Actions.enable : Strings.Global.Actions.disable, $0 ? .tunnelEnable : .tunnelDisable ) } @@ -89,7 +89,7 @@ private extension ProfileContextMenu { profile? .selectedProvider .map { _ in - Button(Strings.Ui.ProfileContext.connectTo) { + Button(Strings.Views.App.ProfileContext.connectTo) { flow?.onEditProviderEntity(profile!) } } @@ -104,7 +104,7 @@ private extension ProfileContextMenu { flow?.onPurchaseRequired($0) }, label: { - ThemeImageLabel(Strings.Global.restart, .tunnelRestart) + ThemeImageLabel(Strings.Global.Actions.restart, .tunnelRestart) } ) } @@ -113,7 +113,7 @@ private extension ProfileContextMenu { Button { flow?.onEditProfile(preview) } label: { - ThemeImageLabel(Strings.Global.edit.withTrailingDots, .profileEdit) + ThemeImageLabel(Strings.Global.Actions.edit.withTrailingDots, .profileEdit) } } @@ -123,7 +123,7 @@ private extension ProfileContextMenu { preview: preview, errorHandler: errorHandler ) { - ThemeImageLabel(Strings.Global.duplicate, .contextDuplicate) + ThemeImageLabel(Strings.Global.Actions.duplicate, .contextDuplicate) } } @@ -132,7 +132,7 @@ private extension ProfileContextMenu { profileManager: profileManager, preview: preview ) { - ThemeImageLabel(Strings.Global.remove, .contextRemove) + ThemeImageLabel(Strings.Global.Actions.remove, .contextRemove) } } } diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift index 002c4cf0..7b83ec2c 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileDuplicateButton.swift @@ -44,8 +44,8 @@ struct ProfileDuplicateButton