From 2ae4587a1c2f1ebffaba1351e928626a5792a3e8 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 13 Jun 2022 09:41:16 +0100 Subject: [PATCH] trivial: Add three more update categories --- src/fu-util-common.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/fu-util-common.c b/src/fu-util-common.c index 79b322a55..abab406fd 100644 --- a/src/fu-util-common.c +++ b/src/fu-util-common.c @@ -802,6 +802,19 @@ fu_util_release_get_name(FwupdRelease *release) * device that stays in the USB port so the wireless peripheral works */ return g_strdup_printf(_("%s USB Receiver Update"), name); } + if (g_strcmp0(cat, "X-Drive") == 0) { + /* TRANSLATORS: drive refers to a storage device, e.g. SATA disk */ + return g_strdup_printf(_("%s Drive Update"), name); + } + if (g_strcmp0(cat, "X-FlashDrive") == 0) { + /* TRANSLATORS: flash refers to solid state storage, e.g. UFS or eMMC */ + return g_strdup_printf(_("%s Flash Drive Update"), name); + } + if (g_strcmp0(cat, "X-SolidStateDrive") == 0) { + /* TRANSLATORS: SSD refers to a Solid State Drive, e.g. non-rotating + * SATA or NVMe disk */ + return g_strdup_printf(_("%s SSD Update"), name); + } } /* TRANSLATORS: this is the fallback where we don't know if the release