Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove 'last year' and 'last month' header titles for groups

ashilkn0a6558bf4842
diff --git a/mobile/apps/photos/lib/generated/intl/messages_en.dart b/mobile/apps/photos/lib/generated/intl/messages_en.dart
index 4a3efded7c..71e695f344 100644
--- a/mobile/apps/photos/lib/generated/intl/messages_en.dart
+++ b/mobile/apps/photos/lib/generated/intl/messages_en.dart
@@ -1199,11 +1199,9 @@ class MessageLookup extends MessageLookupByLibrary {
"kindlyHelpUsWithThisInformation": MessageLookupByLibrary.simpleMessage(
"Kindly help us with this information"),
"language": MessageLookupByLibrary.simpleMessage("Language"),
- "lastMonth": MessageLookupByLibrary.simpleMessage("Last month"),
"lastTimeWithThem": m45,
"lastUpdated": MessageLookupByLibrary.simpleMessage("Last updated"),
"lastWeek": MessageLookupByLibrary.simpleMessage("Last week"),
- "lastYear": MessageLookupByLibrary.simpleMessage("Last year"),
"lastYearsTrip":
MessageLookupByLibrary.simpleMessage("Last year\'s trip"),
"leave": MessageLookupByLibrary.simpleMessage("Leave"),
diff --git a/mobile/apps/photos/lib/generated/l10n.dart b/mobile/apps/photos/lib/generated/l10n.dart
index 8d337ca777..c659e463e4 100644
--- a/mobile/apps/photos/lib/generated/l10n.dart
+++ b/mobile/apps/photos/lib/generated/l10n.dart
@@ -12326,16 +12326,6 @@ class S {
);
}
- /// `Last month`
- String get lastMonth {
- return Intl.message(
- 'Last month',
- name: 'lastMonth',
- desc: '',
- args: [],
- );
- }
-
/// `This year`
String get thisYear {
return Intl.message(
@@ -12346,16 +12336,6 @@ class S {
);
}
- /// `Last year`
- String get lastYear {
- return Intl.message(
- 'Last year',
- name: 'lastYear',
- desc: '',
- args: [],
- );
- }
-
/// `Group by`
String get groupBy {
return Intl.message(
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 164b65d237..b139f16c78 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -1792,9 +1792,7 @@
"thisWeek": "This week",
"lastWeek": "Last week",
"thisMonth": "This month",
- "lastMonth": "Last month",
"thisYear": "This year",
- "lastYear": "Last year",
"groupBy": "Group by",
"faceThumbnailGenerationFailed": "Unable to generate face thumbnails",
"fileAnalysisFailed": "Unable to analyze file"
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart
index cbf17ffd21..4c36366616 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart
@@ -223,12 +223,6 @@ extension GroupTypeExtension on GroupType {
return S.of(context).thisMonth;
}
- // Check if it's the previous month
- final lastMonth = DateTime(now.year, now.month - 1);
- if (date.year == lastMonth.year && date.month == lastMonth.month) {
- return S.of(context).lastMonth;
- }
-
return DateFormat.yMMM(Localizations.localeOf(context).languageCode)
.format(date);
}
@@ -241,11 +235,6 @@ extension GroupTypeExtension on GroupType {
return S.of(context).thisYear;
}
- // Check if it's the previous year
- if (date.year == now.year - 1) {
- return S.of(context).lastYear;
- }
-
return DateFormat.y(Localizations.localeOf(context).languageCode)
.format(date);
}