mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
i18n: fix string puzzle in volume creation dialog
Use a single label to show the single sentence describing the available space on the storage pool. This avoids the use of 3 different labels, partially translated separately, and whose content cannot be moved. Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
c7ce770170
commit
519d409718
@ -260,51 +260,16 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox" id="hbox6">
|
||||
<object class="GtkLabel" id="vol-parent-info">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="spacing">3</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="vol-parent-name">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label">(parent-name)</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label12">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">available space:</property>
|
||||
<property name="use_markup">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="vol-parent-space">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label">(space)</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<property name="halign">start</property>
|
||||
<property name="label"><b>pool's</b> available space: X GiB</property>
|
||||
<property name="use_markup">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
@ -144,10 +144,11 @@ class vmmCreateVolume(vmmGObjectUI):
|
||||
self.widget("vol-capacity").set_range(0.1, 1000000)
|
||||
self.widget("vol-capacity").set_value(default_cap)
|
||||
|
||||
self.widget("vol-parent-name").set_markup(
|
||||
"<b>" + self._parent_pool.get_name() + "'s</b>")
|
||||
self.widget("vol-parent-space").set_text(
|
||||
self._parent_pool.get_pretty_available())
|
||||
self.widget("vol-parent-info").set_markup(
|
||||
_("<b>%(volume)s's</b> available space: %(size)s") % {
|
||||
"volume": self._parent_pool.get_name(),
|
||||
"size": self._parent_pool.get_pretty_available(),
|
||||
})
|
||||
|
||||
|
||||
###################
|
||||
|
Loading…
Reference in New Issue
Block a user