mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 16:11:22 +00:00
trivial: Add new category type for video display
This commit is contained in:
parent
b8da2f3200
commit
73377b2a53
@ -3786,6 +3786,8 @@ fu_common_device_category_to_name(const gchar *cat)
|
||||
return "Mouse";
|
||||
if (g_strcmp0(cat, "X-Keyboard") == 0)
|
||||
return "Keyboard";
|
||||
if (g_strcmp0(cat, "X-VideoDisplay") == 0)
|
||||
return "Display";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -779,6 +779,11 @@ fu_util_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) {
|
||||
/* TRANSLATORS: Video Display refers to the laptop internal display or
|
||||
* external monitor */
|
||||
return g_strdup_printf(_("%s Display Update"), name);
|
||||
}
|
||||
}
|
||||
|
||||
/* TRANSLATORS: this is the fallback where we don't know if the release
|
||||
|
Loading…
Reference in New Issue
Block a user