Skip to content

Commit b97cc3b

Browse files
committed
feat(l10n): add translations for filter apply dialog
- Add Arabic and English translations for new filter apply dialog - Include title, content, and button text for both languages - Maintain consistent naming and description for each translation
1 parent e2ce94d commit b97cc3b

File tree

5 files changed

+82
-0
lines changed

5 files changed

+82
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,30 @@ abstract class AppLocalizations {
18791879
/// In en, this message translates to:
18801880
/// **'Custom'**
18811881
String get savedFiltersBarCustomLabel;
1882+
1883+
/// Title for the dialog that asks the user how to apply a filter.
1884+
///
1885+
/// In en, this message translates to:
1886+
/// **'Apply Filter'**
1887+
String get applyFilterDialogTitle;
1888+
1889+
/// Content for the dialog that asks the user how to apply a filter.
1890+
///
1891+
/// In en, this message translates to:
1892+
/// **'Do you want to apply these filter settings for this session only, or save them for future use?'**
1893+
String get applyFilterDialogContent;
1894+
1895+
/// Button text to apply the filter for the current session only.
1896+
///
1897+
/// In en, this message translates to:
1898+
/// **'Apply Only'**
1899+
String get applyFilterDialogApplyOnlyButton;
1900+
1901+
/// Button text to apply and save the filter for future use.
1902+
///
1903+
/// In en, this message translates to:
1904+
/// **'Apply & Save'**
1905+
String get applyFilterDialogApplyAndSaveButton;
18821906
}
18831907

18841908
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,4 +986,17 @@ class AppLocalizationsAr extends AppLocalizations {
986986

987987
@override
988988
String get savedFiltersBarCustomLabel => 'مخصص';
989+
990+
@override
991+
String get applyFilterDialogTitle => 'تطبيق الفلتر';
992+
993+
@override
994+
String get applyFilterDialogContent =>
995+
'هل تريد تطبيق إعدادات الفلترة هذه لهذه الجلسة فقط، أم حفظها للاستخدام المستقبلي؟';
996+
997+
@override
998+
String get applyFilterDialogApplyOnlyButton => 'تطبيق فقط';
999+
1000+
@override
1001+
String get applyFilterDialogApplyAndSaveButton => 'تطبيق وحفظ';
9891002
}

lib/l10n/app_localizations_en.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,4 +987,17 @@ class AppLocalizationsEn extends AppLocalizations {
987987

988988
@override
989989
String get savedFiltersBarCustomLabel => 'Custom';
990+
991+
@override
992+
String get applyFilterDialogTitle => 'Apply Filter';
993+
994+
@override
995+
String get applyFilterDialogContent =>
996+
'Do you want to apply these filter settings for this session only, or save them for future use?';
997+
998+
@override
999+
String get applyFilterDialogApplyOnlyButton => 'Apply Only';
1000+
1001+
@override
1002+
String get applyFilterDialogApplyAndSaveButton => 'Apply & Save';
9901003
}

lib/l10n/arb/app_ar.arb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,5 +1293,21 @@
12931293
"savedFiltersBarCustomLabel": "مخصص",
12941294
"@savedFiltersBarCustomLabel": {
12951295
"description": "Label for the 'Custom' chip in the saved filters bar, indicating an unsaved filter is active."
1296+
},
1297+
"applyFilterDialogTitle": "تطبيق الفلتر",
1298+
"@applyFilterDialogTitle": {
1299+
"description": "Title for the dialog that asks the user how to apply a filter."
1300+
},
1301+
"applyFilterDialogContent": "هل تريد تطبيق إعدادات الفلترة هذه لهذه الجلسة فقط، أم حفظها للاستخدام المستقبلي؟",
1302+
"@applyFilterDialogContent": {
1303+
"description": "Content for the dialog that asks the user how to apply a filter."
1304+
},
1305+
"applyFilterDialogApplyOnlyButton": "تطبيق فقط",
1306+
"@applyFilterDialogApplyOnlyButton": {
1307+
"description": "Button text to apply the filter for the current session only."
1308+
},
1309+
"applyFilterDialogApplyAndSaveButton": "تطبيق وحفظ",
1310+
"@applyFilterDialogApplyAndSaveButton": {
1311+
"description": "Button text to apply and save the filter for future use."
12961312
}
12971313
}

lib/l10n/arb/app_en.arb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,5 +1293,21 @@
12931293
"savedFiltersBarCustomLabel": "Custom",
12941294
"@savedFiltersBarCustomLabel": {
12951295
"description": "Label for the 'Custom' chip in the saved filters bar, indicating an unsaved filter is active."
1296+
},
1297+
"applyFilterDialogTitle": "Apply Filter",
1298+
"@applyFilterDialogTitle": {
1299+
"description": "Title for the dialog that asks the user how to apply a filter."
1300+
},
1301+
"applyFilterDialogContent": "Do you want to apply these filter settings for this session only, or save them for future use?",
1302+
"@applyFilterDialogContent": {
1303+
"description": "Content for the dialog that asks the user how to apply a filter."
1304+
},
1305+
"applyFilterDialogApplyOnlyButton": "Apply Only",
1306+
"@applyFilterDialogApplyOnlyButton": {
1307+
"description": "Button text to apply the filter for the current session only."
1308+
},
1309+
"applyFilterDialogApplyAndSaveButton": "Apply & Save",
1310+
"@applyFilterDialogApplyAndSaveButton": {
1311+
"description": "Button text to apply and save the filter for future use."
12961312
}
12971313
}

0 commit comments

Comments
 (0)