显卡鉴定指南改为原版纸质指南样式(9 页、插图、折价标注、鉴定示例),8 种语言

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-04 18:56:24 +08:00
1 parent 2acdf05977
commit 55e7640390
14 files changed
+752 -22

No files matched your search

+7 -1
View File
@@ -1520,7 +1520,7 @@ internal static class Program
var dir = System.IO.Path.GetFullPath(System.IO.Path.Combine(AppContext.BaseDirectory, "../../../../../src/Decentralized/ModFiles/Localization"));
foreach (var lang in new[] { "zh", "en", "de", "fr", "es", "pl", "ru", "ja" })
{
foreach (var gk in new[] { "guide.web3.text", "guide.gpu.text" })
foreach (var gk in new[] { "guide.web3.text" })
{
var line = System.IO.File.ReadAllLines(System.IO.Path.Combine(dir, lang + ".csv")).First(l => l.StartsWith(gk + ","));
var text = line.Substring(gk.Length + 1).Trim('"').Replace("\"\"", "\"");
@@ -1530,6 +1530,12 @@ internal static class Program
Check(!TuningText.Render(text).Contains("{"), lang + " 渲染后没有残留花括号");
}
}
foreach (var lang in new[] { "zh", "en", "de", "fr", "es", "pl", "ru", "ja" })
foreach (var line in System.IO.File.ReadAllLines(System.IO.Path.Combine(dir, lang + ".csv")).Where(l => l.StartsWith("gg.") && !l.StartsWith("gg.ex.")))
{
var gv = line.Substring(line.IndexOf(',') + 1).Trim('"');
Check(TuningText.Unresolved(gv).Count == 0 && !TuningText.Render(gv).Contains("{"), lang + " 鉴定指南占位符取不到值:" + line.Substring(0, line.IndexOf(',')));
}
Check(TuningText.Render("{BmListFee:%}") == "5%" && TuningText.Render("{PonziRates[4]:%}") == "10%" && TuningText.Render("{WalletMax}") == "5", "格式:百分比、数组下标、整数");
});