mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
virshGraphicsAddressToString: Remove pointless translation
There's no point in marking the protocol name as translatable. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
2fbb8e9a7b
commit
620d942749
@ -211,15 +211,19 @@ virshGraphicsPhaseToString(int phase)
|
||||
VIR_ENUM_DECL(virshGraphicsAddress);
|
||||
VIR_ENUM_IMPL(virshGraphicsAddress,
|
||||
VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_LAST,
|
||||
N_("IPv4"),
|
||||
N_("IPv6"),
|
||||
N_("unix"));
|
||||
"IPv4",
|
||||
"IPv6",
|
||||
"unix");
|
||||
|
||||
static const char *
|
||||
virshGraphicsAddressToString(int family)
|
||||
{
|
||||
const char *str = virshGraphicsAddressTypeToString(family);
|
||||
return str ? _(str) : _("unknown");
|
||||
|
||||
if (str)
|
||||
return str;
|
||||
|
||||
return _("unknown");
|
||||
}
|
||||
|
||||
VIR_ENUM_DECL(virshDomainBlockJobStatus);
|
||||
|
Loading…
Reference in New Issue
Block a user