Reformat displaying of server type

This commit is contained in:
pizzaboxer 2024-06-21 16:48:15 +01:00
parent 69a059e27b
commit 299645ed15
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
3 changed files with 1 additions and 15 deletions

View File

@ -594,15 +594,6 @@ namespace Bloxstrap.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to {0} server.
/// </summary>
public static string ContextMenu_ServerInformation_TypeFormat {
get {
return ResourceManager.GetString("ContextMenu.ServerInformation.TypeFormat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add FastFlag.
/// </summary>

View File

@ -300,9 +300,6 @@ Click for more information</value>
<data name="ContextMenu.ServerInformation.Type" xml:space="preserve">
<value>Type</value>
</data>
<data name="ContextMenu.ServerInformation.TypeFormat" xml:space="preserve">
<value>{0} server</value>
</data>
<data name="Dialog.AddFastFlag.Title" xml:space="preserve">
<value>Add FastFlag</value>
</data>

View File

@ -11,9 +11,7 @@ namespace Bloxstrap.UI.ViewModels.ContextMenu
private readonly ActivityWatcher _activityWatcher;
public string InstanceId => _activityWatcher.ActivityJobId;
public string ServerType => string.Format(
Resources.Strings.ContextMenu_ServerInformation_TypeFormat,
Resources.Strings.ResourceManager.GetStringSafe($"Enums.ServerType.{_activityWatcher.ActivityServerType}"));
public string ServerType => Resources.Strings.ResourceManager.GetStringSafe($"Enums.ServerType.{_activityWatcher.ActivityServerType}");
public string ServerLocation { get; private set; } = Resources.Strings.ContextMenu_ServerInformation_Loading;
public ICommand CopyInstanceIdCommand => new RelayCommand(CopyInstanceId);