From ce60bcedb0b539f62e953c23003135c14d695069 Mon Sep 17 00:00:00 2001 From: Alekhya Date: Fri, 3 Jul 2020 09:42:44 -0700 Subject: [PATCH] Add keyboard shortcut in tooltip for context menu items (#4702) * Folder plugin - copy path * indexer plugin - localized * removed program plugin reference as it was not needed * program plugin localized * shell plugin localized * removed extra semi colon * Added loc files in other languages as well for indexer --- .../ContextMenuLoader.cs | 2 +- .../Microsoft.Plugin.Folder/Languages/de.xaml | 1 + .../Microsoft.Plugin.Folder/Languages/en.xaml | 1 + .../Microsoft.Plugin.Folder/Languages/pl.xaml | 3 +- .../Microsoft.Plugin.Folder/Languages/tr.xaml | 1 + .../Languages/zh-cn.xaml | 1 + .../Languages/zh-tw.xaml | 1 + .../ContextMenuLoader.cs | 4 +- .../Languages/de.xaml | 8 ++++ .../Languages/en.xaml | 8 ++++ .../Languages/ja.xaml | 8 ++++ .../Languages/pl.xaml | 8 ++++ .../Languages/tr.xaml | 8 ++++ .../Languages/zh-cn.xaml | 8 ++++ .../Languages/zh-tw.xaml | 8 ++++ .../Microsoft.Plugin.Indexer.csproj | 39 +++++++++++++++++++ .../Languages/de.xaml | 4 +- .../Languages/en.xaml | 4 +- .../Languages/ja.xaml | 4 +- .../Languages/pl.xaml | 4 +- .../Languages/tr.xaml | 4 +- .../Languages/zh-cn.xaml | 4 +- .../Languages/zh-tw.xaml | 4 +- .../Microsoft.Plugin.Shell/Languages/de.xaml | 2 +- .../Microsoft.Plugin.Shell/Languages/en.xaml | 2 +- .../Microsoft.Plugin.Shell/Languages/pl.xaml | 2 +- .../Microsoft.Plugin.Shell/Languages/tr.xaml | 2 +- .../Languages/zh-cn.xaml | 2 +- .../Languages/zh-tw.xaml | 2 +- 29 files changed, 125 insertions(+), 24 deletions(-) create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/de.xaml create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/en.xaml create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/ja.xaml create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/pl.xaml create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/tr.xaml create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-cn.xaml create mode 100644 src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-tw.xaml diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs index 8ebc5941d7..1efc804a07 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs @@ -37,7 +37,7 @@ namespace Microsoft.Plugin.Folder contextMenus.Add(new ContextMenuResult { PluginName = Assembly.GetExecutingAssembly().GetName().Name, - Title = "Copy path", + Title = _context.API.GetTranslation("Microsoft_plugin_folder_copy_path"), Glyph = "\xE8C8", FontFamily = "Segoe MDL2 Assets", SubTitle = $"Copy the current {fileOrFolder} path to clipboard", diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/de.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/de.xaml index d58189b346..11a51de494 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/de.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/de.xaml @@ -11,5 +11,6 @@ Ordner Öffne deine Lieblingsordner direkt von Wox aus + Copy path (Ctrl+C) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/en.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/en.xaml index 78190d1b89..5c309300c3 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/en.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/en.xaml @@ -11,5 +11,6 @@ Folder Open favorite folder from Wox directly + Copy path (Ctrl+C) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/pl.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/pl.xaml index 454b85036d..96621c7f11 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/pl.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/pl.xaml @@ -11,5 +11,6 @@ Foldery Otwórz ulubione foldery bezpośrednio z poziomu Woxa - + Copy path (Ctrl+C) + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/tr.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/tr.xaml index 8cf0c76535..8cc3c8f5e7 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/tr.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/tr.xaml @@ -11,5 +11,6 @@ Klasör Favori klasörünüzü doğrudan Wox'tan açın + Copy path (Ctrl+C) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-cn.xaml index 15df3d5c6e..494921cb3e 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-cn.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-cn.xaml @@ -11,5 +11,6 @@ 文件夹 在Wox中直接打开收藏的文件夹 + Copy path (Ctrl+C) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-tw.xaml index f87d8c14d4..f6513579f1 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-tw.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Languages/zh-tw.xaml @@ -11,5 +11,6 @@ 資料夾 在 Wox 中直接開啟收藏的資料夾 + Copy path (Ctrl+C) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/ContextMenuLoader.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/ContextMenuLoader.cs index 87ecd81529..9281e40fd8 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/ContextMenuLoader.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/ContextMenuLoader.cs @@ -42,7 +42,7 @@ namespace Microsoft.Plugin.Indexer contextMenus.Add(new ContextMenuResult { PluginName = Assembly.GetExecutingAssembly().GetName().Name, - Title = "Copy path", + Title = _context.API.GetTranslation("Microsoft_plugin_indexer_copy_path"), Glyph = "\xE8C8", FontFamily = "Segoe MDL2 Assets", SubTitle = $"Copy the current {fileOrFolder} path to clipboard", @@ -75,7 +75,7 @@ namespace Microsoft.Plugin.Indexer return new ContextMenuResult { PluginName = Assembly.GetExecutingAssembly().GetName().Name, - Title = "Open containing folder", + Title = _context.API.GetTranslation("Microsoft_plugin_indexer_open_containing_folder"), Glyph = "\xE838", FontFamily = "Segoe MDL2 Assets", AcceleratorKey = Key.E, diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/de.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/de.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/de.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/en.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/en.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/en.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/ja.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/ja.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/ja.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/pl.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/pl.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/pl.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/tr.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/tr.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/tr.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-cn.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-cn.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-tw.xaml new file mode 100644 index 0000000000..f3f4dfe682 --- /dev/null +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Languages/zh-tw.xaml @@ -0,0 +1,8 @@ + + + Copy path (Ctrl+C) + Open containing folder (Ctrl+Shift+E) + + \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj index f1470acfde..2143a86ebf 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Microsoft.Plugin.Indexer.csproj @@ -58,4 +58,43 @@ + + + MSBuild:Compile + Designer + 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/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/de.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/de.xaml index 097b1d65c7..fa78a9dca9 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/de.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/de.xaml @@ -28,8 +28,8 @@ Dateiendungen wurden erfolgreich aktualisiert Dateiendungen dürfen nicht leer sein - Als Administrator ausführen - Enthaltenden Ordner öffnen + Als Administrator ausführen (Ctrl+Shift+Enter) + Enthaltenden Ordner öffnen (Ctrl+Shift+E) Programm Suche Programme mit Wox diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/en.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/en.xaml index df1c646990..5701d63027 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/en.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/en.xaml @@ -32,8 +32,8 @@ File suffixes can't be empty Run As Different User - Run As Administrator - Open containing folder + Run As Administrator (Ctrl+Shift+Enter) + Open containing folder (Ctrl+Shift+E) Disable this program from displaying Program diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/ja.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/ja.xaml index 183e6c5115..cdb784b8c3 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/ja.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/ja.xaml @@ -29,8 +29,8 @@ Sucessfully update file suffixes File suffixes can't be empty - Run As Administrator - Open containing folder + Run As Administrator (Ctrl+Shift+Enter) + Open containing folder (Ctrl+Shift+E) Program Search programs in Wox diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/pl.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/pl.xaml index 1619773fab..603be8fc02 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/pl.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/pl.xaml @@ -28,8 +28,8 @@ Pomyślnie zaktualizowano rozszerzenia plików Musisz podać rozszerzenia plików - Uruchom jako administrator - Otwórz folder zawierający + Uruchom jako administrator (Ctrl+Shift+Enter) + Otwórz folder zawierający (Ctrl+Shift+E) Programy Szukaj i uruchamiaj programy z poziomu Woxa diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/tr.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/tr.xaml index 711210ed8f..ea181dbc01 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/tr.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/tr.xaml @@ -28,8 +28,8 @@ Dosya uzantıları başarıyla güncellendi Dosya uzantıları boş olamaz - Yönetici Olarak Çalıştır - İçeren Klasörü Aç + Yönetici Olarak Çalıştır (Ctrl+Shift+Enter) + İçeren Klasörü Aç (Ctrl+Shift+E) Program Programları Wox'tan arayın diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-cn.xaml index 25e77c0c14..5b222bc4d4 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-cn.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-cn.xaml @@ -28,8 +28,8 @@ 成功更新索引文件后缀 文件后缀不能为空 - 以管理员身份运行 - 打开所属文件夹 + 以管理员身份运行 (Ctrl+Shift+Enter) + 打开所属文件夹 (Ctrl+Shift+E) 程序 在Wox中搜索程序 diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-tw.xaml index 2b384d0897..73e91ed9fe 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-tw.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/zh-tw.xaml @@ -28,8 +28,8 @@ 成功更新索引副檔名清單 副檔名不能為空 - 以系統管理員身分執行 - 開啟檔案位置 + 以系統管理員身分執行 (Ctrl+Shift+Enter) + 開啟檔案位置 (Ctrl+Shift+E) 程式 在 Wox 中搜尋程式 diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/de.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/de.xaml index 73eebecdcb..624eda1ae9 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/de.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/de.xaml @@ -8,5 +8,5 @@ Bereitstellung der Kommandozeile in Wox. Befehle müssem mit > starten Dieser Befehl wurde {0} mal ausgeführt Führe Befehle mittels Kommandozeile aus - Als Administrator ausführen + Als Administrator ausführen (Ctrl+Shift+Enter) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/en.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/en.xaml index 0d0a41b3f1..c7b5fc6a65 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/en.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/en.xaml @@ -10,5 +10,5 @@ Allows to execute system commands from Wox. Commands should start with > this command has been executed {0} times execute command through command shell - Run As Administrator + Run As Administrator (Ctrl+Shift+Enter) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/pl.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/pl.xaml index 909e5c2586..9f73ebfacb 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/pl.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/pl.xaml @@ -8,5 +8,5 @@ Pozwala wykonywać komend wiersza polecania z Woxa. Polecania zaczynają się od > to polecenie zostało wykonane {0} razy wykonaj to polecenie w wierszu poleceń - Uruchom jako administrator + Uruchom jako administrator (Ctrl+Shift+Enter) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/tr.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/tr.xaml index 268b882533..08984103b7 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/tr.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/tr.xaml @@ -8,5 +8,5 @@ Wox üzerinden komut istemini kullanmanızı sağlar. Komutlar > işareti ile başlamalıdır. Bu komut {0} kez çalıştırıldı Komut isteminde çalıştır - Yönetici Olarak Çalıştır + Yönetici Olarak Çalıştır (Ctrl+Shift+Enter) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-cn.xaml index c4870a1647..f44ab17003 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-cn.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-cn.xaml @@ -8,5 +8,5 @@ 提供从Wox中执行命令行的能力,命令应该以>开头 此命令已经被执行了 {0} 次 执行此命令 - 以管理员身份运行 + 以管理员身份运行 (Ctrl+Shift+Enter) \ No newline at end of file diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-tw.xaml index 082de6301b..41f7d1f06e 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-tw.xaml +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Shell/Languages/zh-tw.xaml @@ -8,5 +8,5 @@ 提供從 Wox 中執行命令提示字元的功能,指令應該以>開頭 此指令已執行了 {0} 次 執行指令 - 以系統管理員身分執行 + 以系統管理員身分執行 (Ctrl+Shift+Enter)