diff --git a/Plugins/Wox.Plugin.CMD/Wox.Plugin.CMD.csproj b/Plugins/Wox.Plugin.CMD/Wox.Plugin.CMD.csproj
index 641215ff73..e7e53944d4 100644
--- a/Plugins/Wox.Plugin.CMD/Wox.Plugin.CMD.csproj
+++ b/Plugins/Wox.Plugin.CMD/Wox.Plugin.CMD.csproj
@@ -77,6 +77,11 @@
Designer
PreserveNewest
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
diff --git a/Plugins/Wox.Plugin.Folder/FolderPlugin.cs b/Plugins/Wox.Plugin.Folder/FolderPlugin.cs
index 3b8ddaeca1..809e90f9fb 100644
--- a/Plugins/Wox.Plugin.Folder/FolderPlugin.cs
+++ b/Plugins/Wox.Plugin.Folder/FolderPlugin.cs
@@ -3,19 +3,20 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
+using System.Reflection;
using System.Windows;
using Control = System.Windows.Controls.Control;
namespace Wox.Plugin.Folder
{
- public class FolderPlugin : IPlugin, ISettingProvider
+ public class FolderPlugin : IPlugin, ISettingProvider,IPluginI18n
{
private static List driverNames;
private PluginInitContext context;
public Control CreateSettingPanel()
{
- return new FileSystemSettings();
+ return new FileSystemSettings(context);
}
public void Init(PluginInitContext context)
@@ -183,5 +184,10 @@ namespace Wox.Plugin.Folder
return results;
}
+
+ public string GetLanguagesFolder()
+ {
+ return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Languages");
+ }
}
}
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml b/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml
index 8a0c916d6a..4f2270dbd6 100644
--- a/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml
+++ b/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml
@@ -4,7 +4,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300">
+ d:DesignHeight="300" d:DesignWidth="500">
@@ -13,7 +13,7 @@
-
+
@@ -24,9 +24,9 @@
-
-
-
+
+
+
diff --git a/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml.cs b/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml.cs
index 44a80da0a1..6fda77e312 100644
--- a/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml.cs
+++ b/Plugins/Wox.Plugin.Folder/FolderPluginSettings.xaml.cs
@@ -13,8 +13,11 @@ namespace Wox.Plugin.Folder
///
public partial class FileSystemSettings : UserControl
{
- public FileSystemSettings()
+ PluginInitContext context;
+
+ public FileSystemSettings(PluginInitContext context)
{
+ this.context = context;
InitializeComponent();
lbxFolders.ItemsSource = FolderStorage.Instance.FolderLinks;
}
@@ -29,7 +32,8 @@ namespace Wox.Plugin.Folder
}
else
{
- MessageBox.Show("Please select a folder link!");
+ string warning = context.API.GetTranslation("wox_plugin_folder_select_folder_link_warning");
+ MessageBox.Show(warning);
}
}
@@ -52,7 +56,8 @@ namespace Wox.Plugin.Folder
}
else
{
- MessageBox.Show("Please select a folder link!");
+ string warning = context.API.GetTranslation("wox_plugin_folder_select_folder_link_warning");
+ MessageBox.Show(warning);
}
}
diff --git a/Plugins/Wox.Plugin.Folder/Languages/en.xaml b/Plugins/Wox.Plugin.Folder/Languages/en.xaml
new file mode 100644
index 0000000000..7ad2760390
--- /dev/null
+++ b/Plugins/Wox.Plugin.Folder/Languages/en.xaml
@@ -0,0 +1,11 @@
+
+
+ Delete
+ Edit
+ Add
+ Folder Path
+ Please select a folder link
+
+
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.Folder/Languages/zh-cn.xaml b/Plugins/Wox.Plugin.Folder/Languages/zh-cn.xaml
new file mode 100644
index 0000000000..745f49a5a2
--- /dev/null
+++ b/Plugins/Wox.Plugin.Folder/Languages/zh-cn.xaml
@@ -0,0 +1,11 @@
+
+
+ 删除
+ 编辑
+ 添加
+ 文件夹路径
+ 请选择一个文件夹
+
+
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.Folder/Languages/zh-tw.xaml b/Plugins/Wox.Plugin.Folder/Languages/zh-tw.xaml
new file mode 100644
index 0000000000..4d718e3eb6
--- /dev/null
+++ b/Plugins/Wox.Plugin.Folder/Languages/zh-tw.xaml
@@ -0,0 +1,11 @@
+
+
+ 刪除
+ 編輯
+ 添加
+ 文件夾路徑
+ 請選擇一個文件夾
+
+
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj b/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj
index 283f2e25b9..9af75f72b3 100644
--- a/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj
+++ b/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj
@@ -1,105 +1,120 @@
-
-
-
-
- Debug
- AnyCPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}
- Library
- Properties
- Wox.Plugin.Folder
- Wox.Plugin.Folder
- v3.5
- 512
- ..\..\
- true
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.Folder\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- False
- ..\..\packages\log4net.2.0.3\lib\net35-full\log4net.dll
-
-
- False
- ..\..\packages\Newtonsoft.Json.6.0.7\lib\net35\Newtonsoft.Json.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- FolderPluginSettings.xaml
-
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
-
-
-
-
- 这台计算机上缺少此项目引用的 NuGet 程序包。启用“NuGet 程序包还原”可下载这些程序包。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。
-
-
-
-
+
+
+
+
+ Debug
+ AnyCPU
+ {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}
+ Library
+ Properties
+ Wox.Plugin.Folder
+ Wox.Plugin.Folder
+ v3.5
+ 512
+ ..\..\
+ true
+
+
+ true
+ full
+ false
+ ..\..\Output\Debug\Plugins\Wox.Plugin.Folder\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\..\packages\log4net.2.0.3\lib\net35-full\log4net.dll
+
+
+ False
+ ..\..\packages\Newtonsoft.Json.6.0.7\lib\net35\Newtonsoft.Json.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ FolderPluginSettings.xaml
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+
+ {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
+ Wox.Infrastructure
+
+
+ {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
+ Wox.Plugin
+
+
+
+
+ PreserveNewest
+
+
+
+
+
+
+ 这台计算机上缺少此项目引用的 NuGet 程序包。启用“NuGet 程序包还原”可下载这些程序包。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。
+
+
+
+
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj b/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj
index 371c98697e..05eb883153 100644
--- a/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj
+++ b/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj
@@ -1,131 +1,136 @@
-
-
-
-
- Debug
- AnyCPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}
- Library
- Properties
- Wox.Plugin.Program
- Wox.Plugin.Program
- v3.5
- 512
- ..\..\
- true
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.Program\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- ..\..\packages\log4net.2.0.3\lib\net35-full\log4net.dll
-
-
- False
- ..\..\packages\Newtonsoft.Json.6.0.7\lib\net35\Newtonsoft.Json.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ProgramSetting.xaml
-
-
-
-
-
-
-
-
- ProgramSuffixes.xaml
-
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
-
-
-
- 这台计算机上缺少此项目引用的 NuGet 程序包。启用“NuGet 程序包还原”可下载这些程序包。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。
-
-
-
-
+
+
+
+
+ Debug
+ AnyCPU
+ {FDB3555B-58EF-4AE6-B5F1-904719637AB4}
+ Library
+ Properties
+ Wox.Plugin.Program
+ Wox.Plugin.Program
+ v3.5
+ 512
+ ..\..\
+ true
+
+
+ true
+ full
+ false
+ ..\..\Output\Debug\Plugins\Wox.Plugin.Program\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ ..\..\packages\log4net.2.0.3\lib\net35-full\log4net.dll
+
+
+ False
+ ..\..\packages\Newtonsoft.Json.6.0.7\lib\net35\Newtonsoft.Json.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProgramSetting.xaml
+
+
+
+
+
+
+
+
+ ProgramSuffixes.xaml
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+ PreserveNewest
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+
+
+ {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
+ Wox.Infrastructure
+
+
+ {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
+ Wox.Plugin
+
+
+
+
+
+
+
+ 这台计算机上缺少此项目引用的 NuGet 程序包。启用“NuGet 程序包还原”可下载这些程序包。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。
+
+
+
+
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.WebSearch/Languages/zh-tw.xaml b/Plugins/Wox.Plugin.WebSearch/Languages/zh-tw.xaml
new file mode 100644
index 0000000000..e5ba22a86a
--- /dev/null
+++ b/Plugins/Wox.Plugin.WebSearch/Languages/zh-tw.xaml
@@ -0,0 +1,28 @@
+
+
+ 刪除
+ 編輯
+ 添加
+ 觸發關鍵字
+ URL
+ 啟用搜索建議
+ 請選擇一項
+ 你確定要刪除 {0} 嗎?
+
+
+
+ 標題
+ 啟用
+ 圖標
+ 選擇圖標
+ 取消
+ 非法的網頁搜索
+ 請輸入標題
+ 請輸入觸發關鍵字
+ 請輸入URL
+ 觸發關鍵字已經存在,請選擇一個新的關鍵字
+ 操作成功
+
+
\ No newline at end of file
diff --git a/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj b/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
index 28dcb62c5a..7062faa9ef 100644
--- a/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
+++ b/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
@@ -74,6 +74,11 @@
Designer
PreserveNewest
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
MSBuild:Compile
Designer