Repository navigation
GameTrans 1.7.0
本次更新新增俄语翻译方向,并修复启动页出现后界面卡死数秒的问题。卡顿与 DeepSeek 网络延迟无关:根因是 WinForms 托盘菜单首次构建时的 GDI+ 字体初始化阻塞了 UI 线程。
新增 / Added
中文
- 翻译语言新增俄语(
ru):画面翻译的目标语言、F9 输入翻译的源语言与目标语言均可在设置页选择,提示词内的语言名固定为「俄语」。旧配置中的ru/ru-RU/俄文/俄语/Russian/русский会在读取时归一化为ru。
English
- Russian (
ru) is now supported: selectable as the screen-translation target and as the F9 input-translation source/target. The prompt always refers to it as 俄语. Legacy values (ru,ru-RU,俄文,俄语,Russian,русский) are normalized toruon load.
修复 / Fixed
中文
- 启动页出现后界面卡死数秒、无法点击:根因是 WinForms 托盘菜单在 UI 线程首次构建时触发 GDI+ 字体初始化——进程内首次创建
System.Drawing字体会枚举系统字体(本机约 1.7–2.6 秒),菜单控件首次构造另有数百毫秒,与 DeepSeek 网络探测无关(探测始终异步执行,不占用 UI 线程)。现在先显示托盘图标;GDI+ 字体与菜单控件栈改为在后台 STA 线程预热,预热完成后才在 UI 线程构建菜单(实测约 5 ms);预热期间右键托盘会提示「正在初始化」,并在菜单就绪后自动弹出。启动页出现后即可正常操作。
English
- The UI froze for several seconds right after the startup page appeared: the cause was GDI+ font initialization triggered by the first WinForms tray-menu construction on the UI thread (first
System.Drawingfont creation enumerates system fonts, ~1.7–2.6 s on our machine, plus several hundred milliseconds for the first menu controls) — not the DeepSeek network probe, which always runs asynchronously and never blocks the UI thread. The tray icon is now created and shown first; GDI+ fonts and the menu control stack are warmed up on a background STA thread, and the menu is built on the UI thread only after warm-up (~5 ms measured). Right-clicking the tray during warm-up shows a "preparing" hint and the menu opens automatically once ready. The startup page is interactive as soon as it appears.
变更 / Changed
- 画面翻译提示词第 4 条由「不要中英混排」改为「不要混入原文语言」,与俄语等非中英目标语言一致。
- 启动阶段不再重复发起网络探测;日志新增「托盘菜单已就绪 +xxx ms(构建 x ms)」与「网络探测完成 xxx ms」。
- 自检新增俄文相关断言;README、README.en、docs/DESIGN、CHANGELOG 已同步。
- 版本号 1.6.1 → 1.7.0。
- 产物 SHA-256:
477FA7F476F970DF11410105EA440C4850904FBBB80CE99C0C30C6A0FF3CEC35
下载 / Download
GameTrans.exe— 单文件、免安装、默认无需管理员权限 / Single-file, portable, no administrator rights required by default