From 887c79467b382655187bcd179ea756fbd8f7ce75 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Tue, 23 Aug 2022 10:58:08 +0200 Subject: [PATCH] improved locale --- lib/locale/l10n/app_de.arb | 1 + lib/locale/l10n/app_en.arb | 7 ++----- lib/screens/calendar_screen.dart | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/locale/l10n/app_de.arb b/lib/locale/l10n/app_de.arb index cca119d..7d4bc57 100644 --- a/lib/locale/l10n/app_de.arb +++ b/lib/locale/l10n/app_de.arb @@ -117,6 +117,7 @@ "calendarScreenTitle": "Kalendar", + "calendarScreenSelectionTitle": "{count,plural, =1{Eine Erinnerung} other{{count} Erinnerungen}} ausgewählt", "timelineScreenTitle": "Timeline", diff --git a/lib/locale/l10n/app_en.arb b/lib/locale/l10n/app_en.arb index bec224e..035b44e 100644 --- a/lib/locale/l10n/app_en.arb +++ b/lib/locale/l10n/app_en.arb @@ -167,13 +167,10 @@ "calendarScreenTitle": "Calendar", - "calendarScreenSelectionTitle": "Selected {memories,plural, =1{one memory} other{{memories} memories}}", + "calendarScreenSelectionTitle": "Selected {count,plural, =1{one memory} other{{count} memories}}", "@calendarScreenSelectionTitle": { "placeholders": { - "days": { - "type": "int" - }, - "memories": { + "count": { "type": "int" } } diff --git a/lib/screens/calendar_screen.dart b/lib/screens/calendar_screen.dart index 98d9d0b..bbd49e0 100644 --- a/lib/screens/calendar_screen.dart +++ b/lib/screens/calendar_screen.dart @@ -74,7 +74,6 @@ class CalendarScreen extends StatelessWidget { title: Text( calendar.isInSelectMode ? localizations.calendarScreenSelectionTitle( - calendar.selectedDates.length, calendar.filterMemories(memories.memories).length, ) : localizations.calendarScreenTitle,