Files
MemRelay/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Checkpoint 2026-11-21 19-57-58 UTC [17806ef45f].md
T
memrelay edc94684ed create: Checkpoint 2026-11-21 19:57:58 UTC [17806ef45f]
MemRelay-Operation: checkpoint-save:uiframe-ckpt-fluid-json-locale-20261122
MemRelay-Resource: 555f820f-8b44-4f40-be45-e82cda57dde0
2026-11-22 03:58:02 +08:00

26 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-11-21 19:57:58 UTC [17806ef45f]
type: checkpoint
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/checkpoint-2026-11-21-19-57-58-utc-17806ef45f
stable_id: 555f820f-8b44-4f40-be45-e82cda57dde0
scope: project
memory_type: checkpoint
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: uiframe-ckpt-fluid-json-locale-20261122
created_at: '2026-11-21T19:57:58.121173+00:00'
updated_at: '2026-11-21T19:57:58.121173+00:00'
tags:
- fltk-plus
- fluid
---
完成: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。