feat: TrayIcon translation completed

This commit is contained in:
ABA2396
2022-07-26 14:54:56 +08:00
parent 2395ded07a
commit 47103efa24
3 changed files with 11 additions and 3 deletions

View File

@@ -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);

View File

@@ -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>

View File

@@ -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>