[PowerToys Run] Remove unused wox resources and move hardcoded strings to resx file (#6181)

* Removed xaml files, added resx file and removed references for PowerLauncher project

* Added resx file for wox.plugin

* Moved Calculator resources to resx

* Migrated resources for Folder and Indexer plugins

* Migrated resources for Program and Shell plugin

* Migrated resources for URI and Window Walker

* Removed GetTranslation, tests need to be refactored

* Removed internationalization classes

* Removed Wox.Core.Resource references

* Fixed Programs plugin tests

* Fixed tests

* Removed language xaml files from installer

* Added locProject.json files

* Fixed resource not found error

* Remove unused strings from PowerLauncher

* Removed all unused strings

* Reverted addition of resx file for Wox.Plugin

* Added more resources for Folder plugin

* Added resources for Folder and Indexer plugin

* Added resources for Program, Shell, Uri and WW plugins

* Changed string from Wox to PT Run

* managed common files
This commit is contained in:
Arjun Balgovind
2020-09-08 11:51:24 -07:00
committed by GitHub
parent cd906b0a6f
commit 8ea8db7994
22 changed files with 206 additions and 1625 deletions

View File

@@ -119,7 +119,7 @@ namespace Microsoft.Plugin.Indexer
Result r = new Result();
r.Title = searchResult.Title;
r.SubTitle = "Search: " + path;
r.SubTitle = Properties.Resources.Microsoft_plugin_indexer_subtitle_header + ": " + path;
r.IcoPath = path;
r.ToolTipData = new ToolTipData(toolTipTitle, toolTipText);
r.Action = c =>
@@ -138,7 +138,7 @@ namespace Microsoft.Plugin.Indexer
catch (Win32Exception)
{
var name = $"Plugin: {_context.CurrentPluginMetadata.Name}";
var msg = "Can't Open this file";
var msg = Properties.Resources.Microsoft_plugin_indexer_file_open_failed;
_context.API.ShowMsg(name, msg, string.Empty);
hide = false;
}
@@ -210,14 +210,14 @@ namespace Microsoft.Plugin.Indexer
// Set the Plugin Title
public string GetTranslatedPluginTitle()
{
return "Windows Indexer Plugin";
return Properties.Resources.Microsoft_plugin_indexer_plugin_name;
}
// TODO: Localize the string
// Set the plugin Description
public string GetTranslatedPluginDescription()
{
return "Returns files and folders";
return Properties.Resources.Microsoft_plugin_indexer_plugin_description;
}
public List<ContextMenuResult> LoadContextMenus(Result selectedResult)