From e767cee4c0dc02b7a4add19357278a0d09e7b1f1 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Mon, 9 Feb 2015 22:14:38 +0800 Subject: [PATCH] Update query history language --- Wox/Languages/en.xaml | 4 +++- Wox/Languages/zh-cn.xaml | 3 ++- Wox/Languages/zh-tw.xaml | 4 +++- Wox/MainWindow.xaml.cs | 6 ++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Wox/Languages/en.xaml b/Wox/Languages/en.xaml index 1fdea4f03d..aaa5953d37 100644 --- a/Wox/Languages/en.xaml +++ b/Wox/Languages/en.xaml @@ -7,8 +7,10 @@ Invalid wox plugin file format Set as topmost in this query Cancel topmost in this query - + Execute query:{0} + Last execute time:{0} + Wox Settings General diff --git a/Wox/Languages/zh-cn.xaml b/Wox/Languages/zh-cn.xaml index 977c44799d..7b2d632de9 100644 --- a/Wox/Languages/zh-cn.xaml +++ b/Wox/Languages/zh-cn.xaml @@ -7,7 +7,8 @@ 不是合法的Wox插件格式 在当前查询中置顶 取消置顶 - + 执行查询:{0} + 上次执行时间:{0} Wox设置 diff --git a/Wox/Languages/zh-tw.xaml b/Wox/Languages/zh-tw.xaml index 79cc35b51c..1e3d40e829 100644 --- a/Wox/Languages/zh-tw.xaml +++ b/Wox/Languages/zh-tw.xaml @@ -7,7 +7,9 @@ 不是合法的Wox插件格式 在當前查詢中置頂 取消置頂 - + 執行查詢:{0} + 上次執行時間:{0} + Wox設置 通用 diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index e04fd218cf..dafc53f4a3 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -710,11 +710,13 @@ namespace Wox { ChangeQueryText(history.Query, true); pnlResult.Dirty = true; + var executeQueryHistoryTitle = GetTranslation("executeQuery"); + var lastExecuteTime = GetTranslation("lastExecuteTime"); UpdateResultViewInternal(new List() { new Result(){ - Title = "Execute " + history.Query+ " query", - SubTitle = "Last Execute Time: " + history.ExecutedDateTime, + Title = string.Format(executeQueryHistoryTitle,history.Query), + SubTitle = string.Format(lastExecuteTime,history.ExecutedDateTime), IcoPath = "Images\\history.png", PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Action = _ =>{