MemRelay-Operation: checkpoint-save:uiframe-ckpt-fluid-json-locale-20261122 MemRelay-Resource: 555f820f-8b44-4f40-be45-e82cda57dde0
2.0 KiB
title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
| title | type | permalink | stable_id | scope | memory_type | project_id | usage_profile_id | status | revision | request_id | created_at | updated_at | tags | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Checkpoint 2026-11-21 19:57:58 UTC [17806ef45f] | checkpoint | main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/checkpoint-2026-11-21-19-57-58-utc-17806ef45f | 555f820f-8b44-4f40-be45-e82cda57dde0 | project | checkpoint | 0017cd22-9dea-4f87-9595-fc050356ff3c | 0c9feb46-d06e-43cd-9ef0-c5813c84a998 | active | 1 | uiframe-ckpt-fluid-json-locale-20261122 | 2026-11-21T19:57:58.121173+00:00 | 2026-11-21T19:57:58.121173+00:00 |
|
完成:FLUID 界面翻译从 C++ 大表改成外置 JSON 语言包。 原因:用户要求后续语言不要堆在源码里,方便别人做语言包。 关键实现:fluid/locale/zh-CN.json(152 条)和 README.txt;fluid/app/ui_locale.cxx 自带小 JSON 解析器并按可执行文件位置加载;CMake 在 fluid 链接后把 locale 复制到可执行文件旁边,并安装到 share/fltk-plus/locale。英文内置。偏好键 ui_language_id。 验证:MSVC Release 构建 fluid 成功;build/bin/locale/zh-CN.json 已复制;启动 build/bin/fluid.exe,菜单为中文(文件/编辑/新建/布局/命令/帮助),编辑菜单条目为中文,设置窗口标题、分页和常规页为中文,语言下拉当前为简体中文。新建菜单里的控件分类(Code、Group 等)仍是英文,因为语言包里没有这些键。 问题:点击验证时误碰把设置窗口挤到屏幕底部,随后已关闭该次启动的 fluid。不是程序缺陷。 下一步:用户若要发布,再提交并推送 github/master(https://github.com/nixevol/fltk-plus.git)。未要求前不要提交。 给下个会话:例程仍在 E:\code\UIFrame\fltk\rust;二开源码在 E:\code\UIFrame\fltk-plus;origin 是上游 fltk,github 远程是 nixevol/fltk-plus。语言包改动未提交。后续要加的控件(日期、时间)还没开始。测试语言功能用 build\bin\fluid.exe。不要把例程和二开源码放回同一个目录,仓库名不要带 UIFrame。