Server Monitor Changes

- fixed the display of the map name.
- added the ports as a grid column.
- language file update
This commit is contained in:
Brett Hewitson 2022-06-22 22:53:41 +10:00
parent 09659d9ae2
commit f51e92c5a2
17 changed files with 175 additions and 51 deletions

View file

@ -16,7 +16,7 @@ namespace ServerManagerTool.Lib.ViewModel
if (valueString == null)
return string.Empty;
var name = GlobalizedApplication.Instance.GetResourceString(valueString);
var name = GlobalizedApplication.Instance.GetResourceString($"Map_{valueString}");
if (!string.IsNullOrWhiteSpace(name))
return name;
@ -27,7 +27,7 @@ namespace ServerManagerTool.Lib.ViewModel
var mapName = ModUtils.GetMapName(valueString);
// check if the name is stored in the globalization file
name = GlobalizedApplication.Instance.GetResourceString(mapName);
name = GlobalizedApplication.Instance.GetResourceString($"Map_{mapName}");
if (!string.IsNullOrWhiteSpace(name))
return name;