diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs
index 02195db98..90a3fb2e8 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs
@@ -38,7 +38,7 @@ namespace Flow.Launcher.Plugin.Explorer
contextMenus.Add(CreateOpenContainingFolderResult(record));
- contextMenus.Add(CreateOpenWindowsIndexingOptions(record));
+ contextMenus.Add(CreateOpenWindowsIndexingOptions());
if (record.ShowIndexState)
contextMenus.Add(new Result {Title = "From index search: " + (record.WindowsIndexed ? "Yes" : "No"),
@@ -49,7 +49,7 @@ namespace Flow.Launcher.Plugin.Explorer
var fileOrFolder = (record.Type == ResultType.File) ? "file" : "folder";
contextMenus.Add(new Result
{
- Title = "Copy path",
+ Title = Context.API.GetTranslation("plugin_explorer_copypath"),
SubTitle = $"Copy the current {fileOrFolder} path to clipboard",
Action = (context) =>
{
@@ -71,7 +71,7 @@ namespace Flow.Launcher.Plugin.Explorer
contextMenus.Add(new Result
{
- Title = $"Copy {fileOrFolder}",
+ Title = Context.API.GetTranslation("plugin_explorer_copyfilefolder") + $" {fileOrFolder}",
SubTitle = $"Copy the {fileOrFolder} to clipboard",
Action = (context) =>
{
@@ -95,8 +95,8 @@ namespace Flow.Launcher.Plugin.Explorer
if (record.Type == ResultType.File || record.Type == ResultType.Folder)
contextMenus.Add(new Result
{
- Title = $"Delete {fileOrFolder}",
- SubTitle = $"Delete the selected {fileOrFolder}",
+ Title = Context.API.GetTranslation("plugin_explorer_deletefilefolder") + $" {fileOrFolder}",
+ SubTitle = Context.API.GetTranslation("plugin_explorer_deletefilefolder_subtitle") + $" {fileOrFolder}",
Action = (context) =>
{
try
@@ -122,7 +122,8 @@ namespace Flow.Launcher.Plugin.Explorer
if (record.Type == ResultType.File && CanRunAsDifferentUser(record.FullPath))
contextMenus.Add(new Result
{
- Title = "Run as different user",
+ Title = Context.API.GetTranslation("plugin_explorer_runasdifferentuser"),
+ SubTitle = Context.API.GetTranslation("plugin_explorer_runasdifferentuser_subtitle"),
Action = (context) =>
{
try
@@ -149,8 +150,8 @@ namespace Flow.Launcher.Plugin.Explorer
{
return new Result
{
- Title = "Open containing folder",
- SubTitle = "Opens the location that contains the file or folder",
+ Title = Context.API.GetTranslation("plugin_explorer_opencontainingfolder"),
+ SubTitle = Context.API.GetTranslation("plugin_explorer_opencontainingfolder_subtitle"),
Action = _ =>
{
try
@@ -173,9 +174,11 @@ namespace Flow.Launcher.Plugin.Explorer
private Result CreateOpenWithEditorResult(SearchResult record)
{
- string editorPath = "notepad.exe"; // TODO add the ability to create a custom editor
+ string editorPath = "Notepad.exe"; // TODO add the ability to create a custom editor
+
+ var name = Context.API.GetTranslation("plugin_explorer_openwitheditor")
+ + " " + Path.GetFileNameWithoutExtension(editorPath);
- var name = "Open With Editor: " + Path.GetFileNameWithoutExtension(editorPath);
return new Result
{
Title = name,
@@ -202,8 +205,8 @@ namespace Flow.Launcher.Plugin.Explorer
{
return new Result
{
- Title = "Exclude current and sub-directories from index search",
- SubTitle = "Path: " + record.FullPath,
+ Title = Context.API.GetTranslation("plugin_explorer_excludefromindexsearch"),
+ SubTitle = Context.API.GetTranslation("plugin_explorer_path") + " " + record.FullPath,
Action = _ =>
{
if(!Settings.IndexSearchExcludedSubdirectoryPaths.Any(x => x.Path == record.FullPath))
@@ -215,7 +218,9 @@ namespace Flow.Launcher.Plugin.Explorer
Task.Run(() =>
{
- Context.API.ShowMsg("Excluded from Index Search", "Path: " + record.FullPath, iconPath);
+ Context.API.ShowMsg(Context.API.GetTranslation("plugin_explorer_excludedfromindexsearch_msg"),
+ Context.API.GetTranslation("plugin_explorer_path") +
+ " " + record.FullPath, iconPath);
// so the new path can be persisted to storage and not wait till next ViewModel save.
Context.API.SaveAppAllSettings();
@@ -227,12 +232,12 @@ namespace Flow.Launcher.Plugin.Explorer
};
}
- private Result CreateOpenWindowsIndexingOptions(SearchResult record)
+ private Result CreateOpenWindowsIndexingOptions()
{
return new Result
{
- Title = "Open Windows Indexing Options",
- SubTitle = "Manage indexed files and folders",
+ Title = Context.API.GetTranslation("plugin_explorer_openindexingoptions"),
+ SubTitle = Context.API.GetTranslation("plugin_explorer_openindexingoptions_subtitle"),
Action = _ =>
{
try
@@ -249,7 +254,7 @@ namespace Flow.Launcher.Plugin.Explorer
}
catch (Exception e)
{
- var message = $"Failed to open Windows Indexing Options";
+ var message = Context.API.GetTranslation("plugin_explorer_openindexingoptions_errormsg");
LogException(message, e);
Context.API.ShowMsg(message);
return false;
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj b/Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj
index 3025f8fb7..bd2a047eb 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj
@@ -60,6 +60,42 @@
PreserveNewest
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
+
+
+ MSBuild:Compile
+ Designer
+ PreserveNewest
+
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml
new file mode 100644
index 000000000..2209b5bed
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/de.xaml
@@ -0,0 +1,14 @@
+
+
+
+ Löschen
+ Bearbeiten
+ Hinzufügen
+
+
+ Bitte wähle eine Ordnerverknüpfung
+ Bist du sicher {0} zu löschen?
+
+
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
new file mode 100644
index 000000000..0bbd57aac
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
@@ -0,0 +1,39 @@
+
+
+
+ Please select a folder link
+ Are you sure you want to delete {0}?
+
+
+ Delete
+ Edit
+ Add
+ Quick Folder Access Paths
+ Index Search Excluded Paths
+ Indexing Options
+
+
+
+ Explorer
+ Search and manage files and folders. Explorer utilises Windows Index Search
+
+
+ Copy path
+ Copy
+ Delete
+ Path:
+ Delete the selected
+ Run as different user
+ Run the selected using a different user account
+ Open containing folder
+ Opens the location that contains the file or folder
+ Open With Editor:
+ Exclude current and sub-directories from index search
+ Excluded from Index Search
+ Open Windows Indexing Options
+ Manage indexed files and folders
+ Failed to open Windows Indexing Options
+
+
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml
new file mode 100644
index 000000000..9a6b38f6f
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/pl.xaml
@@ -0,0 +1,14 @@
+
+
+
+ Usuń
+ Edytuj
+ Dodaj
+
+
+ Musisz wybrać któryś folder z listy
+ Czy jesteś pewien że chcesz usunąć {0}?
+
+
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml
new file mode 100644
index 000000000..d6744fdd4
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/tr.xaml
@@ -0,0 +1,14 @@
+
+
+
+ Sil
+ Düzenle
+ Ekle
+
+
+ Lütfen bir klasör bağlantısı seçin
+ {0} bağlantısını silmek istediğinize emin misiniz?
+
+
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-cn.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-cn.xaml
new file mode 100644
index 000000000..7f516861e
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-cn.xaml
@@ -0,0 +1,14 @@
+
+
+
+ 删除
+ 编辑
+ 添加
+
+
+ 请选择一个文件夹
+ 你确定要删除{0}吗?
+
+
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml
new file mode 100644
index 000000000..1455aa676
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/zh-tw.xaml
@@ -0,0 +1,14 @@
+
+
+
+ 刪除
+ 編輯
+ 新增
+
+
+ 請選擇一個資料夾
+ 你確認要刪除{0}嗎?
+
+
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
index b751445bd..64be3345d 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
@@ -7,7 +7,7 @@ using System.Windows.Controls;
namespace Flow.Launcher.Plugin.Explorer
{
- public class Main : ISettingProvider, IPlugin, ISavable, IContextMenu //, IPluginI18n <=== do later
+ public class Main : ISettingProvider, IPlugin, ISavable, IContextMenu, IPluginI18n
{
internal PluginInitContext Context { get; set; }
@@ -49,5 +49,15 @@ namespace Flow.Launcher.Plugin.Explorer
{
viewModel.Save();
}
+
+ public string GetTranslatedPluginTitle()
+ {
+ return Context.API.GetTranslation("plugin_explorer_plugin_name");
+ }
+
+ public string GetTranslatedPluginDescription()
+ {
+ return Context.API.GetTranslation("plugin_explorer_plugin_description");
+ }
}
}
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
index b2f999111..5ba1a063b 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
@@ -25,7 +25,7 @@
-
-
-
+
-
-
-
+
+
+
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs
index b6882073b..11c8f6514 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs
@@ -110,7 +110,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
if (selectedRow != null)
{
- string msg = string.Format(viewModel.Context.API.GetTranslation("flowlauncher_plugin_folder_delete_folder_link"), selectedRow.Path);
+ string msg = string.Format(viewModel.Context.API.GetTranslation("plugin_explorer_delete_folder_link"), selectedRow.Path);
if (MessageBox.Show(msg, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
@@ -125,7 +125,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
}
else
{
- string warning = viewModel.Context.API.GetTranslation("flowlauncher_plugin_folder_select_folder_link_warning");
+ string warning = viewModel.Context.API.GetTranslation("plugin_explorer_select_folder_link_warning");
MessageBox.Show(warning);
}
}
@@ -157,7 +157,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
}
else
{
- string warning = viewModel.Context.API.GetTranslation("flowlauncher_plugin_folder_select_folder_link_warning");
+ string warning = viewModel.Context.API.GetTranslation("plugin_explorer_select_folder_link_warning");
MessageBox.Show(warning);
}
}
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json b/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
index 35e8cc3ac..10b3edd96 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
@@ -2,7 +2,7 @@
"ID": "572be03c74c642baae319fc283e561a8",
"ActionKeyword": "*",
"Name": "Explorer",
- "Description": "Search for and manage files and folders. Explorer utilises Windows Index Search",
+ "Description": "Search and manage files and folders. Explorer utilises Windows Index Search",
"Author": "Jeremy Wu",
"Version": "1.0.0",
"Language": "csharp",