i18n: translate "device on address" string

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Pino Toscano 2020-07-14 09:41:45 +02:00 committed by Cole Robinson
parent 00fa636682
commit 9c7df6a7cd
1 changed files with 4 additions and 1 deletions

View File

@ -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."))