From 75440f7b5540fd760c686b0a51028280771b325d Mon Sep 17 00:00:00 2001 From: Alin Date: Tue, 15 Oct 2024 16:29:08 -0600 Subject: [PATCH] Add FinderOpen extension to localizable --- FinderOpen/FinderOpen.swift | 2 +- Pearcleaner/Resources/Localizable.xcstrings | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/FinderOpen/FinderOpen.swift b/FinderOpen/FinderOpen.swift index 225e71b..7ef593f 100644 --- a/FinderOpen/FinderOpen.swift +++ b/FinderOpen/FinderOpen.swift @@ -26,7 +26,7 @@ class FinderOpen: FIFinderSync { if let selectedItemURLs = FIFinderSyncController.default().selectedItemURLs(), selectedItemURLs.count == 1, selectedItemURLs.first?.pathExtension == "app" { // Add menu item if the selected item is a .app file - let menuItem = NSMenuItem(title: "Pearcleaner Uninstall", action: #selector(openInMyApp), keyEquivalent: "") + let menuItem = NSMenuItem(title: String(localized: "Pearcleaner Uninstall"), action: #selector(openInMyApp), keyEquivalent: "") if let appIcon = NSImage(named: "Icon") { menuItem.image = appIcon } else { diff --git a/Pearcleaner/Resources/Localizable.xcstrings b/Pearcleaner/Resources/Localizable.xcstrings index 63466fa..e2365d9 100644 --- a/Pearcleaner/Resources/Localizable.xcstrings +++ b/Pearcleaner/Resources/Localizable.xcstrings @@ -333,6 +333,9 @@ }, "Pearcleaner CLI support" : { + }, + "Pearcleaner Uninstall" : { + }, "Pin popover window on top" : {