Skip to content

Commit 7073d8f

Browse files
committed
fix: add no notifications message to fluent
1 parent 0476ddd commit 7073d8f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cosmic-applet-notifications/i18n/en/cosmic_applet_notifications.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ show-more = Show {$more} More
1010
clear-all = Clear All Notifications
1111
do-not-disturb = Do Not Disturb
1212
notification-settings = Notification Settings...
13+
no-notifications = No Notifications

cosmic-applet-notifications/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,11 @@ impl Application for Notifications {
344344

345345
let notifications = if self.cards.is_empty() {
346346
row![container(
347-
column![text_icon(&self.icon_name, 40), "No Notifications"]
348-
.align_items(Alignment::Center)
347+
column![
348+
text_icon(&self.icon_name, 40),
349+
text(&fl!("no-notifications"))
350+
]
351+
.align_items(Alignment::Center)
349352
)
350353
.width(Length::Fill)
351354
.align_x(Horizontal::Center)]

0 commit comments

Comments
 (0)