details: Mark video and char dev titles as translatable
This commit is contained in:
parent
170ca89afb
commit
c316219f89
|
@ -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:
|
||||
|
|
|
@ -3977,7 +3977,7 @@ I/O:</property>
|
|||
<child>
|
||||
<widget class="GtkLabel" id="hostdev-title1">
|
||||
<property name="visible">True</property>
|
||||
<property name="label"><b>Video</b></property>
|
||||
<property name="label" translatable="yes"><b>Video</b></property>
|
||||
<property name="use_markup">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
|
|
Loading…
Reference in New Issue