From 4d50381115e889c9122502435e23f4ce087fe8de Mon Sep 17 00:00:00 2001
From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com>
Date: Sun, 16 Mar 2025 02:15:57 +0000
Subject: [PATCH] fix string not being localised
---
Bloxstrap/Resources/Strings.Designer.cs | 9 +++++++++
Bloxstrap/Resources/Strings.resx | 3 +++
.../Editor/BootstrapperEditorWindowViewModel.cs | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Bloxstrap/Resources/Strings.Designer.cs b/Bloxstrap/Resources/Strings.Designer.cs
index f61475b..fb38f4f 100644
--- a/Bloxstrap/Resources/Strings.Designer.cs
+++ b/Bloxstrap/Resources/Strings.Designer.cs
@@ -1036,6 +1036,15 @@ namespace Bloxstrap.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Your theme has been saved!.
+ ///
+ public static string CustomTheme_Editor_Save_Success_Description {
+ get {
+ return ResourceManager.GetString("CustomTheme.Editor.Save.Success.Description", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Editing "{0}".
///
diff --git a/Bloxstrap/Resources/Strings.resx b/Bloxstrap/Resources/Strings.resx
index 2e9abaa..e4111a7 100644
--- a/Bloxstrap/Resources/Strings.resx
+++ b/Bloxstrap/Resources/Strings.resx
@@ -1493,4 +1493,7 @@ Defaulting to {1}.
Allows for having more than one Roblox game client instance open simultaneously.
+
+ Your theme has been saved!
+
\ No newline at end of file
diff --git a/Bloxstrap/UI/ViewModels/Editor/BootstrapperEditorWindowViewModel.cs b/Bloxstrap/UI/ViewModels/Editor/BootstrapperEditorWindowViewModel.cs
index 2e0bcb4..b8c1968 100644
--- a/Bloxstrap/UI/ViewModels/Editor/BootstrapperEditorWindowViewModel.cs
+++ b/Bloxstrap/UI/ViewModels/Editor/BootstrapperEditorWindowViewModel.cs
@@ -64,7 +64,7 @@ namespace Bloxstrap.UI.ViewModels.Editor
{
File.WriteAllText(path, Code);
CodeChanged = false;
- ThemeSavedCallback.Invoke(true, "Your theme has been saved!");
+ ThemeSavedCallback.Invoke(true, Strings.CustomTheme_Editor_Save_Success_Description);
}
catch (Exception ex)
{