createpool: Clarify iscsi IQN fields (bz 1084011)

This commit is contained in:
Cole Robinson 2014-04-03 11:19:03 -04:00
parent 932e6e00bb
commit 8fa2aad1d3
2 changed files with 7 additions and 2 deletions

View File

@ -315,7 +315,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Source Path:</property>
<property name="label" translatable="yes">sourcep:</property>
<property name="use_underline">True</property>
</object>
<packing>
@ -330,7 +330,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_IQN:</property>
<property name="label" translatable="yes">Initiator _IQN:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">pool-iqn-chk</property>
</object>

View File

@ -275,6 +275,11 @@ class vmmCreatePool(vmmGObjectUI):
show_row("pool-iqn", iqn)
show_row("pool-source-name", src_name)
if iqn:
self.widget("pool-source-label").set_label(_("_Source IQN:"))
else:
self.widget("pool-source-label").set_label(_("_Source Path:"))
if tgt:
self.widget("pool-target-path").get_child().set_text(
self._pool.target_path)