From eb82a6767175dc76c18709d044ffba042891c06d Mon Sep 17 00:00:00 2001 From: Ahnaf Mahmud <44692189+infinitepower18@users.noreply.github.com> Date: Tue, 2 Apr 2024 07:25:52 +0100 Subject: [PATCH] Update menu bar and copyright (#2025) * Update menu bar * Update copyright --- IceCubesApp.xcodeproj/project.pbxproj | 2 + IceCubesApp/App/Main/IceCubesApp+Menu.swift | 6 + IceCubesApp/App/Main/IceCubesApp.swift | 9 +- IceCubesApp/App/Tabs/Settings/AboutView.swift | 2 +- .../Localization/Localizable.xcstrings | 156 +++++++++++++++--- 5 files changed, 154 insertions(+), 21 deletions(-) diff --git a/IceCubesApp.xcodeproj/project.pbxproj b/IceCubesApp.xcodeproj/project.pbxproj index b10da56d..0f41bbfb 100644 --- a/IceCubesApp.xcodeproj/project.pbxproj +++ b/IceCubesApp.xcodeproj/project.pbxproj @@ -1209,6 +1209,7 @@ INFOPLIST_KEY_CFBundleDisplayName = "Ice Cubes"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.social-networking"; INFOPLIST_KEY_NSCameraUsageDescription = "Upload photos & videos to attach to your Mastodon posts."; + INFOPLIST_KEY_NSHumanReadableCopyright = "© 2024 Thomas Ricouard"; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload photos & videos to Mastodon"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; @@ -1263,6 +1264,7 @@ INFOPLIST_KEY_CFBundleDisplayName = "Ice Cubes"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.social-networking"; INFOPLIST_KEY_NSCameraUsageDescription = "Upload photos & videos to attach to your Mastodon posts."; + INFOPLIST_KEY_NSHumanReadableCopyright = "© 2024 Thomas Ricouard"; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload photos & videos to Mastodon"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; diff --git a/IceCubesApp/App/Main/IceCubesApp+Menu.swift b/IceCubesApp/App/Main/IceCubesApp+Menu.swift index 7d8cf538..d8a1e1bf 100644 --- a/IceCubesApp/App/Main/IceCubesApp+Menu.swift +++ b/IceCubesApp/App/Main/IceCubesApp+Menu.swift @@ -54,5 +54,11 @@ extension IceCubesApp { } .keyboardShortcut("l", modifiers: .shift) } + CommandGroup(replacing: .help) { + Button("menu.help.github") { + let url = URL(string: "https://github.com/Dimillian/IceCubesApp/issues")! + UIApplication.shared.open(url) + } + } } } diff --git a/IceCubesApp/App/Main/IceCubesApp.swift b/IceCubesApp/App/Main/IceCubesApp.swift index 1d932d80..e9205314 100644 --- a/IceCubesApp/App/Main/IceCubesApp.swift +++ b/IceCubesApp/App/Main/IceCubesApp.swift @@ -79,7 +79,7 @@ struct IceCubesApp: App { } } -class AppDelegate: NSObject, UIApplicationDelegate { +class AppDelegate: UIResponder, UIApplicationDelegate { func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { @@ -113,4 +113,11 @@ class AppDelegate: NSObject, UIApplicationDelegate { } return configuration } + + override func buildMenu(with builder: UIMenuBuilder) { + super.buildMenu(with: builder) + builder.remove(menu: .document) + builder.remove(menu: .toolbar) + builder.remove(menu: .sidebar) + } } diff --git a/IceCubesApp/App/Tabs/Settings/AboutView.swift b/IceCubesApp/App/Tabs/Settings/AboutView.swift index a24d0198..e75e8461 100644 --- a/IceCubesApp/App/Tabs/Settings/AboutView.swift +++ b/IceCubesApp/App/Tabs/Settings/AboutView.swift @@ -57,7 +57,7 @@ struct AboutView: View { Label("settings.support.terms-of-use", systemImage: "checkmark.shield") } } footer: { - Text("\(versionNumber)©2023 Thomas Ricouard") + Text("\(versionNumber)© 2024 Thomas Ricouard") } #if !os(visionOS) .listRowBackground(theme.primaryBackgroundColor) diff --git a/IceCubesApp/Resources/Localization/Localizable.xcstrings b/IceCubesApp/Resources/Localization/Localizable.xcstrings index fdec45f1..8c57bc71 100644 --- a/IceCubesApp/Resources/Localization/Localizable.xcstrings +++ b/IceCubesApp/Resources/Localization/Localizable.xcstrings @@ -655,114 +655,114 @@ } } }, - "%@©2023 Thomas Ricouard" : { + "%@© 2024 Thomas Ricouard" : { "localizations" : { "be" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "ca" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "de" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "en-GB" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "eu" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "it" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "ja" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "ko" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "nb" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "nl" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "pl" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "pt-BR" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "tr" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "uk" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } }, "zh-Hant" : { "stringUnit" : { "state" : "translated", - "value" : "%@©2023 Thomas Ricouard" + "value" : "%@© 2024 Thomas Ricouard" } } } @@ -33901,6 +33901,124 @@ } } }, + "menu.help.github" : { + "localizations" : { + "be" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "ca" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "en-GB" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "eu" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "it" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "ja" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "nb" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "nl" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "pl" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "tr" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "uk" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + } + } + }, "menu.new-post" : { "comment" : "MARK: Menu", "localizations" : {