Skip to content

Commit 971cc44

Browse files
committed
refactor(push-notification): update provider configuration descriptions
- Remove separate configuration info entries for push notification providers - Integrate configuration instructions directly into the primary provider description - Update descriptions in both English and Arabic localization files
1 parent 807c671 commit 971cc44

File tree

5 files changed

+8
-54
lines changed

5 files changed

+8
-54
lines changed

lib/l10n/app_localizations.dart

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,7 +2861,7 @@ abstract class AppLocalizations {
28612861
/// Description for the Push Notification Primary Provider section
28622862
///
28632863
/// In en, this message translates to:
2864-
/// **'Select the primary service provider for sending push notifications.'**
2864+
/// **'Select the primary service provider. Ensure the chosen provider is correctly configured in your backend\'s .env file as per the documentation.'**
28652865
String get pushNotificationPrimaryProviderDescription;
28662866

28672867
/// Title for the Push Notification Delivery Types section
@@ -2887,18 +2887,6 @@ abstract class AppLocalizations {
28872887
/// In en, this message translates to:
28882888
/// **'OneSignal'**
28892889
String get pushNotificationProviderOneSignal;
2890-
2891-
/// Title for the informational note about backend configuration for push notification providers.
2892-
///
2893-
/// In en, this message translates to:
2894-
/// **'Backend Configuration Note'**
2895-
String get pushNotificationProviderConfigInfoTitle;
2896-
2897-
/// Informational message about configuring the selected push notification provider in the backend.
2898-
///
2899-
/// In en, this message translates to:
2900-
/// **'Please ensure the selected provider is correctly configured in your backend\'s environment file. Refer to the server setup documentation for details on the required variables.'**
2901-
String get pushNotificationProviderConfigInfoBody;
29022890
}
29032891

29042892
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ class AppLocalizationsAr extends AppLocalizations {
15311531

15321532
@override
15331533
String get pushNotificationPrimaryProviderDescription =>
1534-
'اختر مزود الخدمة الأساسي لإرسال الإشعارات الفورية.';
1534+
'اختر مزود الخدمة الأساسي. تأكد من أن المزود المختار قد تم إعداده بشكل صحيح في ملف .env الخاص بالواجهة الخلفية.';
15351535

15361536
@override
15371537
String get pushNotificationDeliveryTypesTitle => 'أنواع التسليم';
@@ -1545,12 +1545,4 @@ class AppLocalizationsAr extends AppLocalizations {
15451545

15461546
@override
15471547
String get pushNotificationProviderOneSignal => 'OneSignal';
1548-
1549-
@override
1550-
String get pushNotificationProviderConfigInfoTitle =>
1551-
'ملاحظة حول تكوين الواجهة الخلفية';
1552-
1553-
@override
1554-
String get pushNotificationProviderConfigInfoBody =>
1555-
'يرجى التأكد من أن المزود المحدد قد تم إعداده بشكل صحيح في ملف البيئة الخاص بالواجهة الخلفية. للحصول على تفاصيل حول المتغيرات المطلوبة، يرجى الرجوع إلى وثائق إعداد الخادم.';
15561548
}

lib/l10n/app_localizations_en.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ class AppLocalizationsEn extends AppLocalizations {
15341534

15351535
@override
15361536
String get pushNotificationPrimaryProviderDescription =>
1537-
'Select the primary service provider for sending push notifications.';
1537+
'Select the primary service provider. Ensure the chosen provider is correctly configured in your backend\'s .env file as per the documentation.';
15381538

15391539
@override
15401540
String get pushNotificationDeliveryTypesTitle => 'Delivery Types';
@@ -1548,12 +1548,4 @@ class AppLocalizationsEn extends AppLocalizations {
15481548

15491549
@override
15501550
String get pushNotificationProviderOneSignal => 'OneSignal';
1551-
1552-
@override
1553-
String get pushNotificationProviderConfigInfoTitle =>
1554-
'Backend Configuration Note';
1555-
1556-
@override
1557-
String get pushNotificationProviderConfigInfoBody =>
1558-
'Please ensure the selected provider is correctly configured in your backend\'s environment file. Refer to the server setup documentation for details on the required variables.';
15591551
}

lib/l10n/arb/app_ar.arb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@
19281928
"@pushNotificationPrimaryProviderTitle": {
19291929
"description": "عنوان قسم المزود الأساسي للإشعارات الفورية"
19301930
},
1931-
"pushNotificationPrimaryProviderDescription": "اختر مزود الخدمة الأساسي لإرسال الإشعارات الفورية.",
1931+
"pushNotificationPrimaryProviderDescription": "اختر مزود الخدمة الأساسي. تأكد من أن المزود المختار قد تم إعداده بشكل صحيح في ملف .env الخاص بالواجهة الخلفية.",
19321932
"@pushNotificationPrimaryProviderDescription": {
19331933
"description": "وصف قسم المزود الأساسي للإشعارات الفورية"
19341934
},
@@ -1947,13 +1947,5 @@
19471947
"pushNotificationProviderOneSignal": "OneSignal",
19481948
"@pushNotificationProviderOneSignal": {
19491949
"description": "تسمية مزود الإشعارات الفورية OneSignal"
1950-
},
1951-
"pushNotificationProviderConfigInfoTitle": "ملاحظة حول تكوين الواجهة الخلفية",
1952-
"@pushNotificationProviderConfigInfoTitle": {
1953-
"description": "عنوان الملاحظة المعلوماتية حول إعداد الواجهة الخلفية لمزودي خدمة الإشعارات."
1954-
},
1955-
"pushNotificationProviderConfigInfoBody": "يرجى التأكد من أن المزود المحدد قد تم إعداده بشكل صحيح في ملف البيئة الخاص بالواجهة الخلفية. للحصول على تفاصيل حول المتغيرات المطلوبة، يرجى الرجوع إلى وثائق إعداد الخادم.",
1956-
"@pushNotificationProviderConfigInfoBody": {
1957-
"description": "رسالة معلوماتية حول تكوين مزود الإشعارات المختار في الواجهة الخلفية."
19581950
}
19591951
}

lib/l10n/arb/app_en.arb

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@
17981798
"@subscriptionPremium": {
17991799
"description": "Subscription status for a premium user"
18001800
},
1801-
"savedHeadlineFilterLimitsTitle": "Saved Headline Filter Limits",
1801+
"savedHeadlineFilterLimitsTitle": "Saved Headline Filter Limits",
18021802
"@savedHeadlineFilterLimitsTitle": {
18031803
"description": "Title for the Saved Headline Filter Limits section"
18041804
},
@@ -1849,8 +1849,7 @@
18491849
"pushNotificationSubscriptionDeliveryTypeWeeklyRoundup": "Weekly Roundup",
18501850
"@pushNotificationSubscriptionDeliveryTypeWeeklyRoundup": {
18511851
"description": "Label for the 'weekly roundup' push notification delivery type"
1852-
}
1853-
,
1852+
},
18541853
"isBreakingNewsLabel": "Mark as Breaking News",
18551854
"@isBreakingNewsLabel": {
18561855
"description": "Label for the switch to mark a headline as breaking news"
@@ -1898,8 +1897,7 @@
18981897
"breakingNewsFilterNonBreakingOnly": "Non-Breaking Only",
18991898
"@breakingNewsFilterNonBreakingOnly": {
19001899
"description": "Label for the 'Non-Breaking Only' choice chip in the breaking news filter."
1901-
}
1902-
,
1900+
},
19031901
"notificationsTab": "Notifications",
19041902
"@notificationsTab": {
19051903
"description": "Tab title for Notifications settings"
@@ -1924,7 +1922,7 @@
19241922
"@pushNotificationPrimaryProviderTitle": {
19251923
"description": "Title for the Push Notification Primary Provider section"
19261924
},
1927-
"pushNotificationPrimaryProviderDescription": "Select the primary service provider for sending push notifications.",
1925+
"pushNotificationPrimaryProviderDescription": "Select the primary service provider. Ensure the chosen provider is correctly configured in your backend's .env file as per the documentation.",
19281926
"@pushNotificationPrimaryProviderDescription": {
19291927
"description": "Description for the Push Notification Primary Provider section"
19301928
},
@@ -1943,13 +1941,5 @@
19431941
"pushNotificationProviderOneSignal": "OneSignal",
19441942
"@pushNotificationProviderOneSignal": {
19451943
"description": "Label for the OneSignal push notification provider"
1946-
},
1947-
"pushNotificationProviderConfigInfoTitle": "Backend Configuration Note",
1948-
"@pushNotificationProviderConfigInfoTitle": {
1949-
"description": "Title for the informational note about backend configuration for push notification providers."
1950-
},
1951-
"pushNotificationProviderConfigInfoBody": "Please ensure the selected provider is correctly configured in your backend's environment file. Refer to the server setup documentation for details on the required variables.",
1952-
"@pushNotificationProviderConfigInfoBody": {
1953-
"description": "Informational message about configuring the selected push notification provider in the backend."
19541944
}
19551945
}

0 commit comments

Comments
 (0)