[virt-manager PATCH 01/16] i18n: translate "device on address" string
Pino Toscano
ptoscano at redhat.com
Tue Jul 14 07:41:45 UTC 2020
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
virtManager/details/details.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/virtManager/details/details.py b/virtManager/details/details.py
index f1b54a12..8f1e3f2c 100644
--- a/virtManager/details/details.py
+++ b/virtManager/details/details.py
@@ -2365,7 +2365,10 @@ class vmmDetails(vmmGObjectUI):
disks = controller.get_attached_devices(self.vm.xmlobj)
for disk in disks:
name = _label_for_device(disk)
- infoStr = ("%s on %s" % (name, disk.address.pretty_desc()))
+ infoStr = _("%(device)s on %(address)s") % {
+ "device": name,
+ "address": disk.address.pretty_desc(),
+ }
model.append([infoStr])
self._disable_device_remove(
_("Cannot remove controller while devices are attached."))
--
2.26.2
More information about the virt-tools-list
mailing list