mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add support for {Version}
This commit is contained in:
parent
281013f0e4
commit
cb654d2309
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user