Skip to content

feat: mod 菜单 UI 字符串本地化#9

Open
ZhaoWeicheng98 wants to merge 1 commit intoIrisuM:masterfrom
AsaChiri:feat/localize-mod-menu-ui-strings
Open

feat: mod 菜单 UI 字符串本地化#9
ZhaoWeicheng98 wants to merge 1 commit intoIrisuM:masterfrom
AsaChiri:feat/localize-mod-menu-ui-strings

Conversation

@ZhaoWeicheng98
Copy link
Copy Markdown
Contributor

@ZhaoWeicheng98 ZhaoWeicheng98 commented Mar 31, 2026

Summary

  • AddModStartMenu() 中硬编码的中文 UI 字符串(选项标签、分页按钮、Mod 信息展示标签等)提取到新的 ModUiStrings
  • 使用 Dictionary<string, Dictionary<string, string>> 结构,按 locale key 查找,支持回退链(当前语言 → zh-Hans → 任意可用值)
  • 新增语言只需在字典条目中添加对应 locale key,无需修改类结构

Test plan

  • 以中文启动游戏,确认 mod 选择菜单显示中文(原版游戏剧情、上一页/下一页、Mod名称/说明/版本)
  • 切换至日文,返回标题画面重新进入 mod 选择菜单,确认显示日文
  • 确认工作区模式下前缀正确本地化

🤖 Generated with Claude Code

将 AddModStartMenu() 中硬编码的中文字符串提取到 ModUiStrings 类,
支持按当前游戏语言动态切换,新增语言只需添加字典条目。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant