Skip to content

Commit 268dcff

Browse files
committed
feat: add source edit localization
- Added source edit strings - Added source type strings - Added headquarters string
1 parent f698167 commit 268dcff

File tree

5 files changed

+324
-0
lines changed

5 files changed

+324
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,102 @@ abstract class AppLocalizations {
11171117
/// In en, this message translates to:
11181118
/// **'Cannot update: Original category data not loaded.'**
11191119
String get cannotUpdateCategoryError;
1120+
1121+
/// Title for the Edit Source page
1122+
///
1123+
/// In en, this message translates to:
1124+
/// **'Edit Source'**
1125+
String get editSource;
1126+
1127+
/// Message displayed when a source is updated successfully
1128+
///
1129+
/// In en, this message translates to:
1130+
/// **'Source updated successfully.'**
1131+
String get sourceUpdatedSuccessfully;
1132+
1133+
/// Message displayed while loading source data
1134+
///
1135+
/// In en, this message translates to:
1136+
/// **'Loading Source...'**
1137+
String get loadingSource;
1138+
1139+
/// Label for the source URL input field
1140+
///
1141+
/// In en, this message translates to:
1142+
/// **'URL'**
1143+
String get sourceUrl;
1144+
1145+
/// Label for the headquarters dropdown field
1146+
///
1147+
/// In en, this message translates to:
1148+
/// **'Headquarters'**
1149+
String get headquarters;
1150+
1151+
/// Default null option for dropdowns
1152+
///
1153+
/// In en, this message translates to:
1154+
/// **'None'**
1155+
String get none;
1156+
1157+
/// Error message when updating a source fails because the original data wasn't loaded
1158+
///
1159+
/// In en, this message translates to:
1160+
/// **'Cannot update: Original source data not loaded.'**
1161+
String get cannotUpdateSourceError;
1162+
1163+
/// A global news agency (e.g., Reuters, Associated Press).
1164+
///
1165+
/// In en, this message translates to:
1166+
/// **'News Agency'**
1167+
String get sourceTypeNewsAgency;
1168+
1169+
/// A news outlet focused on a specific local area.
1170+
///
1171+
/// In en, this message translates to:
1172+
/// **'Local News Outlet'**
1173+
String get sourceTypeLocalNewsOutlet;
1174+
1175+
/// A news outlet focused on a specific country.
1176+
///
1177+
/// In en, this message translates to:
1178+
/// **'National News Outlet'**
1179+
String get sourceTypeNationalNewsOutlet;
1180+
1181+
/// A news outlet with a broad international focus.
1182+
///
1183+
/// In en, this message translates to:
1184+
/// **'International News Outlet'**
1185+
String get sourceTypeInternationalNewsOutlet;
1186+
1187+
/// A publisher focused on a specific topic (e.g., technology, sports).
1188+
///
1189+
/// In en, this message translates to:
1190+
/// **'Specialized Publisher'**
1191+
String get sourceTypeSpecializedPublisher;
1192+
1193+
/// A blog or personal publication.
1194+
///
1195+
/// In en, this message translates to:
1196+
/// **'Blog'**
1197+
String get sourceTypeBlog;
1198+
1199+
/// An official government source.
1200+
///
1201+
/// In en, this message translates to:
1202+
/// **'Government Source'**
1203+
String get sourceTypeGovernmentSource;
1204+
1205+
/// A service that aggregates news from other sources.
1206+
///
1207+
/// In en, this message translates to:
1208+
/// **'Aggregator'**
1209+
String get sourceTypeAggregator;
1210+
1211+
/// Any other type of source not covered above.
1212+
///
1213+
/// In en, this message translates to:
1214+
/// **'Other'**
1215+
String get sourceTypeOther;
11201216
}
11211217

11221218
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,4 +585,53 @@ class AppLocalizationsAr extends AppLocalizations {
585585
@override
586586
String get cannotUpdateCategoryError =>
587587
'لا يمكن التحديث: لم يتم تحميل بيانات الفئة الأصلية.';
588+
589+
@override
590+
String get editSource => 'تعديل المصدر';
591+
592+
@override
593+
String get sourceUpdatedSuccessfully => 'تم تحديث المصدر بنجاح.';
594+
595+
@override
596+
String get loadingSource => 'جاري تحميل المصدر...';
597+
598+
@override
599+
String get sourceUrl => 'الرابط';
600+
601+
@override
602+
String get headquarters => 'المقر الرئيسي';
603+
604+
@override
605+
String get none => 'لا شيء';
606+
607+
@override
608+
String get cannotUpdateSourceError =>
609+
'لا يمكن التحديث: لم يتم تحميل بيانات المصدر الأصلية.';
610+
611+
@override
612+
String get sourceTypeNewsAgency => 'وكالة أنباء';
613+
614+
@override
615+
String get sourceTypeLocalNewsOutlet => 'منفذ إخباري محلي';
616+
617+
@override
618+
String get sourceTypeNationalNewsOutlet => 'منفذ إخباري وطني';
619+
620+
@override
621+
String get sourceTypeInternationalNewsOutlet => 'منفذ إخباري دولي';
622+
623+
@override
624+
String get sourceTypeSpecializedPublisher => 'ناشر متخصص';
625+
626+
@override
627+
String get sourceTypeBlog => 'مدونة';
628+
629+
@override
630+
String get sourceTypeGovernmentSource => 'مصدر حكومي';
631+
632+
@override
633+
String get sourceTypeAggregator => 'مجمع';
634+
635+
@override
636+
String get sourceTypeOther => 'أخرى';
588637
}

lib/l10n/app_localizations_en.dart

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,4 +583,53 @@ class AppLocalizationsEn extends AppLocalizations {
583583
@override
584584
String get cannotUpdateCategoryError =>
585585
'Cannot update: Original category data not loaded.';
586+
587+
@override
588+
String get editSource => 'Edit Source';
589+
590+
@override
591+
String get sourceUpdatedSuccessfully => 'Source updated successfully.';
592+
593+
@override
594+
String get loadingSource => 'Loading Source...';
595+
596+
@override
597+
String get sourceUrl => 'URL';
598+
599+
@override
600+
String get headquarters => 'Headquarters';
601+
602+
@override
603+
String get none => 'None';
604+
605+
@override
606+
String get cannotUpdateSourceError =>
607+
'Cannot update: Original source data not loaded.';
608+
609+
@override
610+
String get sourceTypeNewsAgency => 'News Agency';
611+
612+
@override
613+
String get sourceTypeLocalNewsOutlet => 'Local News Outlet';
614+
615+
@override
616+
String get sourceTypeNationalNewsOutlet => 'National News Outlet';
617+
618+
@override
619+
String get sourceTypeInternationalNewsOutlet => 'International News Outlet';
620+
621+
@override
622+
String get sourceTypeSpecializedPublisher => 'Specialized Publisher';
623+
624+
@override
625+
String get sourceTypeBlog => 'Blog';
626+
627+
@override
628+
String get sourceTypeGovernmentSource => 'Government Source';
629+
630+
@override
631+
String get sourceTypeAggregator => 'Aggregator';
632+
633+
@override
634+
String get sourceTypeOther => 'Other';
586635
}

lib/l10n/arb/app_ar.arb

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,4 +705,69 @@
705705
"@cannotUpdateCategoryError": {
706706
"description": "رسالة خطأ عند فشل تحديث الفئة بسبب عدم تحميل البيانات الأصلية"
707707
}
708+
,
709+
"editSource": "تعديل المصدر",
710+
"@editSource": {
711+
"description": "عنوان صفحة تعديل المصدر"
712+
},
713+
"sourceUpdatedSuccessfully": "تم تحديث المصدر بنجاح.",
714+
"@sourceUpdatedSuccessfully": {
715+
"description": "رسالة تُعرض عند تحديث المصدر بنجاح"
716+
},
717+
"loadingSource": "جاري تحميل المصدر...",
718+
"@loadingSource": {
719+
"description": "رسالة تُعرض أثناء تحميل بيانات المصدر"
720+
},
721+
"sourceUrl": "الرابط",
722+
"@sourceUrl": {
723+
"description": "تسمية حقل إدخال رابط المصدر"
724+
},
725+
"headquarters": "المقر الرئيسي",
726+
"@headquarters": {
727+
"description": "تسمية حقل القائمة المنسدلة للمقر الرئيسي"
728+
},
729+
"none": "لا شيء",
730+
"@none": {
731+
"description": "خيار افتراضي فارغ للقوائم المنسدلة"
732+
},
733+
"cannotUpdateSourceError": "لا يمكن التحديث: لم يتم تحميل بيانات المصدر الأصلية.",
734+
"@cannotUpdateSourceError": {
735+
"description": "رسالة خطأ عند فشل تحديث المصدر بسبب عدم تحميل البيانات الأصلية"
736+
},
737+
"sourceTypeNewsAgency": "وكالة أنباء",
738+
"@sourceTypeNewsAgency": {
739+
"description": "وكالة أنباء عالمية (مثل رويترز، أسوشيتد برس)."
740+
},
741+
"sourceTypeLocalNewsOutlet": "منفذ إخباري محلي",
742+
"@sourceTypeLocalNewsOutlet": {
743+
"description": "منفذ إخباري يركز على منطقة محلية معينة."
744+
},
745+
"sourceTypeNationalNewsOutlet": "منفذ إخباري وطني",
746+
"@sourceTypeNationalNewsOutlet": {
747+
"description": "منفذ إخباري يركز على بلد معين."
748+
},
749+
"sourceTypeInternationalNewsOutlet": "منفذ إخباري دولي",
750+
"@sourceTypeInternationalNewsOutlet": {
751+
"description": "منفذ إخباري ذو تركيز دولي واسع."
752+
},
753+
"sourceTypeSpecializedPublisher": "ناشر متخصص",
754+
"@sourceTypeSpecializedPublisher": {
755+
"description": "ناشر يركز على موضوع معين (مثل التكنولوجيا، الرياضة)."
756+
},
757+
"sourceTypeBlog": "مدونة",
758+
"@sourceTypeBlog": {
759+
"description": "مدونة أو منشور شخصي."
760+
},
761+
"sourceTypeGovernmentSource": "مصدر حكومي",
762+
"@sourceTypeGovernmentSource": {
763+
"description": "مصدر حكومي رسمي."
764+
},
765+
"sourceTypeAggregator": "مجمع",
766+
"@sourceTypeAggregator": {
767+
"description": "خدمة تجمع الأخبار من مصادر أخرى."
768+
},
769+
"sourceTypeOther": "أخرى",
770+
"@sourceTypeOther": {
771+
"description": "أي نوع آخر من المصادر غير المذكورة أعلاه."
772+
}
708773
}

lib/l10n/arb/app_en.arb

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,4 +704,69 @@
704704
"@cannotUpdateCategoryError": {
705705
"description": "Error message when updating a category fails because the original data wasn't loaded"
706706
}
707+
,
708+
"editSource": "Edit Source",
709+
"@editSource": {
710+
"description": "Title for the Edit Source page"
711+
},
712+
"sourceUpdatedSuccessfully": "Source updated successfully.",
713+
"@sourceUpdatedSuccessfully": {
714+
"description": "Message displayed when a source is updated successfully"
715+
},
716+
"loadingSource": "Loading Source...",
717+
"@loadingSource": {
718+
"description": "Message displayed while loading source data"
719+
},
720+
"sourceUrl": "URL",
721+
"@sourceUrl": {
722+
"description": "Label for the source URL input field"
723+
},
724+
"headquarters": "Headquarters",
725+
"@headquarters": {
726+
"description": "Label for the headquarters dropdown field"
727+
},
728+
"none": "None",
729+
"@none": {
730+
"description": "Default null option for dropdowns"
731+
},
732+
"cannotUpdateSourceError": "Cannot update: Original source data not loaded.",
733+
"@cannotUpdateSourceError": {
734+
"description": "Error message when updating a source fails because the original data wasn't loaded"
735+
},
736+
"sourceTypeNewsAgency": "News Agency",
737+
"@sourceTypeNewsAgency": {
738+
"description": "A global news agency (e.g., Reuters, Associated Press)."
739+
},
740+
"sourceTypeLocalNewsOutlet": "Local News Outlet",
741+
"@sourceTypeLocalNewsOutlet": {
742+
"description": "A news outlet focused on a specific local area."
743+
},
744+
"sourceTypeNationalNewsOutlet": "National News Outlet",
745+
"@sourceTypeNationalNewsOutlet": {
746+
"description": "A news outlet focused on a specific country."
747+
},
748+
"sourceTypeInternationalNewsOutlet": "International News Outlet",
749+
"@sourceTypeInternationalNewsOutlet": {
750+
"description": "A news outlet with a broad international focus."
751+
},
752+
"sourceTypeSpecializedPublisher": "Specialized Publisher",
753+
"@sourceTypeSpecializedPublisher": {
754+
"description": "A publisher focused on a specific topic (e.g., technology, sports)."
755+
},
756+
"sourceTypeBlog": "Blog",
757+
"@sourceTypeBlog": {
758+
"description": "A blog or personal publication."
759+
},
760+
"sourceTypeGovernmentSource": "Government Source",
761+
"@sourceTypeGovernmentSource": {
762+
"description": "An official government source."
763+
},
764+
"sourceTypeAggregator": "Aggregator",
765+
"@sourceTypeAggregator": {
766+
"description": "A service that aggregates news from other sources."
767+
},
768+
"sourceTypeOther": "Other",
769+
"@sourceTypeOther": {
770+
"description": "Any other type of source not covered above."
771+
}
707772
}

0 commit comments

Comments
 (0)