diff --git a/permissionmanager/src/main/ets/pages/dialogPlus.ets b/permissionmanager/src/main/ets/pages/dialogPlus.ets index 2904b7e5849ab7e4b178df153ff747ae77d4617c..8200fd8f3fa361381268118ce537165c4e6c1cfc 100644 --- a/permissionmanager/src/main/ets/pages/dialogPlus.ets +++ b/permissionmanager/src/main/ets/pages/dialogPlus.ets @@ -156,7 +156,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() { @@ -382,6 +382,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 1f59e88d43673a3aaf58db4447846a841a872633..b5cdec04e2012059808dd9f7ba6b94b275b55085 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\"?" } ] } \ No newline at end of file diff --git a/permissionmanager/src/main/resources/zh_CN/element/string.json b/permissionmanager/src/main/resources/zh_CN/element/string.json index f879e59918a50c87a28bdaa16f322722df54a86f..9ee6b17a2a8565b75aa2423dd47f9cc604dd1f29 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": "”的位置访问权限从“大致位置”改为“精确位置”?" } ] } \ No newline at end of file