[virt-manager PATCH 08/16] i18n: do not translate regexp
Pino Toscano
ptoscano at redhat.com
Tue Jul 14 07:41:52 UTC 2020
There is no point to translate an internal regular expression; worse,
a wrong translation can break the regular expression.
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
virtManager/lib/libvirtenummap.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/virtManager/lib/libvirtenummap.py b/virtManager/lib/libvirtenummap.py
index d88efe11..d68170d4 100644
--- a/virtManager/lib/libvirtenummap.py
+++ b/virtManager/lib/libvirtenummap.py
@@ -37,8 +37,7 @@ class _LibvirtEnumMap(object):
# Regex map for 'state' values returned from lifecycle and other events
_DETAIL1_PREFIX = {
"VIR_DOMAIN_EVENT_ID_LIFECYCLE": "VIR_DOMAIN_EVENT_[^_]+$",
- "VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE": _("VIR_CONNECT_DOMAIN_EVENT_AGENT"
- "_LIFECYCLE_STATE_[^_]+$"),
+ "VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE": "VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_[^_]+$",
"VIR_NETWORK_EVENT_ID_LIFECYCLE": "VIR_NETWORK_EVENT_[^_]+$",
"VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE": "VIR_STORAGE_POOL_EVENT_[^_]+$",
"VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE": "VIR_NODE_DEVICE_EVENT_[^_]+$",
--
2.26.2
More information about the virt-tools-list
mailing list