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

@ -131,9 +131,17 @@ namespace XenAdmin.SettingsPanels
public string SubText
{
get
{
string txt = Messages.GPU_UNAVAILABLE;
if (gpusAvailable)
{
var tuple = comboBoxGpus.SelectedItem as GpuTuple;
return tuple == null ? "" : tuple.ToString();
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>
/// Looks up a localized string similar to Loading Data....
/// </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">
<value>Select which vGPU types are allowed on this GPU:</value>
</data>
<data name="GPU_UNAVAILABLE" xml:space="preserve">
<value>Not available</value>
</data>
<data name="GRAPHS" xml:space="preserve">
<value>Graphs</value>
</data>