多语言布局:自动缩字、按语言放宽钱包表与手册列表、缩短过长标签

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-04 14:55:11 +08:00
1 parent f5de68aea9
commit fa8f416545
11 files changed
+70 -23

No files matched your search

+6
View File
@@ -14,6 +14,12 @@ namespace Decentralized
public static class L
{
public static string T(string key, params object[] args) => ModHelper.GetLocalized(ModInfo.Id, key, args);
/// <summary>当前游戏语言代码(en zh de fr es pl ru ja)。</summary>
public static string Code => LocHelper.GetCurrentLocaleCode() ?? "en";
/// <summary>译文普遍比中英文长的语言:表格列宽、操作键区按此放宽。</summary>
public static bool Wide { get { var c = Code; return c == "de" || c == "fr" || c == "es" || c == "pl" || c == "ru"; } }
}
public static class Log