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

---
 HMI.AlermInfoManage/AlarmInfoManage.xaml.cs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/HMI.AlermInfoManage/AlarmInfoManage.xaml.cs b/HMI.AlermInfoManage/AlarmInfoManage.xaml.cs
index a2cbbc5..f0feadd 100644
--- a/HMI.AlermInfoManage/AlarmInfoManage.xaml.cs
+++ b/HMI.AlermInfoManage/AlarmInfoManage.xaml.cs
@@ -5,7 +5,6 @@
 using HMI.Core.Util;
 using HMI.UI.Util;
 using Microsoft.Win32;
-using NPOI.SS.Formula.Functions;
 using NPOI.XSSF.UserModel;
 using Sharp7;
 using SimensDriver;
@@ -119,6 +118,9 @@
                 case "settingBtn":
                     OpenSettingWindow();
                     break;
+                case "refreshBtn":
+                    //Model.
+                    break;
                 case "importBtn":
                     ImportText();
                     break;
@@ -150,7 +152,7 @@
             catch (Exception ex)
             {
                 log.Error("AlarmText Import Failed.", ex);
-                ToastHelper.Error(Window.GetWindow(this), $"瀵煎叆澶辫触锛亄ex.Message}");
+                ToastHelper.Error(Window.GetWindow(this), $"{this.lang("App.ImportFailed")}: {ex.Message}");
             }
         }
 
@@ -166,7 +168,7 @@
             {
                 if (excelFile.IndexOf(".xlsm") < 0)
                 {
-                    this.Warning("浠呮敮鎸亁lsm鏍煎紡鏂囦欢");
+                    this.Warning(this.lang("Alm.OnlySupportXlsm"));
                     return;
                 }
 
@@ -199,12 +201,12 @@
                     XmlHelper.SerializeToXml(textSettingPath, this.alarmTexts);
                 }
 
-                this.Success("瀵煎叆鎴愬姛");
+                this.Success(this.lang("App.ImportSuccess"));
             }
             catch (Exception ex)
             {
                 log.Error($"Row {index} AlarmText Import Failed.", ex);
-                this.Error($"绗瑊index}琛屽鍏ュ紓甯革紒{ex.Message}");
+                this.Error($"{this.lang("Alm.RowImportFailed", index)}: {ex.Message}");
             }
         }
 

--
Gitblit v1.9.1