diff --git a/services/ans/src/advanced_notification_publish_service.cpp b/services/ans/src/advanced_notification_publish_service.cpp index 902d65cf2c4ad431c0673c4886302133b3cc45c6..d8c3bf186cd804fc87b69c292ef6a2ba5ea42c75 100644 --- a/services/ans/src/advanced_notification_publish_service.cpp +++ b/services/ans/src/advanced_notification_publish_service.cpp @@ -2038,9 +2038,8 @@ ErrCode AdvancedNotificationService::IsDistributedEnabledByBundle(const sptr bundle = GenerateValidBundleOption(bundleOption); - ANS_LOGE("no permission1222"); if (bundle == nullptr) { return ERR_ANS_INVALID_BUNDLE; } diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets index f0409887774aa1a817274332e3f460b51a1561f6..17728bcd7b8d6a7f26b39293c2db3f2dea922115 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets @@ -92,10 +92,7 @@ struct PermissionDialog { Row() { Flex({ justifyContent: FlexAlign.Start }) { Text() { - Span($r('app.string.whether_to_allow')) - Span(this.appName) - Span($r('app.string.quotes')) - Span(permission.label) + Span(getContext(this).resourceManager.getStringSync(permission.label.id).replace('%s', this.appName)) } .fontSize(Constants.DIALOG_REQ_FONT_SIZE) .fontColor($r('sys.color.ohos_id_color_text_primary')) diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/base/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/base/element/string.json index ff42825db5ce7e12251f123a50a35348cc633087..381553b22fbd97d4835d30c3dd0179f0c10b7e23 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/base/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/base/element/string.json @@ -12,22 +12,6 @@ "name": "NotificationServiceExtAbility_label", "value": "NotificationDialog" }, - { - "name": "period", - "value": "." - }, - { - "name": "comma", - "value": ", " - }, - { - "name": "whether_to_allow", - "value": "Allow \"" - }, - { - "name": "quotes", - "value": "\"" - }, { "name": "reason", "value": "These may include banner notifications, lock screen notifications, notification sounds, and more. You can change this in Settings." @@ -38,11 +22,11 @@ }, { "name": "BAN", - "value": "BAN" + "value": "DENY" }, { "name": "group_label_notification", - "value": " to send notifications?" + "value": "Allow %s to send you notifications?" } ] } diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/bo_CN/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/bo_CN/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..09ab2654794f0a489d0b70b5ad3a9e7d9ec1790e --- /dev/null +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/bo_CN/element/string.json @@ -0,0 +1,32 @@ +{ + "string": [ + { + "name": "entry_desc", + "value": "description" + }, + { + "name": "NotificationServiceExtAbility_desc", + "value": "NotificationDialog" + }, + { + "name": "NotificationServiceExtAbility_label", + "value": "NotificationDialog" + }, + { + "name": "reason", + "value": "འཕྲེད་བྱང་དང་སྒོ་ལྕགས་བརྙན་ཡོལ། དྲིལ་སྒྲ་སོགས་ཚུད་ཡོད། ༼སྒྲིག་འགོད་༽>༼བརྡ་ཐོ་དང་རྣམ་པའི་ཚན་བྱང་༽ལ་བསྐྱོད་ནས་གསར་སྒྱུར་བྱ་ཆོག" + }, + { + "name": "ALLOW", + "value": "ཆོག་པ།" + }, + { + "name": "BAN", + "value": "བཀག་འགོག" + }, + { + "name": "group_label_notification", + "value": "༼%s༽ཡིས་བརྡ་ཐོ་གཏོང་ཆོག་གམ།" + } + ] +} diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ug/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ug/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..09c29733c8c7abee45a321f7d0dc271c4dd592bb --- /dev/null +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ug/element/string.json @@ -0,0 +1,32 @@ +{ + "string": [ + { + "name": "entry_desc", + "value": "description" + }, + { + "name": "NotificationServiceExtAbility_desc", + "value": "NotificationDialog" + }, + { + "name": "NotificationServiceExtAbility_label", + "value": "NotificationDialog" + }, + { + "name": "reason", + "value": "بالداق ئۇقتۇرۇش، قۇلۇپ ئېكرانى ئۇقتۇرۇشى ۋە ئۇقتۇرۇش ئاۋازى قاتارلىقلار شۇنىڭ ئىچىدە. تەڭشەك > ئۇقتۇرۇش ۋە ھالەت بالدىقى دېگەن ئورۇندىن ئۆزگەرتەلەيسىز." + }, + { + "name": "ALLOW", + "value": "رۇخسەت" + }, + { + "name": "BAN", + "value": "چەكلەش" + }, + { + "name": "group_label_notification", + "value": "\\u200f«%s» نىڭ ئۇقتۇرۇش يوللىشىغا رۇخسەتمۇ؟" + } + ] +} diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_CN/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_CN/element/string.json index 5ab3cb3ac95200766c1cfb8a4f635c5463067be3..a224bed4a4a762619bda963b170ee31db293b82f 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_CN/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_CN/element/string.json @@ -12,22 +12,6 @@ "name": "NotificationServiceExtAbility_label", "value": "NotificationDialog" }, - { - "name": "period", - "value": "。" - }, - { - "name": "comma", - "value": "," - }, - { - "name": "whether_to_allow", - "value": "是否允许“" - }, - { - "name": "quotes", - "value": "”" - }, { "name": "reason", "value": "包括横幅、锁屏、铃声等。可前往“设置”>“通知和状态栏”更改。" @@ -42,7 +26,7 @@ }, { "name": "group_label_notification", - "value": "发送通知?" + "value": "是否允许“%s”发送通知?" } ] } diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_HK/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_HK/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..ee6611b6f8e10062cdd6867c50bc79c36afd036c --- /dev/null +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_HK/element/string.json @@ -0,0 +1,32 @@ +{ + "string": [ + { + "name": "entry_desc", + "value": "description" + }, + { + "name": "NotificationServiceExtAbility_desc", + "value": "NotificationDialog" + }, + { + "name": "NotificationServiceExtAbility_label", + "value": "NotificationDialog" + }, + { + "name": "reason", + "value": "包括橫幅、鎖屏、鈴聲等。可前往「設定」>「通知和狀態欄」更改。" + }, + { + "name": "ALLOW", + "value": "允許" + }, + { + "name": "BAN", + "value": "禁止" + }, + { + "name": "group_label_notification", + "value": "允許「%s」發送通知?" + } + ] +} diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_TW/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_TW/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..db58422ef24f83ae811b8294a5666eb3552e5ea1 --- /dev/null +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/zh_TW/element/string.json @@ -0,0 +1,32 @@ +{ + "string": [ + { + "name": "entry_desc", + "value": "description" + }, + { + "name": "NotificationServiceExtAbility_desc", + "value": "NotificationDialog" + }, + { + "name": "NotificationServiceExtAbility_label", + "value": "NotificationDialog" + }, + { + "name": "reason", + "value": "包括橫幅、鎖定螢幕、鈴聲等。可以前往「設定」>「通知和狀態列」中變更。" + }, + { + "name": "ALLOW", + "value": "允許" + }, + { + "name": "BAN", + "value": "禁止" + }, + { + "name": "group_label_notification", + "value": "是否允許「%s」傳送通知?" + } + ] +}