From ab8034c13b76b4d9f7bf59cee90e5de973267a1f Mon Sep 17 00:00:00 2001
From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com>
Date: Sat, 21 Sep 2024 19:16:38 +0100
Subject: [PATCH] add string to translations
---
Bloxstrap/Resources/Strings.Designer.cs | 9 +++++++++
Bloxstrap/Resources/Strings.resx | 3 +++
Bloxstrap/UI/Elements/Installer/MainWindow.xaml.cs | 3 ++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/Bloxstrap/Resources/Strings.Designer.cs b/Bloxstrap/Resources/Strings.Designer.cs
index 7911c5ba..e8df8ffe 100644
--- a/Bloxstrap/Resources/Strings.Designer.cs
+++ b/Bloxstrap/Resources/Strings.Designer.cs
@@ -1520,6 +1520,15 @@ public static string Installer_Install_Title {
}
}
+ ///
+ /// Looks up a localized string similar to Are you sure you want to cancel the installation?.
+ ///
+ public static string Installer_ShouldCancel {
+ get {
+ return ResourceManager.GetString("Installer.ShouldCancel", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Bloxstrap Installer.
///
diff --git a/Bloxstrap/Resources/Strings.resx b/Bloxstrap/Resources/Strings.resx
index 0a04ef21..f0f1a4fd 100644
--- a/Bloxstrap/Resources/Strings.resx
+++ b/Bloxstrap/Resources/Strings.resx
@@ -1192,4 +1192,7 @@ Please manually delete Bloxstrap.exe from the install location or try restarting
Roblox has not yet been installed. Please launch Roblox using Bloxstrap at least once before trying to use this option.
+
+ Are you sure you want to cancel the installation?
+
\ No newline at end of file
diff --git a/Bloxstrap/UI/Elements/Installer/MainWindow.xaml.cs b/Bloxstrap/UI/Elements/Installer/MainWindow.xaml.cs
index 90108bea..49e262c9 100644
--- a/Bloxstrap/UI/Elements/Installer/MainWindow.xaml.cs
+++ b/Bloxstrap/UI/Elements/Installer/MainWindow.xaml.cs
@@ -9,6 +9,7 @@
using Bloxstrap.UI.Elements.Base;
using System.Windows.Media.Animation;
using System.Reflection.Metadata.Ecma335;
+using Bloxstrap.Resources;
namespace Bloxstrap.UI.Elements.Installer
{
@@ -102,7 +103,7 @@ void MainWindow_Closing(object? sender, CancelEventArgs e)
if (Finished)
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)
e.Cancel = true;