Revert get translation as none is provided

This commit is contained in:
Jeremy Wu
2019-08-22 22:03:51 +10:00
parent c0c55a7af8
commit 16e8cfdf31
2 changed files with 3 additions and 7 deletions

View File

@@ -5,20 +5,16 @@
<system:String x:Key="wox_plugin_sys_command">Command</system:String>
<system:String x:Key="wox_plugin_sys_desc">Description</system:String>
<system:String x:Key="wox_plugin_sys_save_command">Save Settings</system:String>
<system:String x:Key="wox_plugin_sys_shutdown_computer">Shutdown Computer</system:String>
<system:String x:Key="wox_plugin_sys_restart_computer">Restart Computer</system:String>
<system:String x:Key="wox_plugin_sys_log_off">Log off</system:String>
<system:String x:Key="wox_plugin_sys_lock">Lock this computer</system:String>
<system:String x:Key="wox_plugin_sys_exit">Close Wox</system:String>
<system:String x:Key="wox_plugin_sys_restart">Restart Wox</system:String>
<system:String x:Key="wox_plugin_sys_save">Save all Wox settings</system:String>
<system:String x:Key="wox_plugin_sys_setting">Tweak this app</system:String>
<system:String x:Key="wox_plugin_sys_sleep">Put computer to sleep</system:String>
<system:String x:Key="wox_plugin_sys_emptyrecyclebin">Empty recycle bin</system:String>
<system:String x:Key="wox_plugin_sys_save_success">Successfully saved all Wox settings</system:String>
<system:String x:Key="wox_plugin_sys_plugin_name">System Commands</system:String>
<system:String x:Key="wox_plugin_sys_plugin_description">Provides System related commands. e.g. shutdown, lock, settings etc.</system:String>

View File

@@ -169,13 +169,13 @@ namespace Wox.Plugin.Sys
},
new Result
{
Title = context.API.GetTranslation("wox_plugin_sys_save_command"),
SubTitle = context.API.GetTranslation("wox_plugin_sys_save"),
Title = "Save Settings",
SubTitle = "Save all Wox settings",
IcoPath = "Images\\app.png",
Action = c =>
{
context.API.SaveAppAllSettings();
context.API.ShowMsg(string.Format(context.API.GetTranslation("wox_plugin_sys_save_success")));
context.API.ShowMsg(string.Format("Successfully saved all Wox settings"));
return true;
}
},