From d7d2efd58e8c6b49f9fb24a782e3e1839bf8c3d9 Mon Sep 17 00:00:00 2001 From: niwatolli3 Date: Tue, 9 Feb 2016 23:30:54 +0900 Subject: [PATCH 1/4] refs #484 * Add japanese Support. * I add following language file * Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml * Wox/Languages/ja.xaml --- .../Wox.Plugin.WebSearch/Languages/ja.xaml | 32 +++++ Wox.Core/Resource/AvailableLanguages.cs | 4 +- Wox/Languages/ja.xaml | 129 ++++++++++++++++++ Wox/Wox.csproj | 5 + 4 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml create mode 100644 Wox/Languages/ja.xaml diff --git a/Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml b/Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml new file mode 100644 index 000000000..d82cb1456 --- /dev/null +++ b/Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml @@ -0,0 +1,32 @@ + + + 削除 + 編集 + 追加 + キーワード + URL + 検索 + 検索サジェスチョンを有効にする + web検索を選択してください + 本当に{0}を削除しますか? + + + + タイトル + 有効 + アイコンを選択 + アイコン + キャンセル + web検索を無効にする + タイトルを入力してください + キーワードを入力してください + URLを入力してください + キーワードはすでに存在します。違うキーワードを入力してください + 成功 + + Web検索 + Web検索を提供 + + \ No newline at end of file diff --git a/Wox.Core/Resource/AvailableLanguages.cs b/Wox.Core/Resource/AvailableLanguages.cs index 7b6231c86..23db91759 100644 --- a/Wox.Core/Resource/AvailableLanguages.cs +++ b/Wox.Core/Resource/AvailableLanguages.cs @@ -9,6 +9,7 @@ namespace Wox.Core.Resource public static Language Chinese_TW = new Language("zh-tw", "中文(繁体)"); public static Language Russian = new Language("ru", "Русский"); public static Language French = new Language("fr", "Français"); + public static Language Japanese = new Language("ja", "日本語"); public static List GetAvailableLanguages() { @@ -18,7 +19,8 @@ namespace Wox.Core.Resource Chinese, Chinese_TW, Russian, - French + French, + Japanese }; return languages; } diff --git a/Wox/Languages/ja.xaml b/Wox/Languages/ja.xaml new file mode 100644 index 000000000..9e2231f97 --- /dev/null +++ b/Wox/Languages/ja.xaml @@ -0,0 +1,129 @@ + + + ホットキー「{0}」の登録に失敗しました + {0}の起動に失敗しました + Woxプラグインの形式が正しくありません + Set as topmost in this query + Cancel topmost in this query + 次のコマンドを実行します:{0} + 最終実行時間:{0} + 開く + 設定 + Woxについて + 終了 + + + Wox設定 + 一般 + スタートアップ時にWoxを起動する + フォーカスを失った時にWoxを隠す + 最新版が入手可能であっても、アップグレードメッセージを表示しない + 前回のランチャーの位置を記憶 + 言語 + 結果の最大表示件数 + ウィンドウがフルスクリーン時にホットキーを無効にする + + + プラグイン + プラグインを探す + 無効 + キーワード + プラグイン・ディレクトリ + 作者 + 初期化時間: {0}ms + クエリ時間: {0}ms + + + テーマ + テーマを探す + こんにちは Wox + クエリボックスのフォント + アイテムフォントの結果 + ウィンドウモード + 透過度 + + + + ホットキー + Wox ホットキー + カスタムクエリ ホットキー + 削除 + 編集 + 追加 + 項目選択してください + {0} プラグインのホットキーを本当に削除しますか? + + + プロキシ + プロキシを有効化 + サーバ + ポート + ユーザ名 + パスワード + プロキシをテストする + 保存 + サーバーは空白にできません + ポートは空白にできません + ポートの形式が正しくありません + プロキシの保存に成功しました + プロキシは正しいです + プロキシ接続に失敗しました + + + Woxについて + ウェブサイト + バージョン + あなたはWoxを {0} 回利用しました + + + 古いアクションキーボード + 新しいアクションキーボード + キャンセル + 完了 + プラグインが見つかりません + 新しいアクションキーボードを空にすることはできません + 新しいアクションキーボードは他のプラグインに割り当てられています。他のアクションキーボードを指定してください + 成功しました + アクションキーボードを指定しない場合、* を使用してください + + + + プレビュー + ホットキーは使用できません。新しいホットキーを選択してください + プラグインホットキーは無効です + 更新 + + + ホットキーは使用できません + + + + バージョン + 時間 + アプリケーションが突然終了した手順を私たちに教えてくださると、バグ修正ができます + クラッシュレポートを送信 + キャンセル + 一般 + 例外 + 例外の種類 + ソース + スタックトレース + 送信中 + クラッシュレポートの送信に成功しました + クラッシュレポートの送信に失敗しました + Woxにエラーが発生しました + + + Wox の最新バージョン V{0} が入手可能です + Woxのアップデート中にエラーが発生しました + アップデート + キャンセル + このアップデートでは、Woxの再起動が必要です + 次のファイルがアップデートされます + 更新ファイル一覧 + アップデートの詳細 + + + \ No newline at end of file diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj index d05cf6ffd..4afdc609e 100644 --- a/Wox/Wox.csproj +++ b/Wox/Wox.csproj @@ -216,6 +216,11 @@ Designer PreserveNewest + + MSBuild:Compile + Designer + PreserveNewest + MSBuild:Compile Designer From 8182141e93459cf0724e11637f686fb27d6e8ca5 Mon Sep 17 00:00:00 2001 From: niwatolli3 Date: Tue, 9 Feb 2016 23:53:06 +0900 Subject: [PATCH 2/4] refs #485 * Add more Japanese support --- Plugins/Wox.Plugin.Program/Languages/ja.xaml | 38 ++++++++++++++++++++ Plugins/Wox.Plugin.Sys/Languages/ja.xaml | 21 +++++++++++ Plugins/Wox.Plugin.Url/Languages/ja.xaml | 11 ++++++ Wox/Languages/ja.xaml | 4 +-- 4 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 Plugins/Wox.Plugin.Program/Languages/ja.xaml create mode 100644 Plugins/Wox.Plugin.Sys/Languages/ja.xaml create mode 100644 Plugins/Wox.Plugin.Url/Languages/ja.xaml diff --git a/Plugins/Wox.Plugin.Program/Languages/ja.xaml b/Plugins/Wox.Plugin.Program/Languages/ja.xaml new file mode 100644 index 000000000..07630a1cd --- /dev/null +++ b/Plugins/Wox.Plugin.Program/Languages/ja.xaml @@ -0,0 +1,38 @@ + + + + Delete + Edit + Add + Location + Index file suffixes + Reindex + Indexing + Index Start Menu + Index Registry + Suffixes + Max Depth + + Directory: + Browse + File Suffixes: + Maximum Search Depth (-1 is unlimited): + + Please select a program source + Are your sure to delete {0}? + + Update + Wox will only index files that end with following suffixes: + (Each suffix should split by ;) + Sucessfully update file suffixes + File suffixes can't be empty + + Run As Administrator + Open containing folder + + Program + Search programs in Wox + + \ No newline at end of file diff --git a/Plugins/Wox.Plugin.Sys/Languages/ja.xaml b/Plugins/Wox.Plugin.Sys/Languages/ja.xaml new file mode 100644 index 000000000..0f9093023 --- /dev/null +++ b/Plugins/Wox.Plugin.Sys/Languages/ja.xaml @@ -0,0 +1,21 @@ + + + コマンド + 説明 + + コンピュータをシャットダウンする + コンピュータを再起動する + ログオフ + このコンピュータをロックする + Woxを終了する + Woxを再起動する + このアプリの設定 + スリープ + ゴミ箱を空にする + + システムコマンド + システム関連のコマンドを提供します。例:シャットダウン、ロック、設定など + + \ No newline at end of file diff --git a/Plugins/Wox.Plugin.Url/Languages/ja.xaml b/Plugins/Wox.Plugin.Url/Languages/ja.xaml new file mode 100644 index 000000000..b20f1a493 --- /dev/null +++ b/Plugins/Wox.Plugin.Url/Languages/ja.xaml @@ -0,0 +1,11 @@ + + + 次のURLを開く:{0} + 次のURLを開くことができません:{0} + + URL + 入力したURLをWoxから開くプラグインです。 + + \ No newline at end of file diff --git a/Wox/Languages/ja.xaml b/Wox/Languages/ja.xaml index 9e2231f97..24e1bd90e 100644 --- a/Wox/Languages/ja.xaml +++ b/Wox/Languages/ja.xaml @@ -5,8 +5,8 @@ ホットキー「{0}」の登録に失敗しました {0}の起動に失敗しました Woxプラグインの形式が正しくありません - Set as topmost in this query - Cancel topmost in this query + このクエリを最上位にセットする + このクエリを最上位にセットをキャンセル 次のコマンドを実行します:{0} 最終実行時間:{0} 開く From 79b4716b95c5ebb974c0f38c821b6138b67161e3 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Wed, 17 Feb 2016 15:49:55 +0000 Subject: [PATCH 3/4] Fix "NoTranslation" bug for plugins 1. fix #475 2. remove GetLanguagesFolder, part of #468 3. bug introduced since 1f939ff3 --- Plugins/Wox.Plugin.CMD/CMD.cs | 6 ---- Plugins/Wox.Plugin.Caculator/Calculator.cs | 8 ------ Plugins/Wox.Plugin.Color/Color.cs | 6 ---- .../Wox.Plugin.ControlPanel/ControlPanel.cs | 5 ---- Plugins/Wox.Plugin.Everything/Main.cs | 6 ---- Plugins/Wox.Plugin.Folder/FolderPlugin.cs | 6 ---- .../PluginIndicator.cs | 7 ----- Plugins/Wox.Plugin.PluginManagement/Main.cs | 6 ---- Plugins/Wox.Plugin.Program/Programs.cs | 4 --- Plugins/Wox.Plugin.Sys/Sys.cs | 6 ---- Plugins/Wox.Plugin.Url/UrlPlugin.cs | 7 ----- .../Wox.Plugin.WebSearch/WebSearchPlugin.cs | 7 ----- Wox.Core/Resource/Internationalization.cs | 7 +++-- Wox.Core/Resource/ResourceMerger.cs | 28 +++++++++++++++---- .../Exception/WoxPluginException.cs | 4 +++ Wox.Plugin/Feature.cs | 2 -- 16 files changed, 30 insertions(+), 85 deletions(-) diff --git a/Plugins/Wox.Plugin.CMD/CMD.cs b/Plugins/Wox.Plugin.CMD/CMD.cs index d1f6220ef..fe6d29e3f 100644 --- a/Plugins/Wox.Plugin.CMD/CMD.cs +++ b/Plugins/Wox.Plugin.CMD/CMD.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Windows.Forms; using WindowsInput; using WindowsInput.Native; -using Wox.Infrastructure; using Wox.Infrastructure.Hotkey; using Wox.Infrastructure.Logger; using Control = System.Windows.Controls.Control; @@ -200,11 +199,6 @@ namespace Wox.Plugin.CMD return new CMDSetting(); } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_cmd_plugin_name"); diff --git a/Plugins/Wox.Plugin.Caculator/Calculator.cs b/Plugins/Wox.Plugin.Caculator/Calculator.cs index 6a496666f..315ffd2db 100644 --- a/Plugins/Wox.Plugin.Caculator/Calculator.cs +++ b/Plugins/Wox.Plugin.Caculator/Calculator.cs @@ -1,9 +1,7 @@ using System.Collections.Generic; -using System.IO; using System.Runtime.InteropServices; using System.Text.RegularExpressions; using System.Windows; -using Wox.Infrastructure; using YAMP; namespace Wox.Plugin.Caculator @@ -93,12 +91,6 @@ namespace Wox.Plugin.Caculator this.context = context; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_caculator_plugin_name"); diff --git a/Plugins/Wox.Plugin.Color/Color.cs b/Plugins/Wox.Plugin.Color/Color.cs index 2f45ce783..7ae6f453a 100644 --- a/Plugins/Wox.Plugin.Color/Color.cs +++ b/Plugins/Wox.Plugin.Color/Color.cs @@ -5,7 +5,6 @@ using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Windows; -using Wox.Infrastructure; namespace Wox.Plugin.Color { @@ -109,11 +108,6 @@ namespace Wox.Plugin.Color } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_color_plugin_name"); diff --git a/Plugins/Wox.Plugin.ControlPanel/ControlPanel.cs b/Plugins/Wox.Plugin.ControlPanel/ControlPanel.cs index 1d403f468..f0b7cfe88 100644 --- a/Plugins/Wox.Plugin.ControlPanel/ControlPanel.cs +++ b/Plugins/Wox.Plugin.ControlPanel/ControlPanel.cs @@ -82,11 +82,6 @@ namespace Wox.Plugin.ControlPanel return false; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_controlpanel_plugin_name"); diff --git a/Plugins/Wox.Plugin.Everything/Main.cs b/Plugins/Wox.Plugin.Everything/Main.cs index 447c7db7c..73956de8c 100644 --- a/Plugins/Wox.Plugin.Everything/Main.cs +++ b/Plugins/Wox.Plugin.Everything/Main.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Runtime.InteropServices; using System.ServiceProcess; using System.Windows; -using Wox.Infrastructure; using Wox.Plugin.Everything.Everything; namespace Wox.Plugin.Everything @@ -256,11 +255,6 @@ namespace Wox.Plugin.Everything return directory; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return _context.API.GetTranslation("wox_plugin_everything_plugin_name"); diff --git a/Plugins/Wox.Plugin.Folder/FolderPlugin.cs b/Plugins/Wox.Plugin.Folder/FolderPlugin.cs index dc2905acc..9fe249101 100644 --- a/Plugins/Wox.Plugin.Folder/FolderPlugin.cs +++ b/Plugins/Wox.Plugin.Folder/FolderPlugin.cs @@ -5,7 +5,6 @@ using System.IO; using System.Linq; using System.Windows; using System.Windows.Controls; -using Wox.Infrastructure; namespace Wox.Plugin.Folder { @@ -244,11 +243,6 @@ namespace Wox.Plugin.Folder return results; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_folder_plugin_name"); diff --git a/Plugins/Wox.Plugin.PluginIndicator/PluginIndicator.cs b/Plugins/Wox.Plugin.PluginIndicator/PluginIndicator.cs index be2ec2990..63f0c2e18 100644 --- a/Plugins/Wox.Plugin.PluginIndicator/PluginIndicator.cs +++ b/Plugins/Wox.Plugin.PluginIndicator/PluginIndicator.cs @@ -1,9 +1,7 @@ using System.Collections.Generic; -using System.IO; using System.Linq; using Wox.Core.Plugin; using Wox.Core.UserSettings; -using Wox.Infrastructure; namespace Wox.Plugin.PluginIndicator { @@ -39,11 +37,6 @@ namespace Wox.Plugin.PluginIndicator this.context = context; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_pluginindicator_plugin_name"); diff --git a/Plugins/Wox.Plugin.PluginManagement/Main.cs b/Plugins/Wox.Plugin.PluginManagement/Main.cs index 3a0b203be..1f333d650 100644 --- a/Plugins/Wox.Plugin.PluginManagement/Main.cs +++ b/Plugins/Wox.Plugin.PluginManagement/Main.cs @@ -7,7 +7,6 @@ using System.Text; using System.Threading; using System.Windows; using Newtonsoft.Json; -using Wox.Infrastructure; namespace Wox.Plugin.PluginManagement { @@ -242,11 +241,6 @@ namespace Wox.Plugin.PluginManagement this.context = context; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_plugin_management_plugin_name"); diff --git a/Plugins/Wox.Plugin.Program/Programs.cs b/Plugins/Wox.Plugin.Program/Programs.cs index dc74d164e..dae6cfb37 100644 --- a/Plugins/Wox.Plugin.Program/Programs.cs +++ b/Plugins/Wox.Plugin.Program/Programs.cs @@ -175,10 +175,6 @@ namespace Wox.Plugin.Program #endregion - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_program_plugin_name"); diff --git a/Plugins/Wox.Plugin.Sys/Sys.cs b/Plugins/Wox.Plugin.Sys/Sys.cs index 248491189..ab1b8c7f9 100644 --- a/Plugins/Wox.Plugin.Sys/Sys.cs +++ b/Plugins/Wox.Plugin.Sys/Sys.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.IO; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Forms; @@ -190,11 +189,6 @@ namespace Wox.Plugin.Sys }); } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_sys_plugin_name"); diff --git a/Plugins/Wox.Plugin.Url/UrlPlugin.cs b/Plugins/Wox.Plugin.Url/UrlPlugin.cs index 5a19028fc..191b17dfc 100644 --- a/Plugins/Wox.Plugin.Url/UrlPlugin.cs +++ b/Plugins/Wox.Plugin.Url/UrlPlugin.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.IO; using System.Text.RegularExpressions; -using Wox.Infrastructure; namespace Wox.Plugin.Url { @@ -103,11 +101,6 @@ namespace Wox.Plugin.Url this.context = context; } - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return context.API.GetTranslation("wox_plugin_url_plugin_name"); diff --git a/Plugins/Wox.Plugin.WebSearch/WebSearchPlugin.cs b/Plugins/Wox.Plugin.WebSearch/WebSearchPlugin.cs index 10fc03fa2..4a4c6a1f6 100644 --- a/Plugins/Wox.Plugin.WebSearch/WebSearchPlugin.cs +++ b/Plugins/Wox.Plugin.WebSearch/WebSearchPlugin.cs @@ -1,10 +1,8 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.IO; using System.Linq; using System.Windows.Controls; -using Wox.Infrastructure; using Wox.Plugin.WebSearch.Annotations; using Wox.Plugin.WebSearch.SuggestionSources; @@ -90,11 +88,6 @@ namespace Wox.Plugin.WebSearch #endregion - public string GetLanguagesFolder() - { - return Path.Combine(WoxDirectroy.Executable, "Languages"); - } - public string GetTranslatedPluginTitle() { return Context.API.GetTranslation("wox_plugin_websearch_plugin_name"); diff --git a/Wox.Core/Resource/Internationalization.cs b/Wox.Core/Resource/Internationalization.cs index 14aad3c1f..dbadcf094 100644 --- a/Wox.Core/Resource/Internationalization.cs +++ b/Wox.Core/Resource/Internationalization.cs @@ -15,10 +15,10 @@ namespace Wox.Core.Resource public Internationalization() { DirectoryName = "Languages"; - MakesureThemeDirectoriesExist(); + MakesureDirectoriesExist(); } - private void MakesureThemeDirectoriesExist() + private void MakesureDirectoriesExist() { if (!Directory.Exists(DirectoryPath)) { @@ -73,10 +73,11 @@ namespace Wox.Core.Resource public override ResourceDictionary GetResourceDictionary() { - return new ResourceDictionary + var dictionary = new ResourceDictionary { Source = new Uri(GetLanguageFile(DirectoryPath), UriKind.Absolute) }; + return dictionary; } public List LoadAvailableLanguages() diff --git a/Wox.Core/Resource/ResourceMerger.cs b/Wox.Core/Resource/ResourceMerger.cs index 61f3485ae..1f17dd7b5 100644 --- a/Wox.Core/Resource/ResourceMerger.cs +++ b/Wox.Core/Resource/ResourceMerger.cs @@ -1,9 +1,11 @@ using System; using System.IO; using System.Linq; +using System.Reflection; using System.Windows; using Wox.Core.Plugin; using Wox.Plugin; +using Wox.Infrastructure.Exception; namespace Wox.Core.Resource { @@ -33,14 +35,28 @@ namespace Wox.Core.Resource internal static void UpdatePluginLanguages() { RemoveResource(PluginManager.DirectoryName); - foreach (var languageFile in PluginManager.GetPluginsForInterface(). - Select(plugin => InternationalizationManager.Instance.GetLanguageFile(((IPluginI18n)plugin.Plugin).GetLanguagesFolder())). - Where(file => !string.IsNullOrEmpty(file))) + foreach (var plugin in PluginManager.GetPluginsForInterface()) { - Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary + var location = Assembly.GetAssembly(plugin.Plugin.GetType()).Location; + var directoryName = Path.GetDirectoryName(location); + if (directoryName != null) { - Source = new Uri(languageFile, UriKind.Absolute) - }); + var internationalization = InternationalizationManager.Instance; + var folder = Path.Combine(directoryName, internationalization.DirectoryName); + var file = internationalization.GetLanguageFile(folder); + if (!string.IsNullOrEmpty(file)) + { + Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary + { + Source = new Uri(file, UriKind.Absolute) + }); + } + } + else + { + throw new WoxPluginException(plugin.Metadata.Name, "Can't find plugin location."); + } + } } } diff --git a/Wox.Infrastructure/Exception/WoxPluginException.cs b/Wox.Infrastructure/Exception/WoxPluginException.cs index b68af28ab..d94788b4d 100644 --- a/Wox.Infrastructure/Exception/WoxPluginException.cs +++ b/Wox.Infrastructure/Exception/WoxPluginException.cs @@ -14,5 +14,9 @@ { PluginName = pluginName; } + + public WoxPluginException(string msg) : base(msg) + { + } } } diff --git a/Wox.Plugin/Feature.cs b/Wox.Plugin/Feature.cs index c69e30c4e..2b21a336b 100644 --- a/Wox.Plugin/Feature.cs +++ b/Wox.Plugin/Feature.cs @@ -32,8 +32,6 @@ namespace Wox.Plugin /// public interface IPluginI18n : IFeatures { - string GetLanguagesFolder(); - string GetTranslatedPluginTitle(); string GetTranslatedPluginDescription(); From 0a148166e17925c96e33461444b16447dfbf6844 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Wed, 17 Feb 2016 16:58:32 +0000 Subject: [PATCH 4/4] Fix websearch plugin query content --- .../Wox.Plugin.WebSearch/WebSearchStorage.cs | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs b/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs index 5ae244473..f104cb4e7 100644 --- a/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs +++ b/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs @@ -26,7 +26,7 @@ namespace Wox.Plugin.WebSearch Title = "Google", ActionKeyword = "g", IconPath = "Images\\google.png", - Url = "https://www.google.com/search?q=new WebSearch {q}", + Url = "https://www.google.com/search?q={q}", Enabled = true }, new WebSearch @@ -34,7 +34,7 @@ namespace Wox.Plugin.WebSearch Title = "Wikipedia", ActionKeyword = "wiki", IconPath = "Images\\wiki.png", - Url = "http://en.wikipedia.org/wiki/new WebSearch {q}", + Url = "http://en.wikipedia.org/wiki/{q}", Enabled = true }, new WebSearch @@ -42,7 +42,7 @@ namespace Wox.Plugin.WebSearch Title = "FindIcon", ActionKeyword = "findicon", IconPath = "Images\\pictures.png", - Url = "http://findicons.com/search/new WebSearch {q}", + Url = "http://findicons.com/search/{q}", Enabled = true }, new WebSearch @@ -50,7 +50,7 @@ namespace Wox.Plugin.WebSearch Title = "Facebook", ActionKeyword = "facebook", IconPath = "Images\\facebook.png", - Url = "http://www.facebook.com/search/?q=new WebSearch {q}", + Url = "http://www.facebook.com/search/?q={q}", Enabled = true }, new WebSearch @@ -58,7 +58,7 @@ namespace Wox.Plugin.WebSearch Title = "Twitter", ActionKeyword = "twitter", IconPath = "Images\\twitter.png", - Url = "http://twitter.com/search?q=new WebSearch {q}", + Url = "http://twitter.com/search?q={q}", Enabled = true }, new WebSearch @@ -66,7 +66,7 @@ namespace Wox.Plugin.WebSearch Title = "Google Maps", ActionKeyword = "maps", IconPath = "Images\\google_maps.png", - Url = "http://maps.google.com/maps?q=new WebSearch {q}", + Url = "http://maps.google.com/maps?q={q}", Enabled = true }, new WebSearch @@ -74,7 +74,7 @@ namespace Wox.Plugin.WebSearch Title = "Google Translate", ActionKeyword = "translate", IconPath = "Images\\google_translate.png", - Url = "http://translate.google.com/#auto|en|new WebSearch {q}", + Url = "http://translate.google.com/#auto|en|{q}", Enabled = true }, new WebSearch @@ -82,7 +82,7 @@ namespace Wox.Plugin.WebSearch Title = "Duckduckgo", ActionKeyword = "duckduckgo", IconPath = "Images\\duckduckgo.png", - Url = "https://duckduckgo.com/?q=new WebSearch {q}", + Url = "https://duckduckgo.com/?q={q}", Enabled = true }, new WebSearch @@ -90,7 +90,7 @@ namespace Wox.Plugin.WebSearch Title = "Github", ActionKeyword = "github", IconPath = "Images\\github.png", - Url = "https://github.com/search?q=new WebSearch {q}", + Url = "https://github.com/search?q={q}", Enabled = true }, new WebSearch @@ -98,7 +98,7 @@ namespace Wox.Plugin.WebSearch Title = "Github Gist", ActionKeyword = "gist", IconPath = "Images\\gist.png", - Url = "https://gist.github.com/search?q=new WebSearch {q}", + Url = "https://gist.github.com/search?q={q}", Enabled = true }, new WebSearch @@ -106,7 +106,7 @@ namespace Wox.Plugin.WebSearch Title = "Gmail", ActionKeyword = "gmail", IconPath = "Images\\gmail.png", - Url = "https://mail.google.com/mail/ca/u/0/#apps/new WebSearch {q}", + Url = "https://mail.google.com/mail/ca/u/0/#apps/{q}", Enabled = true }, new WebSearch @@ -114,7 +114,7 @@ namespace Wox.Plugin.WebSearch Title = "Google Drive", ActionKeyword = "drive", IconPath = "Images\\google_drive.png", - Url = "http://drive.google.com/?hl=en&tab=bo#search/new WebSearch {q}", + Url = "http://drive.google.com/?hl=en&tab=bo#search/{q}", Enabled = true }, new WebSearch @@ -122,7 +122,7 @@ namespace Wox.Plugin.WebSearch Title = "Wolframalpha", ActionKeyword = "wolframalpha", IconPath = "Images\\wolframalpha.png", - Url = "http://www.wolframalpha.com/input/?i=new WebSearch {q}", + Url = "http://www.wolframalpha.com/input/?i={q}", Enabled = true }, new WebSearch @@ -130,7 +130,7 @@ namespace Wox.Plugin.WebSearch Title = "Stackoverflow", ActionKeyword = "stackoverflow", IconPath = "Images\\stackoverflow.png", - Url = "http://stackoverflow.com/search?q=new WebSearch {q}", + Url = "http://stackoverflow.com/search?q={q}", Enabled = true }, new WebSearch @@ -138,7 +138,7 @@ namespace Wox.Plugin.WebSearch Title = "I'm Feeling Lucky", ActionKeyword = "lucky", IconPath = "Images\\google.png", - Url = "http://google.com/search?q=new WebSearch {q}&btnI=I", + Url = "http://google.com/search?q={q}&btnI=I", Enabled = true }, new WebSearch @@ -146,7 +146,7 @@ namespace Wox.Plugin.WebSearch Title = "Google Image", ActionKeyword = "image", IconPath = "Images\\google.png", - Url = "https://www.google.com/search?q=new WebSearch {q}&tbm=isch", + Url = "https://www.google.com/search?q={q}&tbm=isch", Enabled = true }, new WebSearch @@ -154,7 +154,7 @@ namespace Wox.Plugin.WebSearch Title = "Youtube", ActionKeyword = "youtube", IconPath = "Images\\youtube.png", - Url = "http://www.youtube.com/results?search_query=new WebSearch {q}", + Url = "http://www.youtube.com/results?search_query={q}", Enabled = true }, new WebSearch @@ -162,7 +162,7 @@ namespace Wox.Plugin.WebSearch Title = "Bing", ActionKeyword = "bing", IconPath = "Images\\bing.png", - Url = "https://www.bing.com/search?q=new WebSearch {q}", + Url = "https://www.bing.com/search?q={q}", Enabled = true }, new WebSearch @@ -170,7 +170,7 @@ namespace Wox.Plugin.WebSearch Title = "Yahoo", ActionKeyword = "yahoo", IconPath = "Images\\yahoo.png", - Url = "http://www.search.yahoo.com/search?p=new WebSearch {q}", + Url = "http://www.search.yahoo.com/search?p={q}", Enabled = true } });