From cc02b7cf780bba0895e9202c266c91cdc5eb402c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 24 May 2022 11:23:01 +0100 Subject: [PATCH 1/2] fwupd: Add translations for another device category --- plugins/fwupd/gs-fwupd-app.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/fwupd/gs-fwupd-app.c b/plugins/fwupd/gs-fwupd-app.c index d275ae867..8f575ad7d 100644 --- a/plugins/fwupd/gs-fwupd-app.c +++ b/plugins/fwupd/gs-fwupd-app.c @@ -224,6 +224,11 @@ gs_fwupd_release_get_name (FwupdRelease *release) * is the device that updates all the other firmware on the system */ return g_strdup_printf (_("%s BMC Update"), name); } + if (g_strcmp0 (cat, "X-UsbReceiver") == 0) { + /* TRANSLATORS: Receiver refers to a radio device, e.g. a tiny Bluetooth + * device that stays in the USB port so the wireless peripheral works */ + return g_strdup_printf (_("%s USB Receiver Update"), name); + } } /* default fallback */ -- GitLab From f1c38f2d9c5b32327c349c11d466000181694ca6 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 24 May 2022 12:47:33 +0100 Subject: [PATCH 2/2] fwupd: Fix trivial whitespace issue --- plugins/fwupd/gs-fwupd-app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fwupd/gs-fwupd-app.c b/plugins/fwupd/gs-fwupd-app.c index 8f575ad7d..03103a3e9 100644 --- a/plugins/fwupd/gs-fwupd-app.c +++ b/plugins/fwupd/gs-fwupd-app.c @@ -214,12 +214,12 @@ gs_fwupd_release_get_name (FwupdRelease *release) * PCI card, not the logical wired connection */ return g_strdup_printf (_("%s Network Interface Update"), name); } - if (g_strcmp0(cat, "X-VideoDisplay") == 0) { + if (g_strcmp0 (cat, "X-VideoDisplay") == 0) { /* TRANSLATORS: Video Display refers to the laptop internal display or * external monitor */ return g_strdup_printf (_("%s Display Update"), name); } - if (g_strcmp0(cat, "X-BaseboardManagementController") == 0) { + if (g_strcmp0 (cat, "X-BaseboardManagementController") == 0) { /* TRANSLATORS: BMC refers to baseboard management controller which * is the device that updates all the other firmware on the system */ return g_strdup_printf (_("%s BMC Update"), name); -- GitLab