diff --git a/Bloxstrap/App.xaml.cs b/Bloxstrap/App.xaml.cs index 5c0ee3a..17528f3 100644 --- a/Bloxstrap/App.xaml.cs +++ b/Bloxstrap/App.xaml.cs @@ -174,7 +174,12 @@ namespace Bloxstrap else { Logger.WriteLine(LOG_IDENT, $"Compiled {BuildMetadata.Timestamp.ToFriendlyString()} from {BuildMetadata.Machine}"); - userAgent += $" (Build {BuildMetadata.Machine})"; + +#if QA_BUILD + userAgent += " (QA)"; +#else + userAgent += $" (Build {Convert.ToBase64String(Encoding.UTF8.GetBytes(BuildMetadata.Machine))})"; +#endif } Logger.WriteLine(LOG_IDENT, $"Loaded from {Paths.Process}"); diff --git a/Bloxstrap/LaunchHandler.cs b/Bloxstrap/LaunchHandler.cs index 82957ad..eae8020 100644 --- a/Bloxstrap/LaunchHandler.cs +++ b/Bloxstrap/LaunchHandler.cs @@ -79,7 +79,7 @@ namespace Bloxstrap else { #if QA_BUILD - Frontend.ShowMessageBox("You are running a QA build of Bloxstrap. The red window border indicates that this is a QA build.", MessageBoxImage.Information); + Frontend.ShowMessageBox("You are about to install a QA build of Bloxstrap. The red window border indicates that this is a QA build.\n\nQA builds are handled completely separately of your standard installation, like a virtual environment.", MessageBoxImage.Information); #endif new LanguageSelectorDialog().ShowDialog(); diff --git a/Bloxstrap/Locale.cs b/Bloxstrap/Locale.cs index 7a87edd..5e82f1b 100644 --- a/Bloxstrap/Locale.cs +++ b/Bloxstrap/Locale.cs @@ -8,6 +8,8 @@ namespace Bloxstrap public static bool RightToLeft { get; private set; } = false; + private static readonly List _rtlLocales = new() { "ar", "he", "fa" }; + public static readonly Dictionary SupportedLocales = new() { { "nil", Strings.Common_SystemDefault }, @@ -17,10 +19,18 @@ namespace Bloxstrap { "bg", "Български" }, { "bn", "বাংলা" }, { "bs", "Bosanski" }, +#if QA_BUILD // { "cs", "Čeština" }, +#endif { "de", "Deutsch" }, +#if QA_BUILD // { "dk", "Dansk" }, +#endif { "es-ES", "Español" }, +#if QA_BUILD + { "el", "Ελληνικά" }, + { "fa", "فارسی" }, +#endif { "fi", "Suomi" }, { "fil", "Filipino" }, { "fr", "Français" }, @@ -33,8 +43,11 @@ namespace Bloxstrap { "ja", "日本語" }, { "ko", "한국어" }, { "lt", "Lietuvių" }, + { "ms", "Baso Kelate" }, { "no", "Bokmål" }, - // { "nl", "Nederlands" }, +#if QA_BUILD + { "nl", "Nederlands" }, +#endif { "pl", "Polski" }, { "pt-BR", "Português (Brasil)" }, { "ro", "Română" }, @@ -79,7 +92,7 @@ namespace Bloxstrap Thread.CurrentThread.CurrentUICulture = CurrentCulture; } - RightToLeft = CurrentCulture.Name.StartsWith("ar") || CurrentCulture.Name.StartsWith("he"); + RightToLeft = _rtlLocales.Any(CurrentCulture.Name.StartsWith); } public static void Initialize() diff --git a/Bloxstrap/UI/Elements/Dialogs/FluentMessageBox.xaml.cs b/Bloxstrap/UI/Elements/Dialogs/FluentMessageBox.xaml.cs index 29a708c..81defd2 100644 --- a/Bloxstrap/UI/Elements/Dialogs/FluentMessageBox.xaml.cs +++ b/Bloxstrap/UI/Elements/Dialogs/FluentMessageBox.xaml.cs @@ -24,6 +24,9 @@ namespace Bloxstrap.UI.Elements.Dialogs { InitializeComponent(); + Title = App.ProjectName; + RootTitleBar.Title = Title; + string? iconFilename = null; SystemSound? sound = null;