Skip to content

Commit

Permalink
Merge pull request #2945 from pizzaboxer/bugfix/you-forgot-to-use-str…
Browse files Browse the repository at this point in the history
…ings-resx

Add string to translations
  • Loading branch information
pizzaboxer committed Sep 21, 2024
2 parents 6e0d24e + c6a6ab2 commit 5977b1b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Bloxstrap/Resources/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Bloxstrap/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,9 @@ Please manually delete Bloxstrap.exe from the install location or try restarting
<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>
</data>
<data name="Installer.ShouldCancel" xml:space="preserve">
<value>Are you sure you want to cancel the installation?</value>
</data>
<data name="Bootstrapper.JsonManagerSaveFailed" xml:space="preserve">
<value>Failed to save {0}: {1}</value>
</data>
Expand Down
3 changes: 2 additions & 1 deletion Bloxstrap/UI/Elements/Installer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5977b1b

Please sign in to comment.