From a75f640c4b9037599e1d37fc3430d79430a3255b Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Sun, 31 May 2026 16:30:14 +0800 Subject: [PATCH 1/2] fix(ohos): merge calendar permission reasons into single shared reason --- src/apps/ohos/entry/src/main/module.json5 | 4 ++-- .../entry/src/main/resources/base/element/string.json | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/apps/ohos/entry/src/main/module.json5 b/src/apps/ohos/entry/src/main/module.json5 index 169845dfd2..43271a909b 100644 --- a/src/apps/ohos/entry/src/main/module.json5 +++ b/src/apps/ohos/entry/src/main/module.json5 @@ -46,7 +46,7 @@ }, { "name": "ohos.permission.READ_CALENDAR", - "reason": "$string:permission_read_calendar_reason", + "reason": "$string:permission_calendar_reason", "usedScene": { "abilities": [ "EntryAbility" @@ -56,7 +56,7 @@ }, { "name": "ohos.permission.WRITE_CALENDAR", - "reason": "$string:permission_write_calendar_reason", + "reason": "$string:permission_calendar_reason", "usedScene": { "abilities": [ "EntryAbility" diff --git a/src/apps/ohos/entry/src/main/resources/base/element/string.json b/src/apps/ohos/entry/src/main/resources/base/element/string.json index cdf340b01c..7de142a028 100644 --- a/src/apps/ohos/entry/src/main/resources/base/element/string.json +++ b/src/apps/ohos/entry/src/main/resources/base/element/string.json @@ -24,12 +24,8 @@ "value": "Used to access custom sandbox paths for project workspace operations" }, { - "name": "permission_read_calendar_reason", - "value": "Used to read calendar events for task scheduling and reminders" - }, - { - "name": "permission_write_calendar_reason", - "value": "Used to write calendar events for task scheduling and reminders" + "name": "permission_calendar_reason", + "value": "Used to manage calendar events for task scheduling and reminders" }, { "name": "permission_desktop_directory_reason", From 81f5924afa75fe4587db1a1817570162f31602e0 Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Sun, 31 May 2026 16:33:35 +0800 Subject: [PATCH 2/2] feat(ohos): add Chinese localization for permission reasons --- .../main/resources/zh_CN/element/string.json | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/apps/ohos/entry/src/main/resources/zh_CN/element/string.json diff --git a/src/apps/ohos/entry/src/main/resources/zh_CN/element/string.json b/src/apps/ohos/entry/src/main/resources/zh_CN/element/string.json new file mode 100644 index 0000000000..ed1bd84af6 --- /dev/null +++ b/src/apps/ohos/entry/src/main/resources/zh_CN/element/string.json @@ -0,0 +1,44 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "模块描述" + }, + { + "name": "EntryAbility_desc", + "value": "描述" + }, + { + "name": "EntryAbility_label", + "value": "BitFun" + }, + { + "name": "permission_internet_reason", + "value": "用于访问网络以与远程AI服务通信" + }, + { + "name": "permission_user_file_reason", + "value": "用于读写用户选择的文件以进行代码编辑和项目管理" + }, + { + "name": "permission_custom_sandbox_reason", + "value": "用于访问自定义沙箱路径以进行项目工作区操作" + }, + { + "name": "permission_calendar_reason", + "value": "用于管理日历事件以进行任务调度和提醒" + }, + { + "name": "permission_desktop_directory_reason", + "value": "用于访问桌面目录以进行文件管理和项目操作" + }, + { + "name": "permission_documents_directory_reason", + "value": "用于访问文档目录以进行文件管理和项目操作" + }, + { + "name": "permission_download_directory_reason", + "value": "用于访问下载目录以进行文件管理和项目操作" + } + ] +} \ No newline at end of file