From 0fa42f76f382cf3361e09c0beb0be34eb2073ddf Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 08 五月 2026 15:45:04 +0800
Subject: [PATCH] 592 数字转中文海外版本直接返回数字,繁体的万显示成萬

---
 Main/Utility/UIHelper.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Main/Utility/UIHelper.cs b/Main/Utility/UIHelper.cs
index 097dc2f..0b79d43 100644
--- a/Main/Utility/UIHelper.cs
+++ b/Main/Utility/UIHelper.cs
@@ -23,10 +23,16 @@
     //涓嶉渶瑕佹彁鍙栫炕璇戠殑鏂囨湰
     private static readonly string[] numbers = new string[] { "闆�", "涓�", "浜�", "涓�", "鍥�", "浜�", "鍏�", "涓�", "鍏�", "涔�" };
     private static readonly string[] units = new string[] { "鍗�", "鐧�", "鍗�", "涓�" };
-
+    private static readonly string[] unitFTs = new string[] { "鍗�", "鐧�", "鍗�", "钀�" };
     //鏁板瓧杞腑鏂�(鍙仛灏忔暟瀛�)锛屾捣澶栫増鏈皟鐢ㄦ敼鍑芥暟鍒囨崲鐗堟湰璇风洿鎺ヨ繑鍥炴暟瀛�
     public static string ChineseNumber(int number)
     {
+        string langId = Language.Id;
+        if (!string.IsNullOrEmpty(langId) && langId != "zh" && langId != "ft")
+            return number.ToString();
+
+        string[] curUnits = (langId == "ft") ? unitFTs : units;
+
         if (number == 0)
             return numbers[0];
 
@@ -42,7 +48,7 @@
                 if (needZero)
                     result = StringUtility.Concat(numbers[0] + result);
 
-                result = numbers[part] + (unitPlace == 1 ? "" : units[unitPlace - 2]) + result; // 鍗曚綅鍙湪鍗併�佺櫨銆佸崈銆佷竾鍐呴儴浣跨敤
+                result = numbers[part] + (unitPlace == 1 ? "" : curUnits[unitPlace - 2]) + result; // 鍗曚綅鍙湪鍗併�佺櫨銆佸崈銆佷竾鍐呴儴浣跨敤
                 needZero = false;
             }
             else
@@ -567,7 +573,7 @@
             case 43:
             case 44:
                 return GetUIColor(TextColType.itemshenhua, bright);
-                
+
 
 
         }

--
Gitblit v1.8.0