update: 界面翻译只在 fluid-plus,使用外置 JSON 语言包

MemRelay-Operation: memory-save:fltkplus-decision-fc5bc4b3-20261125-1619
MemRelay-Resource: fc5bc4b3-dfe5-41a8-bf3e-9b204a1847d7
This commit is contained in:
2026-11-25 16:24:45 +08:00
parent 55d8c493a7
commit 5719324115
2 changed files with 27 additions and 21 deletions
@@ -1,21 +0,0 @@
---
title: FLUID 界面翻译使用外置 JSON 语言包
type: decision
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/fluid-界面翻译使用外置-json-语言包
stable_id: fc5bc4b3-dfe5-41a8-bf3e-9b204a1847d7
scope: project
memory_type: decision
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 5
request_id: uiframe-fluid-tree-types-20261122
created_at: '2026-11-21T19:57:49.684886+00:00'
updated_at: '2026-11-21T20:33:57.191425+00:00'
tags:
- fltk-plus
- fluid
- i18n
---
FLUID 工程树只翻译控件类型词,显示前去掉 Fl_ 再查语言包。名字、函数名和引号里的标签不翻译。type_name 写入 .fl 和生成代码的逻辑不变。类型词包括全部内置控件,以及 Double_Window、Float_Input、Int_Input、Sys_Menu_Bar、class、widget_class。测试仍用 E:\code\UIFrame\fltk-plus\build\bin\fluid.exe,必须重启。改动尚未提交。
@@ -0,0 +1,27 @@
---
title: 界面翻译只在 fluid-plus,使用外置 JSON 语言包
type: decision
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/界面翻译只在-fluid-plus-使用外置-json-语言包
stable_id: fc5bc4b3-dfe5-41a8-bf3e-9b204a1847d7
scope: project
memory_type: decision
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 6
request_id: fltkplus-decision-fc5bc4b3-20261125-1619
created_at: '2026-11-21T19:57:49.684886+00:00'
updated_at: '2026-11-25T08:24:39.878030+00:00'
tags:
- fltk-plus
- fluid-plus
- i18n
---
界面翻译只存在于 fluid-plus。官方 fluid/ 与上游一致,没有语言包。
语言包是 fluid-plus/locale 下的外置 JSON。运行验证用 E:\code\UIFrame\fltk-plus\build\bin\Release\fluid-plus.exe,改语言包或相关代码后必须重新打开这个程序。不要再用 build\bin\fluid.exe 做界面翻译验收。
fluid-plus 工程树只翻译控件类型词,显示前去掉 Fl_ 再查语言包。名字、函数名和引号里的标签不翻译。type_name 写入 .fl 和生成代码的逻辑不变。类型词包括全部内置控件,以及 Double_Window、Float_Input、Int_Input、Sys_Menu_Bar、class、widget_class。
字体示例字符串「AaBbYyZz 界面字体」保留中文,位于 fluid-plus/app/ui_locale.cxx。