From 5719324115affc149f62272fc4d896ad3c9296e9 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Wed, 25 Nov 2026 16:24:45 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E7=95=8C=E9=9D=A2=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E5=8F=AA=E5=9C=A8=20fluid-plus=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=A4=96=E7=BD=AE=20JSON=20=E8=AF=AD=E8=A8=80=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:fltkplus-decision-fc5bc4b3-20261125-1619 MemRelay-Resource: fc5bc4b3-dfe5-41a8-bf3e-9b204a1847d7 --- .../FLUID 界面翻译使用外置 JSON 语言包.md | 21 --------------- ...译只在 fluid-plus,使用外置 JSON 语言包.md | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 21 deletions(-) delete mode 100644 projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md create mode 100644 projects/0017cd22-9dea-4f87-9595-fc050356ff3c/界面翻译只在 fluid-plus,使用外置 JSON 语言包.md 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。