add string to translations

This commit is contained in:
bluepilledgreat 2024-09-21 19:16:38 +01:00
parent c58a8ab739
commit ab8034c13b
3 changed files with 14 additions and 1 deletions

View File

@ -1520,6 +1520,15 @@ namespace Bloxstrap.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Are you sure you want to cancel the installation?.
/// </summary>
public static string Installer_ShouldCancel {
get {
return ResourceManager.GetString("Installer.ShouldCancel", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Bloxstrap Installer. /// Looks up a localized string similar to Bloxstrap Installer.
/// </summary> /// </summary>

View File

@ -1192,4 +1192,7 @@ Please manually delete Bloxstrap.exe from the install location or try restarting
<data name="Common.RobloxNotInstalled" xml:space="preserve"> <data name="Common.RobloxNotInstalled" xml:space="preserve">
<value>Roblox has not yet been installed. Please launch Roblox using Bloxstrap at least once before trying to use this option.</value> <value>Roblox has not yet been installed. Please launch Roblox using Bloxstrap at least once before trying to use this option.</value>
</data> </data>
<data name="Installer.ShouldCancel" xml:space="preserve">
<value>Are you sure you want to cancel the installation?</value>
</data>
</root> </root>

View File

@ -9,6 +9,7 @@ using Bloxstrap.UI.Elements.Installer.Pages;
using Bloxstrap.UI.Elements.Base; using Bloxstrap.UI.Elements.Base;
using System.Windows.Media.Animation; using System.Windows.Media.Animation;
using System.Reflection.Metadata.Ecma335; using System.Reflection.Metadata.Ecma335;
using Bloxstrap.Resources;
namespace Bloxstrap.UI.Elements.Installer namespace Bloxstrap.UI.Elements.Installer
{ {
@ -102,7 +103,7 @@ namespace Bloxstrap.UI.Elements.Installer
if (Finished) if (Finished)
return; return;
var result = Frontend.ShowMessageBox("Are you sure you want to cancel the installation?", MessageBoxImage.Warning, MessageBoxButton.YesNo); var result = Frontend.ShowMessageBox(Strings.Installer_ShouldCancel, MessageBoxImage.Warning, MessageBoxButton.YesNo);
if (result != MessageBoxResult.Yes) if (result != MessageBoxResult.Yes)
e.Cancel = true; e.Cancel = true;