Language file updates

Changed alert test message to support globalization
This commit is contained in:
Brett Hewitson 2021-12-09 14:58:29 +10:00
parent 6423dfc293
commit 717ad0a697
6 changed files with 52 additions and 21 deletions

View file

@ -118,7 +118,8 @@ namespace ServerManagerTool.Plugin.Discord.Windows
{
foreach (var alertType in Profile.AlertTypes)
{
Plugin.HandleAlert(Profile, alertType.Value, profileName.Value, $"Test '{alertType.Value}' message for profile name '{profileName.Value}'.");
var testMessage = string.Format(ResourceUtils.GetResourceString(this.Resources, "ConfigProfileWindow_TestAlertMessage"), alertType.Value, profileName.Value);
Plugin.HandleAlert(Profile, alertType.Value, profileName.Value, testMessage);
Task.Delay(1000).Wait();
}
}