mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
Update query history language
This commit is contained in:
parent
eafce4442c
commit
e767cee4c0
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 = _ =>{
|
||||
|
Loading…
Reference in New Issue
Block a user