Update query history language

This commit is contained in:
qianlifeng 2015-02-09 22:14:38 +08:00
parent eafce4442c
commit e767cee4c0
4 changed files with 12 additions and 5 deletions

View File

@ -7,8 +7,10 @@
<system:String x:Key="invalidWoxPluginFileFormat">Invalid wox plugin file format</system:String>
<system:String x:Key="setAsTopMostInThisQuery">Set as topmost in this query</system:String>
<system:String x:Key="cancelTopMostInThisQuery">Cancel topmost in this query</system:String>
<system:String x:Key="executeQuery">Execute query:{0}</system:String>
<system:String x:Key="lastExecuteTime">Last execute time:{0}</system:String>
<!--Setting General-->
<system:String x:Key="woxsettings">Wox Settings</system:String>
<system:String x:Key="general">General</system:String>

View File

@ -7,7 +7,8 @@
<system:String x:Key="invalidWoxPluginFileFormat">不是合法的Wox插件格式</system:String>
<system:String x:Key="setAsTopMostInThisQuery">在当前查询中置顶</system:String>
<system:String x:Key="cancelTopMostInThisQuery">取消置顶</system:String>
<system:String x:Key="executeQuery">执行查询:{0}</system:String>
<system:String x:Key="lastExecuteTime">上次执行时间:{0}</system:String>
<!--设置,通用-->
<system:String x:Key="woxsettings">Wox设置</system:String>

View File

@ -7,7 +7,9 @@
<system:String x:Key="invalidWoxPluginFileFormat">不是合法的Wox插件格式</system:String>
<system:String x:Key="setAsTopMostInThisQuery">在當前查詢中置頂</system:String>
<system:String x:Key="cancelTopMostInThisQuery">取消置頂</system:String>
<system:String x:Key="executeQuery">執行查詢:{0}</system:String>
<system:String x:Key="lastExecuteTime">上次執行時間:{0}</system:String>
<!--設置,通用-->
<system:String x:Key="woxsettings">Wox設置</system:String>
<system:String x:Key="general">通用</system:String>

View File

@ -710,11 +710,13 @@ namespace Wox
{
ChangeQueryText(history.Query, true);
pnlResult.Dirty = true;
var executeQueryHistoryTitle = GetTranslation("executeQuery");
var lastExecuteTime = GetTranslation("lastExecuteTime");
UpdateResultViewInternal(new List<Result>()
{
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 = _ =>{