mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
feat: TrayIcon translation completed
This commit is contained in:
@@ -40,9 +40,9 @@ namespace MeoAsstGui
|
||||
notifyIcon.MouseDoubleClick += OnNotifyIconDoubleClick;
|
||||
App.Current.MainWindow.StateChanged += MainWindow_StateChanged;
|
||||
|
||||
MenuItem startMenu = new System.Windows.Forms.MenuItem("开始长草");
|
||||
MenuItem startMenu = new System.Windows.Forms.MenuItem(Localization.GetString("Farming"));
|
||||
startMenu.Click += StartTask;
|
||||
MenuItem stopMenu = new System.Windows.Forms.MenuItem("全部停止");
|
||||
MenuItem stopMenu = new System.Windows.Forms.MenuItem(Localization.GetString("Stop"));
|
||||
stopMenu.Click += StopTask;
|
||||
|
||||
MenuItem switchLangMenu = new System.Windows.Forms.MenuItem(Localization.GetString("SwitchLanguage"));
|
||||
@@ -57,7 +57,7 @@ namespace MeoAsstGui
|
||||
switchLangMenu.MenuItems.Add(langMenu);
|
||||
}
|
||||
|
||||
MenuItem exitMenu = new System.Windows.Forms.MenuItem("退出");
|
||||
MenuItem exitMenu = new System.Windows.Forms.MenuItem(Localization.GetString("Exit"));
|
||||
exitMenu.Click += App_exit;
|
||||
System.Windows.Forms.MenuItem[] menuItems = new MenuItem[] { startMenu, stopMenu, switchLangMenu, exitMenu };
|
||||
this.notifyIcon.ContextMenu = new System.Windows.Forms.ContextMenu(menuItems);
|
||||
|
||||
@@ -213,4 +213,8 @@
|
||||
<system:String x:Key="TryToStartEmulator">Trying to start the emulator</system:String>
|
||||
<system:String x:Key="CheckSettings">Please check the connection Settings or try to restart the computer</system:String>
|
||||
<!--AsstProxy-->
|
||||
|
||||
<!--TrayIcon-->
|
||||
<system:String x:Key="Exit">Exit</system:String>
|
||||
<!--TrayIcon-->
|
||||
</ResourceDictionary>
|
||||
@@ -272,4 +272,8 @@
|
||||
<system:String x:Key="TryToStartEmulator">正在尝试启动模拟器</system:String>
|
||||
<system:String x:Key="CheckSettings">请检查连接设置或尝试重启电脑</system:String>
|
||||
<!--AsstProxy-->
|
||||
|
||||
<!--TrayIcon-->
|
||||
<system:String x:Key="Exit">退出</system:String>
|
||||
<!--TrayIcon-->
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user