details: Mark video and char dev titles as translatable

This commit is contained in:
Cole Robinson 2010-09-13 09:31:32 -04:00
parent 170ca89afb
commit c316219f89
2 changed files with 13 additions and 2 deletions

View File

@ -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:

View File

@ -3977,7 +3977,7 @@ I/O:</property>
<child>
<widget class="GtkLabel" id="hostdev-title1">
<property name="visible">True</property>
<property name="label">&lt;b&gt;Video&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Video&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>