From 167a8cd38ffdaae8a46ff5b689323e2d5fca88b4 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:21:55 +0000 Subject: [PATCH] add version string format --- Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Utilities.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Utilities.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Utilities.cs index 948b460..56875b3 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Utilities.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Utilities.cs @@ -193,6 +193,10 @@ namespace Bloxstrap.UI.Elements.Bootstrapper return text; // can't be translated (not in the correct format) string resourceName = text[1..^1]; + + if (resourceName == "Version") + return App.Version; + return Strings.ResourceManager.GetStringSafe(resourceName); }