mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
update plugin languages
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
using Wox.Core.Exception;
|
||||
using Wox.Core.UI;
|
||||
using Wox.Core.UserSettings;
|
||||
using Wox.Infrastructure;
|
||||
using Wox.Infrastructure.Http;
|
||||
@@ -91,6 +92,9 @@ namespace Wox.Core.Plugin
|
||||
plugins.AddRange(new CSharpPluginLoader().LoadPlugin(pluginMetadatas));
|
||||
plugins.AddRange(new JsonRPCPluginLoader<PythonPlugin>().LoadPlugin(pluginMetadatas));
|
||||
|
||||
//load plugin i18n languages
|
||||
ResourceMerger.ApplyPluginLanguages();
|
||||
|
||||
foreach (PluginPair pluginPair in plugins)
|
||||
{
|
||||
PluginPair pair = pluginPair;
|
||||
|
||||
@@ -13,10 +13,10 @@ namespace Wox.Core.UI
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Clear();
|
||||
ApplyPluginLanguages();
|
||||
ApplyUIResources();
|
||||
ApplyThemeAndLanguageResources();
|
||||
}
|
||||
|
||||
private static void ApplyUIResources()
|
||||
private static void ApplyThemeAndLanguageResources()
|
||||
{
|
||||
var UIResourceType = typeof(IUIResource);
|
||||
var UIResources = AppDomain.CurrentDomain.GetAssemblies()
|
||||
@@ -30,7 +30,7 @@ namespace Wox.Core.UI
|
||||
}
|
||||
}
|
||||
|
||||
private static void ApplyPluginLanguages()
|
||||
public static void ApplyPluginLanguages()
|
||||
{
|
||||
var pluginI18nType = typeof(IPluginI18n);
|
||||
var pluginI18ns = AppDomain.CurrentDomain.GetAssemblies()
|
||||
|
||||
Reference in New Issue
Block a user