Skip to content

Commit 3aadf18

Browse files
committed
fix(l10n): update translations for 'category' to 'topic'
- Updated English, Arabic translations - Changed "category" to "topic" in UI - Updated related descriptions and labels - Corrected loading and error messages - Reflected changes in dashboard summary
1 parent 5d9fb53 commit 3aadf18

File tree

3 files changed

+72
-72
lines changed

3 files changed

+72
-72
lines changed

lib/l10n/app_localizations.dart

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ abstract class AppLocalizations {
227227
/// Description for the Content Management page
228228
///
229229
/// In en, this message translates to:
230-
/// **'Manage news headlines, categories, and sources for the Dashboard.'**
230+
/// **'Manage news headlines, topics, and sources for the Dashboard.'**
231231
String get contentManagementPageDescription;
232232

233233
/// Label for the headlines subpage
@@ -236,11 +236,11 @@ abstract class AppLocalizations {
236236
/// **'Headlines'**
237237
String get headlines;
238238

239-
/// Label for the categories subpage
239+
/// Label for the topics subpage
240240
///
241241
/// In en, this message translates to:
242-
/// **'Categories'**
243-
String get categories;
242+
/// **'Topics'**
243+
String get topics;
244244

245245
/// Label for the sources subpage
246246
///
@@ -383,7 +383,7 @@ abstract class AppLocalizations {
383383
/// Description for User Content Limits section
384384
///
385385
/// In en, this message translates to:
386-
/// **'These settings define the maximum number of countries, news sources, categories, and saved headlines a user can follow or save. Limits vary by user type (Guest, Standard, Premium) and directly impact what content users can curate.'**
386+
/// **'These settings define the maximum number of countries, news sources, topics, and saved headlines a user can follow or save. Limits vary by user type (Guest, Standard, Premium) and directly impact what content users can curate.'**
387387
String get userContentLimitsDescription;
388388

389389
/// Tab title for Guest user role
@@ -413,7 +413,7 @@ abstract class AppLocalizations {
413413
/// Description for Guest Followed Items Limit
414414
///
415415
/// In en, this message translates to:
416-
/// **'Maximum number of countries, news sources, or categories a Guest user can follow (each type has its own limit).'**
416+
/// **'Maximum number of countries, news sources, or topics a Guest user can follow (each type has its own limit).'**
417417
String get guestFollowedItemsLimitDescription;
418418

419419
/// Label for Guest Saved Headlines Limit
@@ -437,7 +437,7 @@ abstract class AppLocalizations {
437437
/// Description for Standard User Followed Items Limit
438438
///
439439
/// In en, this message translates to:
440-
/// **'Maximum number of countries, news sources, or categories a Standard user can follow (each type has its own limit).'**
440+
/// **'Maximum number of countries, news sources, or topics a Standard user can follow (each type has its own limit).'**
441441
String get standardUserFollowedItemsLimitDescription;
442442

443443
/// Label for Standard User Saved Headlines Limit
@@ -461,7 +461,7 @@ abstract class AppLocalizations {
461461
/// Description for Premium Followed Items Limit
462462
///
463463
/// In en, this message translates to:
464-
/// **'Maximum number of countries, news sources, or categories a Premium user can follow (each type has its own limit).'**
464+
/// **'Maximum number of countries, news sources, or topics a Premium user can follow (each type has its own limit).'**
465465
String get premiumFollowedItemsLimitDescription;
466466

467467
/// Label for Premium Saved Headlines Limit
@@ -1034,23 +1034,23 @@ abstract class AppLocalizations {
10341034
/// **'Unknown'**
10351035
String get unknown;
10361036

1037-
/// Headline for loading state of categories
1037+
/// Headline for loading state of topics
10381038
///
10391039
/// In en, this message translates to:
1040-
/// **'Loading Categories'**
1041-
String get loadingCategories;
1040+
/// **'Loading Topics'**
1041+
String get loadingTopics;
10421042

1043-
/// Message when no categories are found
1043+
/// Message when no topics are found
10441044
///
10451045
/// In en, this message translates to:
1046-
/// **'No categories found.'**
1047-
String get noCategoriesFound;
1046+
/// **'No topics found.'**
1047+
String get noTopicsFound;
10481048

1049-
/// Label for the category name field in forms and tables.
1049+
/// Label for the topic name field in forms and tables.
10501050
///
10511051
/// In en, this message translates to:
1052-
/// **'Category Name'**
1053-
String get categoryName;
1052+
/// **'Topic Name'**
1053+
String get topicName;
10541054

10551055
/// Column header for description
10561056
///
@@ -1094,53 +1094,53 @@ abstract class AppLocalizations {
10941094
/// **'Language'**
10951095
String get language;
10961096

1097-
/// Title for the Edit Category page
1097+
/// Title for the Edit Topic page
10981098
///
10991099
/// In en, this message translates to:
1100-
/// **'Edit Category'**
1101-
String get editCategory;
1100+
/// **'Edit Topic'**
1101+
String get editTopic;
11021102

11031103
/// Tooltip for the save changes button
11041104
///
11051105
/// In en, this message translates to:
11061106
/// **'Save Changes'**
11071107
String get saveChanges;
11081108

1109-
/// Message displayed while loading category data
1109+
/// Message displayed while loading topic data
11101110
///
11111111
/// In en, this message translates to:
1112-
/// **'Loading Category'**
1113-
String get loadingCategory;
1112+
/// **'Loading Topic'**
1113+
String get loadingTopic;
11141114

11151115
/// Label for the icon URL input field
11161116
///
11171117
/// In en, this message translates to:
11181118
/// **'Icon URL'**
11191119
String get iconUrl;
11201120

1121-
/// Message displayed when a category is updated successfully
1121+
/// Message displayed when a topic is updated successfully
11221122
///
11231123
/// In en, this message translates to:
1124-
/// **'Category updated successfully.'**
1125-
String get categoryUpdatedSuccessfully;
1124+
/// **'Topic updated successfully.'**
1125+
String get topicUpdatedSuccessfully;
11261126

1127-
/// Error message when updating a category fails because the original data wasn't loaded
1127+
/// Error message when updating a topic fails because the original data wasn't loaded
11281128
///
11291129
/// In en, this message translates to:
1130-
/// **'Cannot update: Original category data not loaded.'**
1131-
String get cannotUpdateCategoryError;
1130+
/// **'Cannot update: Original topic data not loaded.'**
1131+
String get cannotUpdateTopicError;
11321132

1133-
/// Title for the Create Category page
1133+
/// Title for the Create Topic page
11341134
///
11351135
/// In en, this message translates to:
1136-
/// **'Create Category'**
1137-
String get createCategory;
1136+
/// **'Create Topic'**
1137+
String get createTopic;
11381138

1139-
/// Message displayed when a category is created successfully
1139+
/// Message displayed when a topic is created successfully
11401140
///
11411141
/// In en, this message translates to:
1142-
/// **'Category created successfully.'**
1143-
String get categoryCreatedSuccessfully;
1142+
/// **'Topic created successfully.'**
1143+
String get topicCreatedSuccessfully;
11441144

11451145
/// Title for the Edit Source page
11461146
///
@@ -1334,11 +1334,11 @@ abstract class AppLocalizations {
13341334
/// **'Total Headlines'**
13351335
String get totalHeadlines;
13361336

1337-
/// Label for the total categories summary card on the dashboard
1337+
/// Label for the total topics summary card on the dashboard
13381338
///
13391339
/// In en, this message translates to:
1340-
/// **'Total Categories'**
1341-
String get totalCategories;
1340+
/// **'Total Topics'**
1341+
String get totalTopics;
13421342

13431343
/// Label for the total sources summary card on the dashboard
13441344
///

lib/l10n/app_localizations_ar.dart

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ class AppLocalizationsAr extends AppLocalizations {
8282

8383
@override
8484
String get contentManagementPageDescription =>
85-
'إدارة العناوين الإخبارية والفئات والمصادر للوحة القيادة.';
85+
'إدارة العناوين الإخبارية والمواضيع والمصادر للوحة القيادة.';
8686

8787
@override
8888
String get headlines => 'العناوين الرئيسية';
8989

9090
@override
91-
String get categories => 'الفئات';
91+
String get topics => 'المواضيع';
9292

9393
@override
9494
String get sources => 'المصادر';
@@ -167,7 +167,7 @@ class AppLocalizationsAr extends AppLocalizations {
167167

168168
@override
169169
String get userContentLimitsDescription =>
170-
'تحدد هذه الإعدادات الحد الأقصى لعدد البلدان ومصادر الأخبار والفئات والعناوين المحفوظة التي يمكن للمستخدم متابعتها أو حفظها. تختلف الحدود حسب نوع المستخدم (ضيف، عادي، مميز) وتؤثر بشكل مباشر على المحتوى الذي يمكن للمستخدمين تنسيقه.';
170+
'تحدد هذه الإعدادات الحد الأقصى لعدد البلدان ومصادر الأخبار والمواضيع والعناوين المحفوظة التي يمكن للمستخدم متابعتها أو حفظها. تختلف الحدود حسب نوع المستخدم (ضيف، عادي، مميز) وتؤثر بشكل مباشر على المحتوى الذي يمكن للمستخدمين تنسيقه.';
171171

172172
@override
173173
String get guestUserTab => 'ضيف';
@@ -183,7 +183,7 @@ class AppLocalizationsAr extends AppLocalizations {
183183

184184
@override
185185
String get guestFollowedItemsLimitDescription =>
186-
'الحد الأقصى لعدد البلدان أو مصادر الأخبار أو الفئات التي يمكن للمستخدم الضيف متابعتها (لكل نوع حد خاص به).';
186+
'الحد الأقصى لعدد البلدان أو مصادر الأخبار أو المواضيع التي يمكن للمستخدم الضيف متابعتها (لكل نوع حد خاص به).';
187187

188188
@override
189189
String get guestSavedHeadlinesLimitLabel => 'حد العناوين المحفوظة للضيف';
@@ -198,7 +198,7 @@ class AppLocalizationsAr extends AppLocalizations {
198198

199199
@override
200200
String get standardUserFollowedItemsLimitDescription =>
201-
'الحد الأقصى لعدد البلدان أو مصادر الأخبار أو الفئات التي يمكن للمستخدم العادي متابعتها (لكل نوع حد خاص به).';
201+
'الحد الأقصى لعدد البلدان أو مصادر الأخبار أو المواضيع التي يمكن للمستخدم العادي متابعتها (لكل نوع حد خاص به).';
202202

203203
@override
204204
String get standardUserSavedHeadlinesLimitLabel =>
@@ -214,7 +214,7 @@ class AppLocalizationsAr extends AppLocalizations {
214214

215215
@override
216216
String get premiumFollowedItemsLimitDescription =>
217-
'الحد الأقصى لعدد البلدان أو مصادر الأخبار أو الفئات التي يمكن للمستخدم المميز متابعتها (لكل نوع حد خاص به).';
217+
'الحد الأقصى لعدد البلدان أو مصادر الأخبار أو المواضيع التي يمكن للمستخدم المميز متابعتها (لكل نوع حد خاص به).';
218218

219219
@override
220220
String get premiumSavedHeadlinesLimitLabel =>
@@ -545,13 +545,13 @@ class AppLocalizationsAr extends AppLocalizations {
545545
String get unknown => 'غير معروف';
546546

547547
@override
548-
String get loadingCategories => 'جاري تحميل الفئات';
548+
String get loadingTopics => 'جاري تحميل المواضيع';
549549

550550
@override
551-
String get noCategoriesFound => 'لم يتم العثور على فئات.';
551+
String get noTopicsFound => 'لم يتم العثور على مواضيع.';
552552

553553
@override
554-
String get categoryName => 'اسم الفئة';
554+
String get topicName => 'اسم الموضوع';
555555

556556
@override
557557
String get description => 'الوصف';
@@ -575,29 +575,29 @@ class AppLocalizationsAr extends AppLocalizations {
575575
String get language => 'اللغة';
576576

577577
@override
578-
String get editCategory => 'تعديل الفئة';
578+
String get editTopic => 'تعديل الموضوع';
579579

580580
@override
581581
String get saveChanges => 'حفظ التغييرات';
582582

583583
@override
584-
String get loadingCategory => 'جاري تحميل الفئة';
584+
String get loadingTopic => 'جاري تحميل الموضوع';
585585

586586
@override
587587
String get iconUrl => 'رابط الأيقونة';
588588

589589
@override
590-
String get categoryUpdatedSuccessfully => 'تم تحديث الفئة بنجاح.';
590+
String get topicUpdatedSuccessfully => 'تم تحديث الموضوع بنجاح.';
591591

592592
@override
593-
String get cannotUpdateCategoryError =>
594-
'لا يمكن التحديث: لم يتم تحميل بيانات الفئة الأصلية.';
593+
String get cannotUpdateTopicError =>
594+
'لا يمكن التحديث: لم يتم تحميل بيانات الموضوع الأصلية.';
595595

596596
@override
597-
String get createCategory => 'إنشاء فئة';
597+
String get createTopic => 'إنشاء موضوع';
598598

599599
@override
600-
String get categoryCreatedSuccessfully => 'تم إنشاء الفئة بنجاح.';
600+
String get topicCreatedSuccessfully => 'تم إنشاء الموضوع بنجاح.';
601601

602602
@override
603603
String get editSource => 'تعديل المصدر';
@@ -698,7 +698,7 @@ class AppLocalizationsAr extends AppLocalizations {
698698
String get totalHeadlines => 'إجمالي العناوين';
699699

700700
@override
701-
String get totalCategories => 'إجمالي الفئات';
701+
String get totalTopics => 'إجمالي المواضيع';
702702

703703
@override
704704
String get totalSources => 'إجمالي المصادر';

0 commit comments

Comments
 (0)