From b2090bc80830836f1b909a98db409bff281e196e Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sat, 11 Jun 2022 03:09:32 -0500 Subject: [PATCH] Remove Some Obsolete/Duplicate Entry in TaskLink --- .../Helper/TranslationHelper.cs | 10 +- .../Properties/Resources.Designer.cs | 9 + .../Properties/Resources.resx | 3 + .../WindowsSettings.json | 355 +----------------- 4 files changed, 14 insertions(+), 363 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/TranslationHelper.cs b/Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/TranslationHelper.cs index 3c4078e49..327d70296 100644 --- a/Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/TranslationHelper.cs +++ b/Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/TranslationHelper.cs @@ -41,7 +41,7 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Helper if (string.IsNullOrEmpty(type)) { - Log.Warn($"Resource string for [{settings.Name}] not found", typeof(Main)); + Log.Warn($"Resource string for [{settings.Type}] not found", typeof(Main)); } @@ -49,10 +49,6 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Helper if (!string.IsNullOrEmpty(settings.Note)) { var note = Resources.ResourceManager.GetString(settings.Note); - if (string.IsNullOrEmpty(note)) - { - Log.Warn($"Resource string for [{settings.Note}] not found", typeof(Main)); - } settings.Note = note ?? settings.Note ?? string.Empty; } @@ -68,10 +64,6 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Helper } var translatedAltName = Resources.ResourceManager.GetString(altName); - if (string.IsNullOrEmpty(translatedAltName)) - { - Log.Warn($"Resource string for [{altName}] not found", typeof(Main)); - } translatedAltNames.Add(translatedAltName ?? altName); } diff --git a/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.Designer.cs b/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.Designer.cs index 7bc45320b..e1c5e3985 100644 --- a/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.Designer.cs +++ b/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.Designer.cs @@ -5371,6 +5371,15 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to TaskLink. + /// + public static string TaskLink { + get { + return ResourceManager.GetString("TaskLink", resourceCulture); + } + } + /// /// Looks up a localized string similar to Task Manager. /// diff --git a/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.resx b/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.resx index bc03349f0..6b2dc852b 100644 --- a/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.resx +++ b/Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/Resources.resx @@ -2505,4 +2505,7 @@ Control Panel + + TaskLink + \ No newline at end of file diff --git a/Plugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json b/Plugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json index 0785173a7..6c4f23981 100644 --- a/Plugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json +++ b/Plugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json @@ -3850,36 +3850,6 @@ ] ] }, - { - "Name": "Set up ODBC data sources", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\odbcad32.exe", - "Keywords": [ - [ - "datum", - "odbc", - "data-base", - "database" - ], - [ - "activate", - "add", - "begin", - "enable", - "intsall", - "invoke", - "make", - "up", - "setting", - "setup", - "start", - "on", - "turnon", - "unlock" - ] - ] - }, { "Name": "SetUpIscsiInitiator", "Area": null, @@ -3938,27 +3908,6 @@ ] ] }, - { - "Name": "View event logs", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\mmc.exe %windir%\\system32\\eventvwr.msc", - "Keywords": [ - [ - "viewer", - "events", - "tracker", - "eventviewer" - ], - [ - "check", - "list", - "see", - "show", - "viewing" - ] - ] - }, { "Name": "ViewLocalServices", "Area": null, @@ -4162,41 +4111,6 @@ ] ] }, - { - "Name": "Turn Windows features on or off", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ServerManager.exe -arw", - "Keywords": [ - [ - "activate", - "add", - "begin", - "enable", - "intsall", - "invoke", - "make", - "up", - "setting", - "setup", - "start", - "on", - "turnon", - "unlock" - ], - [ - "accessories", - "accessory", - "components", - "feature", - "features", - "programs", - "tools", - "utilities", - "utility" - ] - ] - }, { "Name": "ShowWhichProgramsAreInstalledOnYourComputer", "Area": null, @@ -5673,58 +5587,6 @@ ] ] }, - { - "Name": "Set the time and date", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\rundll32.exe shell32.dll,Control_RunDLL timedate.cpl", - "Keywords": [ - [ - "adjust", - "ajust", - "alter", - "change", - "edit", - "modify", - "replace", - "reset", - "set", - "switch" - ], - [ - "days", - "calendar", - "clock", - "times", - "time", - "day" - ], - [ - "ddmmyyyy", - "hour", - "12-hour", - "24-hour", - "clock", - "date", - "day", - "dd", - "display", - "formating", - "formatting", - "four", - "digit", - "long", - "mmddyyyy", - "month", - "properties", - "short", - "time", - "two", - "year", - "yyyy" - ] - ] - }, { "Name": "ChangeDefaultSettingsForMediaOrDevices", "Area": null, @@ -7445,52 +7307,6 @@ ] ] }, - { - "Name": "Change mouse click settings", - "Area": null, - "Type": "TaskLink", - "Command": "%SystemRoot%\\System32\\control.exe -name Microsoft.Mouse", - "Keywords": [ - [ - "adjust", - "ajust", - "alter", - "change", - "edit", - "modify", - "replace", - "reset", - "set", - "switch" - ], - [ - "lock", - "clicking", - "doubleclick", - "double-click", - "single-click" - ], - [ - "mice", - "mouses", - "pointer" - ], - [ - "set-up", - "confg", - "configuration", - "configure", - "define", - "management", - "options", - "personalise", - "personalize", - "up", - "settings", - "setup" - ] - ] - }, { "Name": "ChangeMouseWheelSettings", "Area": null, @@ -8928,21 +8744,6 @@ ] ] }, - { - "Name": "Microsoft Pinyin SimpleFast Options", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imesc\\imscprop.exe /EXPRESS", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "pinyin", - "mspy" - ] - ] - }, { "Name": "MicrosoftNewPhoneticSettings", "Area": null, @@ -8957,34 +8758,6 @@ ] ] }, - { - "Name": "Microsoft New Phonetic Settings", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imetc\\imtcprop.exe /NPH", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "phonetic" - ] - ] - }, - { - "Name": "Microsoft New Phonetic Settings", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imetc\\imtcprop.exe /NPH", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "phonetic" - ] - ] - }, { "Name": "MicrosoftChangjieSettings", "Area": null, @@ -8999,34 +8772,6 @@ ] ] }, - { - "Name": "Microsoft ChangJie Settings", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imetc\\imtcprop.exe /CJ", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "changjie" - ] - ] - }, - { - "Name": "Microsoft ChangJie Settings", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imetc\\imtcprop.exe /CJ", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "changjie" - ] - ] - }, { "Name": "MicrosoftQuickSettings", "Area": null, @@ -9041,34 +8786,6 @@ ] ] }, - { - "Name": "Microsoft Quick Settings", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imetc\\imtcprop.exe /QK", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "quick" - ] - ] - }, - { - "Name": "Microsoft Quick Settings", - "Area": null, - "Type": "TaskLink", - "Command": "%windir%\\system32\\ime\\imetc\\imtcprop.exe /QK", - "Keywords": [ - [ - "msime", - "ime", - "settings", - "quick" - ] - ] - }, { "Name": "MicrosoftIMERegisterWordJapanese", "Area": null, @@ -11107,7 +10824,7 @@ ] }, { - "Name": "Auto-hide the taskbar", + "Name": "AutoHideTheTaskbar", "Area": "Personalization", "Type": "AppSettingsApp", "Command": "%SystemRoot%\\System32\\control.exe -name Microsoft.Taskbar", @@ -11441,48 +11158,6 @@ "Name": "ChangeAccountType", "Area": null, "Type": "TaskLink", - "Command": "%windir%\\system32\\netplwiz.exe", - "Keywords": [ - [ - "accounts", - "alias", - "login", - "useraccount", - "useracount", - "users" - ], - [ - "adjust", - "ajust", - "alter", - "change", - "edit", - "modify", - "replace", - "reset", - "set", - "switch" - ], - [ - "add", - "create", - "make", - "new" - ], - [ - "names", - "rename", - "renaming" - ], - [ - "users" - ] - ] - }, - { - "Name": "Change account type", - "Area": null, - "Type": "TaskLink", "Command": "%SystemRoot%\\System32\\control.exe -name Microsoft.UserAccounts /page pageAdminTasks", "Keywords": [ [ @@ -13721,34 +13396,6 @@ ] ] }, - { - "Name": "Find and fix problems", - "Area": null, - "Type": "TaskLink", - "Command": "%SystemRoot%\\System32\\control.exe -name Microsoft.Troubleshooting", - "Keywords": [ - [ - "troubleshoot", - "shoot", - "troubleshooter", - "trubleshoot", - "help", - "solution" - ], - [ - "diagnose", - "diagnostics", - "diagnosis", - "find", - "problems", - "analyse", - "analyze", - "analysis", - "troubleshooter", - "errors" - ] - ] - }, { "Name": "FindAndFixAudioPlaybackProblems", "Area": null,