mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +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="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="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="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-->
|
<!--Setting General-->
|
||||||
<system:String x:Key="woxsettings">Wox Settings</system:String>
|
<system:String x:Key="woxsettings">Wox Settings</system:String>
|
||||||
<system:String x:Key="general">General</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="invalidWoxPluginFileFormat">不是合法的Wox插件格式</system:String>
|
||||||
<system:String x:Key="setAsTopMostInThisQuery">在当前查询中置顶</system:String>
|
<system:String x:Key="setAsTopMostInThisQuery">在当前查询中置顶</system:String>
|
||||||
<system:String x:Key="cancelTopMostInThisQuery">取消置顶</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="woxsettings">Wox设置</system:String>
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<system:String x:Key="invalidWoxPluginFileFormat">不是合法的Wox插件格式</system:String>
|
<system:String x:Key="invalidWoxPluginFileFormat">不是合法的Wox插件格式</system:String>
|
||||||
<system:String x:Key="setAsTopMostInThisQuery">在當前查詢中置頂</system:String>
|
<system:String x:Key="setAsTopMostInThisQuery">在當前查詢中置頂</system:String>
|
||||||
<system:String x:Key="cancelTopMostInThisQuery">取消置頂</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="woxsettings">Wox設置</system:String>
|
||||||
<system:String x:Key="general">通用</system:String>
|
<system:String x:Key="general">通用</system:String>
|
||||||
|
@ -710,11 +710,13 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
ChangeQueryText(history.Query, true);
|
ChangeQueryText(history.Query, true);
|
||||||
pnlResult.Dirty = true;
|
pnlResult.Dirty = true;
|
||||||
|
var executeQueryHistoryTitle = GetTranslation("executeQuery");
|
||||||
|
var lastExecuteTime = GetTranslation("lastExecuteTime");
|
||||||
UpdateResultViewInternal(new List<Result>()
|
UpdateResultViewInternal(new List<Result>()
|
||||||
{
|
{
|
||||||
new Result(){
|
new Result(){
|
||||||
Title = "Execute " + history.Query+ " query",
|
Title = string.Format(executeQueryHistoryTitle,history.Query),
|
||||||
SubTitle = "Last Execute Time: " + history.ExecutedDateTime,
|
SubTitle = string.Format(lastExecuteTime,history.ExecutedDateTime),
|
||||||
IcoPath = "Images\\history.png",
|
IcoPath = "Images\\history.png",
|
||||||
PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||||
Action = _ =>{
|
Action = _ =>{
|
||||||
|
Loading…
Reference in New Issue
Block a user