diff --git a/permissionmanager/src/main/ets/pages/dialogPlus.ets b/permissionmanager/src/main/ets/pages/dialogPlus.ets index 83451e3505f8e90c969f05cdd024ee60b1d3be0b..b2dba5cd7c0f98c84419801123837e33e7134252 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 eb02e4628af956dc921c1eec6b3fbb5bff9a2835..ca3b6892bce58df1d277344cfb82aedaead08bff 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 df03e1ccb5818a472f81e237bd0f7f2abbc207d4..14096afd9fbe0d419557a6d1da121e5ea7252243 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",