From 8ef03bf51f3bc99edfe7a314e84d358d90796264 Mon Sep 17 00:00:00 2001 From: fanchenxuan Date: Fri, 25 Nov 2022 16:41:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=90=8D=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=BC=95=E5=8F=B7=E5=8C=85=E8=A3=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fanchenxuan --- permissionmanager/src/main/ets/pages/dialogPlus.ets | 5 ++++- .../src/main/resources/base/element/string.json | 10 +++++++--- .../src/main/resources/zh_CN/element/string.json | 10 +++++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/permissionmanager/src/main/ets/pages/dialogPlus.ets b/permissionmanager/src/main/ets/pages/dialogPlus.ets index 83451e3..b2dba5c 100644 --- a/permissionmanager/src/main/ets/pages/dialogPlus.ets +++ b/permissionmanager/src/main/ets/pages/dialogPlus.ets @@ -161,7 +161,7 @@ struct PermissionDialog { return this.resource.whether_to_allow + this.appName + this.resource.fuzzy_to_exact } } - return this.resource.whether_to_allow + this.appName + this.grantGroups[this.count].label + return this.resource.whether_to_allow + this.appName + this.resource.quotes + this.grantGroups[this.count].label } showReason() { @@ -391,6 +391,9 @@ struct PermissionDialog { globalThis.extensionContext.resourceManager.getString($r("app.string.whether_to_allow").id, (err, val) => { this.resource.whether_to_allow = val }) + globalThis.extensionContext.resourceManager.getString($r("app.string.quotes").id, (err, val) => { + this.resource.quotes = val + }) globalThis.extensionContext.resourceManager.getString($r("app.string.access_general_location").id, (err, val) => { this.resource.access_general_location = val }) diff --git a/permissionmanager/src/main/resources/base/element/string.json b/permissionmanager/src/main/resources/base/element/string.json index eb02e46..ca3b689 100644 --- a/permissionmanager/src/main/resources/base/element/string.json +++ b/permissionmanager/src/main/resources/base/element/string.json @@ -122,15 +122,19 @@ }, { "name": "whether_to_allow", - "value": "Whether to allow " + "value": "Whether to allow \"" + }, + { + "name": "quotes", + "value": "\"" }, { "name": "access_general_location", - "value": " access the general location?" + "value": "\" access the general location?" }, { "name": "fuzzy_to_exact", - "value": " position access to change from \"APPROXIMATE POSITION\" to \"EXACT POSITION\"?" + "value": "\" position access to change from \"APPROXIMATE POSITION\" to \"EXACT POSITION\"?" }, { "name": "cancel", diff --git a/permissionmanager/src/main/resources/zh_CN/element/string.json b/permissionmanager/src/main/resources/zh_CN/element/string.json index df03e1c..14096af 100644 --- a/permissionmanager/src/main/resources/zh_CN/element/string.json +++ b/permissionmanager/src/main/resources/zh_CN/element/string.json @@ -122,15 +122,19 @@ }, { "name": "whether_to_allow", - "value": "是否允许" + "value": "是否允许“" + }, + { + "name": "quotes", + "value": "”" }, { "name": "access_general_location", - "value": "访问大致位置?" + "value": "”访问大致位置?" }, { "name": "fuzzy_to_exact", - "value": "的位置访问权限从“大致位置”改为“精确位置”?" + "value": "”的位置访问权限从“大致位置”改为“精确位置”?" }, { "name": "cancel", -- Gitee