Repository navigation
OpenDS 0.3.0
中文 | English
界面从此可以换语言、换外观:内置简体中文与 English,支持导入自定义 Fluent 翻译,浅色/深色随系统即时切换。
新增
多语言
-
界面文案、诊断信息和命令行输出统一改为 Fluent 资源(
locales/zh-CN.ftl、locales/en-US.ftl),默认跟随 Windows 显示语言。 -
新增第六个侧栏页面「常规设置」,语言、外观和关闭行为都收敛在这里。
-
语言下拉标注来源与翻译覆盖率,例如「Deutsch · 本地文件(1%)」;来源区分「跟随系统语言 / 内置 / 本地文件」。
-
覆盖率不足 100% 时,缺失条目自动回退英文,不会出现空白或占位符。
-
支持导入自定义
.ftl:导入时若该语言已有翻译会询问是否替换;也可「打开语言文件夹」直接把 UTF-8 文件放进去。 -
新增校验命令,导入前可先看缺失条目、已翻译条数与覆盖率:
opends.exe language check my-lang.ftl -
切换语言需要重启:选中后页面提示「语言设置将在重启 OpenDS 后生效」,重启时可选「现在重启」或「稍后」,并说明重启会短暂断开虚拟手柄、停止录音和文件记录。
-
语言文件与配置解析严格隔离:界面语言不再影响配置读写、数值解析等行为,避免换语言改变程序行为。
外观
- 新增「随系统 / 浅色 / 深色」三档外观,切换立即生效,无需重启。
- 主题覆盖标题栏、原生控件、按钮、输入框、列表、自绘监控画面和所有对话框,深浅色切换时不再残留系统原生的白色控件。
- 系统开启高对比度时强制使用高对比度配色,不跟随浅色/深色选项。
改进
- 关闭确认对话框改用统一主题化对话框,与语言、重启等提示保持一致的视觉与键盘行为。
- 语言设置变更走统一的"待重启"流程,重启由主流程接管,避免多窗口下重复拉起进程。
文档
- 新增
docs/guides/settings.md,说明语言、外观与关闭行为三组设置。 - 更新双语 README 与用户指南,补充语言导入和主题说明。
升级说明
配置文件新增 language、theme 两个键,缺省分别为「跟随系统」与「随系统」。旧 opends.ini 可直接沿用,无需手动改。
English
The interface can now follow your language and your theme: Simplified Chinese and English are built in, custom Fluent translations can be imported, and light/dark switching is instant.
Added
Localisation
-
Interface text, diagnostics and command-line output moved to Fluent catalogs (
locales/zh-CN.ftl,locales/en-US.ftl) and follow the Windows display language by default. -
A sixth sidebar page, "General settings", now holds language, appearance and close behaviour.
-
The language list shows each entry's source and translation coverage, for example "Deutsch · local file (1%)", distinguishing "follow system", "built in" and "local file".
-
When coverage is below 100%, missing entries fall back to English instead of showing blanks or raw message IDs.
-
Custom
.ftlfiles can be imported: if that language already exists you are asked whether to replace it, and "Open language folder" lets you drop UTF-8 files in directly. -
A validation command reports missing entries, translated entry count and coverage before importing:
opends.exe language check my-lang.ftl -
Changing the language requires a restart. The page states that the setting takes effect after restarting, the restart prompt offers "Restart now" or "Later", and it notes that restarting briefly drops the virtual controller and stops recording and file logging.
-
Language files are strictly isolated from configuration parsing: the UI language never affects config reads/writes or numeric parsing, so switching languages cannot change program behaviour.
Appearance
- New "Follow system / Light / Dark" appearance setting that applies immediately, without a restart.
- Theming covers the title bar, native controls, buttons, edits, lists, the custom-drawn monitor and every dialog, so no native white surfaces remain after switching.
- When Windows high contrast is enabled, a high-contrast palette is forced regardless of the light/dark selection.
Improved
- The close-confirmation dialog now uses the shared themed dialog, matching the language and restart prompts in visuals and keyboard behaviour.
- Language changes go through one "pending restart" path owned by the main flow, preventing duplicate process launches from multiple windows.
Documentation
- Added
docs/guides/settings.mdcovering language, appearance and close behaviour. - Updated the bilingual README and user guide with language import and theming details.
Upgrading
The configuration gained language and theme keys, defaulting to "follow system". Existing opends.ini files keep working unchanged.
完整变更 / Full changelog: v0.2.3...v0.3.0