From cb654d23099c9adc52d651857dd0e84da8e4b65c Mon Sep 17 00:00:00 2001 From: nexpid <60316309+nexpid@users.noreply.github.com> Date: Sun, 27 Oct 2024 23:06:26 +0100 Subject: [PATCH] add support for {Version} --- Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index bb90112..f0f3e1b 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -1,4 +1,4 @@ -using System.Windows; +using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Data; @@ -237,6 +237,8 @@ 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); }