CP-6083: Improved the subtext for the GPU page on the Properties dialog when no

GPUs are available on the server.
# HG changeset patch
# User Konstantina Chremmou <Konstantina.Chremmou@citrix.com>
# Date 1382711930 -3600
#      Fri Oct 25 15:38:50 2013 +0100
# Node ID 20d8cfbaca8448b7aac43cc3640d35f536789c47
# Parent  addf480a5eeb1c2bfc1a2756fee55dfa966d1751

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2013-11-14 11:32:51 +00:00
parent 569b35e854
commit 713f108a7b
3 changed files with 22 additions and 2 deletions

View File

@ -132,8 +132,16 @@ namespace XenAdmin.SettingsPanels
{ {
get get
{ {
var tuple = comboBoxGpus.SelectedItem as GpuTuple; string txt = Messages.GPU_UNAVAILABLE;
return tuple == null ? "" : tuple.ToString();
if (gpusAvailable)
{
var tuple = comboBoxGpus.SelectedItem as GpuTuple;
if (tuple != null)
txt = tuple.ToString();
}
return txt;
} }
} }

View File

@ -14037,6 +14037,15 @@ namespace XenAdmin {
} }
} }
/// <summary>
/// Looks up a localized string similar to Not available.
/// </summary>
public static string GPU_UNAVAILABLE {
get {
return ResourceManager.GetString("GPU_UNAVAILABLE", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Loading Data.... /// Looks up a localized string similar to Loading Data....
/// </summary> /// </summary>

View File

@ -4916,6 +4916,9 @@ Would you like to eject these ISOs before continuing?</value>
<data name="GPU_RUBRIC_PLEASE_SELECT_WHICH_GPU_ONE" xml:space="preserve"> <data name="GPU_RUBRIC_PLEASE_SELECT_WHICH_GPU_ONE" xml:space="preserve">
<value>Select which vGPU types are allowed on this GPU:</value> <value>Select which vGPU types are allowed on this GPU:</value>
</data> </data>
<data name="GPU_UNAVAILABLE" xml:space="preserve">
<value>Not available</value>
</data>
<data name="GRAPHS" xml:space="preserve"> <data name="GRAPHS" xml:space="preserve">
<value>Graphs</value> <value>Graphs</value>
</data> </data>