From c316219f89f0415470a5401a66680b04d8ead6c6 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 13 Sep 2010 09:31:32 -0400 Subject: [PATCH] details: Mark video and char dev titles as translatable --- src/virtManager/details.py | 13 ++++++++++++- src/vmm-details.glade | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/virtManager/details.py b/src/virtManager/details.py index 1a5433774..fd7b7c406 100644 --- a/src/virtManager/details.py +++ b/src/virtManager/details.py @@ -2054,7 +2054,18 @@ class vmmDetails(gobject.GObject): src_path = chardev.source_path primary = hasattr(chardev, "virtmanager_console_dup") - typelabel = "%s Device" % char_type + typelabel = "" + if char_type == "serial": + typelabel = _("Serial Device") + elif char_type == "parallel": + typelabel = _("Parallel Device") + elif char_type == "console": + typelabel = _("Console Device") + elif char_type == "channel": + typelabel = _("Channel Device") + else: + typelabel = _("%s Device") % char_type.capitalize() + if target_port is not None: typelabel += " %s" % (int(target_port) + 1) if primary: diff --git a/src/vmm-details.glade b/src/vmm-details.glade index 7f746f0a7..b1bee38f0 100644 --- a/src/vmm-details.glade +++ b/src/vmm-details.glade @@ -3977,7 +3977,7 @@ I/O: True - <b>Video</b> + <b>Video</b> True