From b857101f6947120339a034d729dfabbddb907a56 Mon Sep 17 00:00:00 2001 From: xdongs2009 Date: Wed, 18 Jun 2025 07:14:03 +0000 Subject: [PATCH 1/4] add test.cpp. Signed-off-by: xdongs2009 --- test.cpp | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 test.cpp diff --git a/test.cpp b/test.cpp new file mode 100644 index 000000000..f251af981 --- /dev/null +++ b/test.cpp @@ -0,0 +1,71 @@ +notification_subscriber.cpp +if (extendInfo == nullptr) { + return; + } + + for (std::string key : NotificationConstant::EXTEND_REMOVE_LIST) { + if (extendInfo->HasParam(key)) { + extendInfo->Remove(key); + } + } + return; + +common.h +/** + * @brief Gets the extendInfo of NotificationRequest object from specified js object + * + * @param env Indicates the environment that the API is invoked under + * @param value Indicates a js object to be converted + * @param request Indicates a NotificationRequest object from specified js object + * @return Returns the null object if success, returns the null value otherwise + */ + static napi_value GetNotificationExtendInfo( + const napi_env &env, const napi_value &value, NotificationRequest &request); + +common_convert_request.cpp +// extendInfo?: {[key: string]: any} + if (GetNotificationExtendInfo(env, value, request) == nullptr) { + return nullptr; + } + +napi_value Common::GetNotificationExtendInfo(const napi_env &env, const napi_value &value, NotificationRequest &request) +{ + ANS_LOGD("enter"); + + napi_valuetype valuetype = napi_undefined; + napi_value result = nullptr; + bool hasProperty = false; + + NAPI_CALL(env, napi_has_named_property(env, value, "extendInfo", &hasProperty)); + if (hasProperty) { + napi_get_named_property(env, value, "extendInfo", &result); + NAPI_CALL(env, napi_typeof(env, result, &valuetype)); + if (valuetype != napi_object) { + ANS_LOGE("Wrong argument type. Object expected."); + std::string msg = "Incorrect parameter types. The type of extendInfo must be object."; + Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); + return nullptr; + } + AAFwk::WantParams wantParams; + if (!OHOS::AppExecFwk::UnwrapWantParams(env, result, wantParams)) { + return nullptr; + } + + std::shared_ptr extendInfo = std::make_shared(wantParams); + request.SetExtendInfo(extendInfo); + } + + return NapiGetNull(env); +} + +notification_constant.h +constexpr static const char* EXTEND_REMOVE_LIST[] = { + "notification_collaboration_app_name", + "notification_collaboration_app_label", + "notification_collaboration_app_icon", + "notification_collaboration_app_index", + "notification_collaboration_deviceId_pc", + "notification_collaboration_deviceId_pad", + "notification_collaboration_userId_pc", + "notification_collaboration_userId_pad" + }; \ No newline at end of file -- Gitee From e66a19d47205082d993d9ae4f078f7a83f5afd67 Mon Sep 17 00:00:00 2001 From: xdongs2009 Date: Thu, 19 Jun 2025 09:01:20 +0000 Subject: [PATCH 2/4] update test.cpp. Signed-off-by: xdongs2009 --- test.cpp | 274 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 211 insertions(+), 63 deletions(-) diff --git a/test.cpp b/test.cpp index f251af981..860a475a8 100644 --- a/test.cpp +++ b/test.cpp @@ -1,71 +1,219 @@ -notification_subscriber.cpp -if (extendInfo == nullptr) { - return; - } - - for (std::string key : NotificationConstant::EXTEND_REMOVE_LIST) { - if (extendInfo->HasParam(key)) { - extendInfo->Remove(key); +ar +, + { + "name":"reason", + "value":"قد تشمل هذه إشعارات شاشة القفل وإشعارات شريط الحالة والشارات والأصوات والاهتزازات. يمكنك تغيير هذا من \"الإعدادات\".", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"قد تشمل هذه إشعارات شريط الحالة والشارات والأصوات. يمكنك تغيير هذا من \"الإعدادات\".", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"قد تشمل هذه إشعارات شاشة القفل، واللافتات، والشارات، والأصوات، والاهتزازات. يمكنك تغيير هذه الإعدادات من \"DroiTong > إدارة التطبيقات\".", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"قد تشمل هذه إشعارات شاشة القفل، واللافتات، والشارات، والأصوات، والاهتزازات. يمكنك تغيير هذه الإعدادات من \"EasyAbroad > إدارة التطبيقات\".", + "attr":{ + "priority":"translate" + } } - } - return; - -common.h -/** - * @brief Gets the extendInfo of NotificationRequest object from specified js object - * - * @param env Indicates the environment that the API is invoked under - * @param value Indicates a js object to be converted - * @param request Indicates a NotificationRequest object from specified js object - * @return Returns the null object if success, returns the null value otherwise - */ - static napi_value GetNotificationExtendInfo( - const napi_env &env, const napi_value &value, NotificationRequest &request); - -common_convert_request.cpp -// extendInfo?: {[key: string]: any} - if (GetNotificationExtendInfo(env, value, request) == nullptr) { - return nullptr; - } -napi_value Common::GetNotificationExtendInfo(const napi_env &env, const napi_value &value, NotificationRequest &request) -{ - ANS_LOGD("enter"); - - napi_valuetype valuetype = napi_undefined; - napi_value result = nullptr; - bool hasProperty = false; +es +, + { + "name":"reason", + "value":"Esto puede incluir las notificaciones en pantalla de bloqueo, las tiras, los globos, los sonidos y las vibraciones. Esta configuración se puede modificar en los Ajustes.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Esto puede incluir las tiras, los globos y los sonidos. Esta configuración se puede modificar en los Ajustes.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Estas pueden incluir notificaciones de pantalla de bloqueo, banners, insignias, sonidos y vibraciones. Puedes cambiar estos ajustes en DroiTong > Gestión de aplicaciones.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Estas pueden incluir notificaciones de pantalla de bloqueo, banners, insignias, sonidos y vibraciones. Puedes cambiar estos ajustes en EasyAbroad > Gestión de aplicaciones.", + "attr":{ + "priority":"translate" + } + } + +fr +, + { + "name":"reason", + "value":"Cela peut inclure des notifications sur l'écran verrouillé, bannières, badges, sons et vibrations. Vous pouvez changer cela dans Paramètres.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Cela peut inclure des bannières, badges et sons. Vous pouvez changer cela dans Paramètres.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Il peut s'agir de notifications d'écran verrouillé, de bannières, de badges, de sons et de vibrations. Ces paramètres peuvent être modifiés sous DroiTong > Gestion des applications.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Il peut s'agir de notifications d'écran verrouillé, de bannières, de badges, de sons et de vibrations. Ces paramètres peuvent être modifiés sous EasyAbroad > Gestion des applications.", + "attr":{ + "priority":"translate" + } + } - NAPI_CALL(env, napi_has_named_property(env, value, "extendInfo", &hasProperty)); - if (hasProperty) { - napi_get_named_property(env, value, "extendInfo", &result); - NAPI_CALL(env, napi_typeof(env, result, &valuetype)); - if (valuetype != napi_object) { - ANS_LOGE("Wrong argument type. Object expected."); - std::string msg = "Incorrect parameter types. The type of extendInfo must be object."; - Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); - return nullptr; +ja +, + { + "name":"reason", + "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれます。これは[設定]で変更できます。", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"これには、バナー、バッジ、サウンドが含まれます。これは[設定]で変更できます。", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれる場合があります。この設定は、[DroiTong ] > [アプリ管理]で変更できます。", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれる場合があります。この設定は、[EasyAbroad] > [アプリ管理]で変更できます。", + "attr":{ + "priority":"translate" + } } - AAFwk::WantParams wantParams; - if (!OHOS::AppExecFwk::UnwrapWantParams(env, result, wantParams)) { - return nullptr; + +ko +, + { + "name":"reason", + "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드 및 진동이 포함될 수 있습니다. 설정에서 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"여기에는 배너, 배지 및 사운드가 포함될 수 있습니다. 설정에서 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드, 진동 등이 포함될 수 있습니다. DroiTong > 앱 관리에서 해당 설정을 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드, 진동 등이 포함될 수 있습니다. EasyAbroad > 앱 관리에서 해당 설정을 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } } - std::shared_ptr extendInfo = std::make_shared(wantParams); - request.SetExtendInfo(extendInfo); - } +ru +, + { + "name":"reason", + "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить это в разделе Настройки.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Они могут включать уведомления в формате баннеров, метки на значке приложения и звуковые сигналы. Вы можете изменить это в разделе Настройки.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить эти настройки в разделе DroiTong > Управление приложением.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить эти настройки в разделе EasyAbroad > Управление приложением.", + "attr":{ + "priority":"translate" + } + } - return NapiGetNull(env); -} +vi +, + { + "name":"reason", + "value":"Những nội dung này có thể bao gồm thông báo màn hình khóa, biểu ngữ, dấu báo, âm thanh và chế độ rung. Bạn có thể thay đổi chế độ này trong mục Cài đặt.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Những nội dung này có thể bao gồm biểu ngữ, dấu báo và âm thanh. Bạn có thể thay đổi chế độ này trong mục Cài đặt.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Những thông báo này có thể bao gồm thông báo trên màn hình khóa, biểu ngữ, huy hiệu, âm thanh và rung. Bạn có thể thay đổi những cài đặt này trong DroiTong > Quản lý ứng dụng.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Những thông báo này có thể bao gồm thông báo trên màn hình khóa, biểu ngữ, huy hiệu, âm thanh và rung. Bạn có thể thay đổi những cài đặt này trong EasyAbroad > Quản lý ứng dụng.", + "attr":{ + "priority":"translate" + } + } -notification_constant.h -constexpr static const char* EXTEND_REMOVE_LIST[] = { - "notification_collaboration_app_name", - "notification_collaboration_app_label", - "notification_collaboration_app_icon", - "notification_collaboration_app_index", - "notification_collaboration_deviceId_pc", - "notification_collaboration_deviceId_pad", - "notification_collaboration_userId_pc", - "notification_collaboration_userId_pad" - }; \ No newline at end of file +ug +"value":"بالداق ئۇقتۇرۇش شۇنىڭ ئىچىدە. بۇ تاللانمىنى تەڭشەكتىن ئۆزگەرتەلەيسىز." \ No newline at end of file -- Gitee From d1ee7890aecda0a46550f007fb6d6dbad5b4ae48 Mon Sep 17 00:00:00 2001 From: xdongs Date: Thu, 19 Jun 2025 19:30:31 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xdongs --- .../AppScope/app.json | 4 +-- .../src/main/resources/ar/element/string.json | 28 +++++++++++++++++++ .../main/resources/bo_CN/element/string.json | 2 +- .../src/main/resources/es/element/string.json | 28 +++++++++++++++++++ .../src/main/resources/fr/element/string.json | 28 +++++++++++++++++++ .../src/main/resources/ja/element/string.json | 28 +++++++++++++++++++ .../src/main/resources/ko/element/string.json | 28 +++++++++++++++++++ .../src/main/resources/ru/element/string.json | 28 +++++++++++++++++++ .../src/main/resources/ug/element/string.json | 4 +++ .../src/main/resources/vi/element/string.json | 28 +++++++++++++++++++ 10 files changed, 203 insertions(+), 3 deletions(-) diff --git a/services/dialog_ui/enable_notification_dialog/AppScope/app.json b/services/dialog_ui/enable_notification_dialog/AppScope/app.json index cf14d1595..02fcf3715 100644 --- a/services/dialog_ui/enable_notification_dialog/AppScope/app.json +++ b/services/dialog_ui/enable_notification_dialog/AppScope/app.json @@ -2,8 +2,8 @@ "app": { "bundleName": "com.ohos.notificationdialog", "vendor": "example", - "versionCode": 1000029, - "versionName": "1.2.9", + "versionCode": 1000030, + "versionName": "1.3.0", "icon": "$media:app_icon", "label": "$string:app_name", "distributedNotificationEnabled": true, diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ar/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ar/element/string.json index b45d7ca9d..1ace752df 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ar/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ar/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"قد تشمل هذه إشعارات شاشة القفل وإشعارات شريط الحالة والشارات والأصوات والاهتزازات. يمكنك تغيير هذا من \"الإعدادات\".", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"قد تشمل هذه إشعارات شريط الحالة والشارات والأصوات. يمكنك تغيير هذا من \"الإعدادات\".", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"قد تشمل هذه إشعارات شاشة القفل، واللافتات، والشارات، والأصوات، والاهتزازات. يمكنك تغيير هذه الإعدادات من \"DroiTong > إدارة التطبيقات\".", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"قد تشمل هذه إشعارات شاشة القفل، واللافتات، والشارات، والأصوات، والاهتزازات. يمكنك تغيير هذه الإعدادات من \"EasyAbroad > إدارة التطبيقات\".", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file 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 index aaf0644b7..c0099666c 100644 --- 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 @@ -30,7 +30,7 @@ }, { "name":"reason_tv", - "value":"الداق ئۇقتۇرۇش شۇنىڭ ئىچىدە. بۇ تاللانمىنى تەڭشەكتىن ئۆزگەرتەلەيسىز." + "value":"བརྡ་ཐོ་དྲན་སྐུལ་གྱི་ཐབས་ལམ་ལ་འཕྲེད་བྱང་ཚུད། ༼སྒྲིག་འགོད་༽ལ་བསྐྱོད་ནས་བཅོས་ཆོག" }, { "name":"ALLOW", diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/es/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/es/element/string.json index e314f7814..66dd92b77 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/es/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/es/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"Esto puede incluir las notificaciones en pantalla de bloqueo, las tiras, los globos, los sonidos y las vibraciones. Esta configuración se puede modificar en los Ajustes.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Esto puede incluir las tiras, los globos y los sonidos. Esta configuración se puede modificar en los Ajustes.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Estas pueden incluir notificaciones de pantalla de bloqueo, banners, insignias, sonidos y vibraciones. Puedes cambiar estos ajustes en DroiTong > Gestión de aplicaciones.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Estas pueden incluir notificaciones de pantalla de bloqueo, banners, insignias, sonidos y vibraciones. Puedes cambiar estos ajustes en EasyAbroad > Gestión de aplicaciones.", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/fr/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/fr/element/string.json index 93c7a6b04..b3c06b3eb 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/fr/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/fr/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"Cela peut inclure des notifications sur l'écran verrouillé, bannières, badges, sons et vibrations. Vous pouvez changer cela dans Paramètres.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Cela peut inclure des bannières, badges et sons. Vous pouvez changer cela dans Paramètres.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Il peut s'agir de notifications d'écran verrouillé, de bannières, de badges, de sons et de vibrations. Ces paramètres peuvent être modifiés sous DroiTong > Gestion des applications.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Il peut s'agir de notifications d'écran verrouillé, de bannières, de badges, de sons et de vibrations. Ces paramètres peuvent être modifiés sous EasyAbroad > Gestion des applications.", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ja/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ja/element/string.json index aa4df12d1..fb7a59839 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ja/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ja/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれます。これは[設定]で変更できます。", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"これには、バナー、バッジ、サウンドが含まれます。これは[設定]で変更できます。", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれる場合があります。この設定は、[DroiTong ] > [アプリ管理]で変更できます。", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれる場合があります。この設定は、[EasyAbroad] > [アプリ管理]で変更できます。", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ko/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ko/element/string.json index ba689d42e..131e1d414 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ko/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ko/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드 및 진동이 포함될 수 있습니다. 설정에서 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"여기에는 배너, 배지 및 사운드가 포함될 수 있습니다. 설정에서 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드, 진동 등이 포함될 수 있습니다. DroiTong > 앱 관리에서 해당 설정을 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드, 진동 등이 포함될 수 있습니다. EasyAbroad > 앱 관리에서 해당 설정을 변경할 수 있습니다.", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ru/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ru/element/string.json index e00b0a1ee..1878d0a03 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ru/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/ru/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить это в разделе Настройки.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Они могут включать уведомления в формате баннеров, метки на значке приложения и звуковые сигналы. Вы можете изменить это в разделе Настройки.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить эти настройки в разделе DroiTong > Управление приложением.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить эти настройки в разделе EasyAbroad > Управление приложением.", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file 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 index 55ef05155..546e8c798 100644 --- 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 @@ -28,6 +28,10 @@ "name":"reason_cjy", "value":"قۇلۇپ ئېكرانى، بالداق، تامغا، ئاۋاز ۋە تىترەش شۇنىڭ ئىچىدە. چۇجىڭيى (چېگرا قولايلىقى) > ئەپ باشقۇرۇش دېگەن ئورۇندىن ئۆزگەرتەلەيسىز." }, + { + "name":"reason_tv", + "value":"بالداق ئۇقتۇرۇش شۇنىڭ ئىچىدە. بۇ تاللانمىنى تەڭشەكتىن ئۆزگەرتەلەيسىز." + }, { "name":"ALLOW", "value":"رۇخسەت", diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/vi/element/string.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/vi/element/string.json index 5834f2c15..6b6f0dbe7 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/vi/element/string.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/resources/vi/element/string.json @@ -20,6 +20,34 @@ "attr":{ "priority":"translate" } + }, + { + "name":"reason", + "value":"Những nội dung này có thể bao gồm thông báo màn hình khóa, biểu ngữ, dấu báo, âm thanh và chế độ rung. Bạn có thể thay đổi chế độ này trong mục Cài đặt.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_simple", + "value":"Những nội dung này có thể bao gồm biểu ngữ, dấu báo và âm thanh. Bạn có thể thay đổi chế độ này trong mục Cài đặt.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_zyt", + "value":"Những thông báo này có thể bao gồm thông báo trên màn hình khóa, biểu ngữ, huy hiệu, âm thanh và rung. Bạn có thể thay đổi những cài đặt này trong DroiTong > Quản lý ứng dụng.", + "attr":{ + "priority":"translate" + } + }, + { + "name":"reason_cjy", + "value":"Những thông báo này có thể bao gồm thông báo trên màn hình khóa, biểu ngữ, huy hiệu, âm thanh và rung. Bạn có thể thay đổi những cài đặt này trong EasyAbroad > Quản lý ứng dụng.", + "attr":{ + "priority":"translate" + } } ] } \ No newline at end of file -- Gitee From dfa8886d0b7630f9382b6fe27f0ba42339f9f1bb Mon Sep 17 00:00:00 2001 From: xdongs2009 Date: Thu, 19 Jun 2025 11:39:37 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20test?= =?UTF-8?q?.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.cpp | 219 ------------------------------------------------------- 1 file changed, 219 deletions(-) delete mode 100644 test.cpp diff --git a/test.cpp b/test.cpp deleted file mode 100644 index 860a475a8..000000000 --- a/test.cpp +++ /dev/null @@ -1,219 +0,0 @@ -ar -, - { - "name":"reason", - "value":"قد تشمل هذه إشعارات شاشة القفل وإشعارات شريط الحالة والشارات والأصوات والاهتزازات. يمكنك تغيير هذا من \"الإعدادات\".", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"قد تشمل هذه إشعارات شريط الحالة والشارات والأصوات. يمكنك تغيير هذا من \"الإعدادات\".", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"قد تشمل هذه إشعارات شاشة القفل، واللافتات، والشارات، والأصوات، والاهتزازات. يمكنك تغيير هذه الإعدادات من \"DroiTong > إدارة التطبيقات\".", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"قد تشمل هذه إشعارات شاشة القفل، واللافتات، والشارات، والأصوات، والاهتزازات. يمكنك تغيير هذه الإعدادات من \"EasyAbroad > إدارة التطبيقات\".", - "attr":{ - "priority":"translate" - } - } - -es -, - { - "name":"reason", - "value":"Esto puede incluir las notificaciones en pantalla de bloqueo, las tiras, los globos, los sonidos y las vibraciones. Esta configuración se puede modificar en los Ajustes.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"Esto puede incluir las tiras, los globos y los sonidos. Esta configuración se puede modificar en los Ajustes.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"Estas pueden incluir notificaciones de pantalla de bloqueo, banners, insignias, sonidos y vibraciones. Puedes cambiar estos ajustes en DroiTong > Gestión de aplicaciones.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"Estas pueden incluir notificaciones de pantalla de bloqueo, banners, insignias, sonidos y vibraciones. Puedes cambiar estos ajustes en EasyAbroad > Gestión de aplicaciones.", - "attr":{ - "priority":"translate" - } - } - -fr -, - { - "name":"reason", - "value":"Cela peut inclure des notifications sur l'écran verrouillé, bannières, badges, sons et vibrations. Vous pouvez changer cela dans Paramètres.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"Cela peut inclure des bannières, badges et sons. Vous pouvez changer cela dans Paramètres.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"Il peut s'agir de notifications d'écran verrouillé, de bannières, de badges, de sons et de vibrations. Ces paramètres peuvent être modifiés sous DroiTong > Gestion des applications.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"Il peut s'agir de notifications d'écran verrouillé, de bannières, de badges, de sons et de vibrations. Ces paramètres peuvent être modifiés sous EasyAbroad > Gestion des applications.", - "attr":{ - "priority":"translate" - } - } - -ja -, - { - "name":"reason", - "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれます。これは[設定]で変更できます。", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"これには、バナー、バッジ、サウンドが含まれます。これは[設定]で変更できます。", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれる場合があります。この設定は、[DroiTong ] > [アプリ管理]で変更できます。", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"これには、ロック画面通知、バナー、バッジ、サウンド、バイブレーションが含まれる場合があります。この設定は、[EasyAbroad] > [アプリ管理]で変更できます。", - "attr":{ - "priority":"translate" - } - } - -ko -, - { - "name":"reason", - "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드 및 진동이 포함될 수 있습니다. 설정에서 변경할 수 있습니다.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"여기에는 배너, 배지 및 사운드가 포함될 수 있습니다. 설정에서 변경할 수 있습니다.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드, 진동 등이 포함될 수 있습니다. DroiTong > 앱 관리에서 해당 설정을 변경할 수 있습니다.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"여기에는 잠금 화면 알림, 배너, 배지, 사운드, 진동 등이 포함될 수 있습니다. EasyAbroad > 앱 관리에서 해당 설정을 변경할 수 있습니다.", - "attr":{ - "priority":"translate" - } - } - -ru -, - { - "name":"reason", - "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить это в разделе Настройки.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"Они могут включать уведомления в формате баннеров, метки на значке приложения и звуковые сигналы. Вы можете изменить это в разделе Настройки.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить эти настройки в разделе DroiTong > Управление приложением.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"Они могут включать уведомления на экране блокировки, уведомления в формате баннеров и метки на значках приложений. Уведомления могут поступать со звуком и вибрацией. Вы можете изменить эти настройки в разделе EasyAbroad > Управление приложением.", - "attr":{ - "priority":"translate" - } - } - -vi -, - { - "name":"reason", - "value":"Những nội dung này có thể bao gồm thông báo màn hình khóa, biểu ngữ, dấu báo, âm thanh và chế độ rung. Bạn có thể thay đổi chế độ này trong mục Cài đặt.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_simple", - "value":"Những nội dung này có thể bao gồm biểu ngữ, dấu báo và âm thanh. Bạn có thể thay đổi chế độ này trong mục Cài đặt.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_zyt", - "value":"Những thông báo này có thể bao gồm thông báo trên màn hình khóa, biểu ngữ, huy hiệu, âm thanh và rung. Bạn có thể thay đổi những cài đặt này trong DroiTong > Quản lý ứng dụng.", - "attr":{ - "priority":"translate" - } - }, - { - "name":"reason_cjy", - "value":"Những thông báo này có thể bao gồm thông báo trên màn hình khóa, biểu ngữ, huy hiệu, âm thanh và rung. Bạn có thể thay đổi những cài đặt này trong EasyAbroad > Quản lý ứng dụng.", - "attr":{ - "priority":"translate" - } - } - -ug -"value":"بالداق ئۇقتۇرۇش شۇنىڭ ئىچىدە. بۇ تاللانمىنى تەڭشەكتىن ئۆزگەرتەلەيسىز." \ No newline at end of file -- Gitee