From 7073d8fc2291c942eef878bcc6e76de820fd7407 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 24 Jul 2023 16:58:48 -0400 Subject: [PATCH] fix: add no notifications message to fluent --- .../i18n/en/cosmic_applet_notifications.ftl | 1 + cosmic-applet-notifications/src/main.rs | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cosmic-applet-notifications/i18n/en/cosmic_applet_notifications.ftl b/cosmic-applet-notifications/i18n/en/cosmic_applet_notifications.ftl index 0c45c122..cc3e0344 100644 --- a/cosmic-applet-notifications/i18n/en/cosmic_applet_notifications.ftl +++ b/cosmic-applet-notifications/i18n/en/cosmic_applet_notifications.ftl @@ -10,3 +10,4 @@ show-more = Show {$more} More clear-all = Clear All Notifications do-not-disturb = Do Not Disturb notification-settings = Notification Settings... +no-notifications = No Notifications \ No newline at end of file diff --git a/cosmic-applet-notifications/src/main.rs b/cosmic-applet-notifications/src/main.rs index 47d74e37..72d4766c 100644 --- a/cosmic-applet-notifications/src/main.rs +++ b/cosmic-applet-notifications/src/main.rs @@ -344,8 +344,11 @@ impl Application for Notifications { let notifications = if self.cards.is_empty() { row![container( - column![text_icon(&self.icon_name, 40), "No Notifications"] - .align_items(Alignment::Center) + column![ + text_icon(&self.icon_name, 40), + text(&fl!("no-notifications")) + ] + .align_items(Alignment::Center) ) .width(Length::Fill) .align_x(Horizontal::Center)]