Add the X-Gpu category for new hardware support

This commit is contained in:
Richard Hughes 2022-12-06 15:38:18 +00:00
parent ecb38b1199
commit 189b4a413d
2 changed files with 7 additions and 0 deletions

View File

@ -3902,6 +3902,8 @@ fu_common_device_category_to_name(const gchar *cat)
return "BMC";
if (g_strcmp0(cat, "X-UsbReceiver") == 0)
return "USB Receiver";
if (g_strcmp0(cat, "X-Gpu") == 0)
return "GPU";
return NULL;
}

View File

@ -817,6 +817,11 @@ fu_util_release_get_name(FwupdRelease *release)
* SATA or NVMe disk */
return g_strdup_printf(_("%s SSD Update"), name);
}
if (g_strcmp0(cat, "X-Gpu") == 0) {
/* TRANSLATORS: GPU refers to a Graphics Processing Unit, e.g.
* the "video card" */
return g_strdup_printf(_("%s GPU Update"), name);
}
}
/* TRANSLATORS: this is the fallback where we don't know if the release