mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[Localization] Move PowerToys Run string resources from xaml files to resx (#6165)
* 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 * Reverted addition of resx file for Wox.Plugin
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Microsoft.Plugin.Folder
|
||||
|
||||
public Control CreateSettingPanel()
|
||||
{
|
||||
return new FileSystemSettings(_context.API, _settings);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void Init(PluginInitContext context)
|
||||
@@ -290,9 +290,9 @@ namespace Microsoft.Plugin.Folder
|
||||
{
|
||||
return new Result
|
||||
{
|
||||
Title = _context.API.GetTranslation("Microsoft_plugin_folder_truncation_warning_title"),
|
||||
Title = Properties.Resources.Microsoft_plugin_folder_truncation_warning_title,
|
||||
QueryTextDisplay = search,
|
||||
SubTitle = string.Format(CultureInfo.InvariantCulture, _context.API.GetTranslation("Microsoft_plugin_folder_truncation_warning_subtitle"), postTruncationCount, preTruncationCount),
|
||||
SubTitle = string.Format(CultureInfo.InvariantCulture, Properties.Resources.Microsoft_plugin_folder_truncation_warning_subtitle, postTruncationCount, preTruncationCount),
|
||||
IcoPath = warningIconPath,
|
||||
};
|
||||
}
|
||||
@@ -354,12 +354,12 @@ namespace Microsoft.Plugin.Folder
|
||||
|
||||
public string GetTranslatedPluginTitle()
|
||||
{
|
||||
return _context.API.GetTranslation("wox_plugin_folder_plugin_name");
|
||||
return Properties.Resources.wox_plugin_folder_plugin_name;
|
||||
}
|
||||
|
||||
public string GetTranslatedPluginDescription()
|
||||
{
|
||||
return _context.API.GetTranslation("wox_plugin_folder_plugin_description");
|
||||
return Properties.Resources.wox_plugin_folder_plugin_description;
|
||||
}
|
||||
|
||||
public List<ContextMenuResult> LoadContextMenus(Result selectedResult)
|
||||
|
||||
Reference in New Issue
Block a user