From 5a48b8af617da24d947a2e1cc61766509feba08c Mon Sep 17 00:00:00 2001 From: MemRelay Date: Sun, 22 Nov 2026 04:26:32 +0800 Subject: [PATCH] =?UTF-8?q?update:=20FLUID=20=E7=95=8C=E9=9D=A2=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=BD=BF=E7=94=A8=E5=A4=96=E7=BD=AE=20JSON=20?= =?UTF-8?q?=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:uiframe-fluid-widget-menus-20261122 MemRelay-Resource: fc5bc4b3-dfe5-41a8-bf3e-9b204a1847d7 --- .../FLUID 界面翻译使用外置 JSON 语言包.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md index a2f3d0b..5572c0d 100644 --- a/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md +++ b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/FLUID 界面翻译使用外置 JSON 语言包.md @@ -8,14 +8,14 @@ memory_type: decision project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 status: active -revision: 3 -request_id: uiframe-fluid-dialog-i18n-20261122 +revision: 4 +request_id: uiframe-fluid-widget-menus-20261122 created_at: '2026-11-21T19:57:49.684886+00:00' -updated_at: '2026-11-21T20:20:05.087058+00:00' +updated_at: '2026-11-21T20:26:29.960508+00:00' tags: - fltk-plus - fluid - i18n --- -FLUID 界面译文在 fltk-plus/fluid/locale 的 UTF-8 JSON。英文是内置原文。缺的键保持英文。查找顺序:FLUID_LOCALE_DIR、可执行文件旁边的 locale、../share/fltk-plus/locale。偏好键 ui_language_id。测试用 E:\code\UIFrame\fltk-plus\build\bin\fluid.exe。弹出框在 fluid/message.cxx 统一翻译标题、正文和按钮;格式串在 printf 之前翻译,占位符必须保留。文件对话框标题在 file_chooser.cxx 翻译。fl_ok/fl_cancel/fl_yes/fl_no/fl_close 随语言切换。语言包已覆盖新建容器提示、普通消息、警告、文件对话框标题和外部编辑器错误。操作系统返回的 strerror 文本保持系统语言。改动尚未提交。 \ No newline at end of file +属性页下拉菜单(标签类型、对齐、边框、颜色、回调时机、访问权限、字体样式)和提示都进了语言包。生成代码和读写工程时用 fluid::menu_item_source 取翻译前的英文标识,不要把菜单上的中文写进 .fl 或 .cxx。字体族名 Helvetica、Courier、Times 保留,粗体和斜体已译。测试程序仍是 E:\code\UIFrame\fltk-plus\build\bin\fluid.exe,必须重启。改动尚未提交。 \ No newline at end of file