From ba6207f52db76ab47cd6534de0cf1712674ff179 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 13 三月 2025 09:00:46 +0800
Subject: [PATCH] 完善国际化语言;

---
 HMI.IOMonitor/IOMonitor.xaml.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/HMI.IOMonitor/IOMonitor.xaml.cs b/HMI.IOMonitor/IOMonitor.xaml.cs
index a03c2ee..a128ad0 100644
--- a/HMI.IOMonitor/IOMonitor.xaml.cs
+++ b/HMI.IOMonitor/IOMonitor.xaml.cs
@@ -290,12 +290,12 @@
         {
             IPManageModal modal = new IPManageModal(log)
             {
-                Title = "鏂板",
+                Title = this.lang("App.Add"),
                 Owner = Window.GetWindow(this),
             };
             if (modal.Open(-1, new IPManage(), IPManages, SettingFilePath) == true)
             {
-                this.Success("鏂板鎴愬姛");
+                this.Success(this.lang("App.AddSuccess"));
             }
         }
 
@@ -305,8 +305,8 @@
             OpenFileDialog dialog = new OpenFileDialog();
             ////璇ュ�肩‘瀹氭槸鍚﹀彲浠ラ�夋嫨澶氫釜鏂囦欢
             dialog.Multiselect = false;
-            dialog.Title = "璇烽�夋嫨鏂囦欢";
-            dialog.Filter = "execl鏂囦欢(*.xlsx;*.xls)|*.xlsx;*.xls";
+            dialog.Title = this.lang("App.SelectFile");
+            dialog.Filter = "execl(*.xlsx;*.xls)|*.xlsx;*.xls";
             if (dialog.ShowDialog() == true)
             {
                 MonitorTimer.Enabled = false;
@@ -371,7 +371,7 @@
                 catch (Exception ex)
                 {
                     log.Error("Import Failed.", ex);
-                    MsgBoxHelper.Error(this, $"瀵煎叆澶辫触锛亄ex.Message}");
+                    MsgBoxHelper.Error(this, $"{this.lang("App.ImportFailed")}: {ex.Message}");
                 }
             }
         }
@@ -452,7 +452,7 @@
             catch (Exception ex)
             {
                 log.Error("Active Execute Failed.", ex);
-                MsgBoxHelper.ErrorMessage(this, $"鎻掍欢婵�娲诲け璐ワ紒{ex.Message}");
+                MsgBoxHelper.ErrorMessage(this, $"{this.lang("DIO.ActivateFailed")}: {ex.Message}");
             }
             return null;
         }

--
Gitblit v1.9.1