diff --git a/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md deleted file mode 100644 index 6c57572..0000000 --- a/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md +++ /dev/null @@ -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,必须重启。改动尚未提交。 \ No newline at end of file diff --git a/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/界面翻译只在 fluid-plus,使用外置 JSON 语言包.md b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/界面翻译只在 fluid-plus,使用外置 JSON 语言包.md new file mode 100644 index 0000000..2e82c0b --- /dev/null +++ b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/界面翻译只在 fluid-plus,使用外置 JSON 语言包.md @@ -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。