CA-207901: Fixed grammar in the vGPU description (error manifested itself on the Assign vGPU page in the NewVM wizard).

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2016-07-21 22:20:36 +01:00
parent 6078612916
commit dae95e1065
3 changed files with 17 additions and 4 deletions

View File

@ -33998,9 +33998,18 @@ namespace XenAdmin {
/// <summary>
/// Looks up a localized string similar to {0} virtual GPU ({1} per GPU, {2}, {3} displays).
/// </summary>
public static string VGPU_DESCRIPTION {
public static string VGPU_DESCRIPTION_MANY {
get {
return ResourceManager.GetString("VGPU_DESCRIPTION", resourceCulture);
return ResourceManager.GetString("VGPU_DESCRIPTION_MANY", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} virtual GPU ({1} per GPU, {2}, {3} display).
/// </summary>
public static string VGPU_DESCRIPTION_ONE {
get {
return ResourceManager.GetString("VGPU_DESCRIPTION_ONE", resourceCulture);
}
}

View File

@ -11799,9 +11799,12 @@ To learn more about the [XenServer] Dynamic Workload Balancing feature or to sta
<data name="VERSION_NUMBER" xml:space="preserve">
<value>[XenCenter] version {0} (build {1}.{2}) {3}-bit</value>
</data>
<data name="VGPU_DESCRIPTION" xml:space="preserve">
<data name="VGPU_DESCRIPTION_MANY" xml:space="preserve">
<value>{0} virtual GPU ({1} per GPU, {2}, {3} displays)</value>
</data>
<data name="VGPU_DESCRIPTION_ONE" xml:space="preserve">
<value>{0} virtual GPU ({1} per GPU, {2}, {3} display)</value>
</data>
<data name="VGPU_PASSTHRU_TOSTRING" xml:space="preserve">
<value>Pass-through whole GPU</value>
</data>

View File

@ -55,7 +55,8 @@ namespace XenAPI
if (IsPassthrough)
return Messages.VGPU_PASSTHRU_TOSTRING;
return string.Format(Messages.VGPU_DESCRIPTION, model_name, Capacity, MaxResolution, max_heads);
return string.Format(max_heads == 1 ? Messages.VGPU_DESCRIPTION_ONE : Messages.VGPU_DESCRIPTION_MANY,
model_name, Capacity, MaxResolution, max_heads);
}
}