From 3c43983ed19a000217ad004edf4109778ffee2ac Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Tue, 6 Feb 2024 16:38:19 +0100 Subject: [PATCH] components/autorunManager: Add description to autorun notification Part-of: --- js/ui/components/autorunManager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js index 40dd5858d..0df783aed 100644 --- a/js/ui/components/autorunManager.js +++ b/js/ui/components/autorunManager.js @@ -187,9 +187,13 @@ class AutorunDispatcher { return; const source = MessageTray.getSystemSource(); + /* Translators: %s is the name of a partition on a external drive */ + const title = _('ā€œ%sā€ connected'.format(mount.get_name())); + const body = _('Disk can now be used'); const notification = new MessageTray.Notification({ source, - title: mount.get_name(), + title, + body, }); notification.connect('activate', () => { const app = Gio.app_info_get_default_for_type('inode/directory', false);