QA builds: user agent, list all languages

This commit is contained in:
pizzaboxer 2024-10-10 13:38:17 +01:00
parent 8966babc40
commit 7d2e7a0be6
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
4 changed files with 25 additions and 4 deletions

View File

@ -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}");

View File

@ -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();

View File

@ -8,6 +8,8 @@ namespace Bloxstrap
public static bool RightToLeft { get; private set; } = false;
private static readonly List<string> _rtlLocales = new() { "ar", "he", "fa" };
public static readonly Dictionary<string, string> 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()

View File

@ -24,6 +24,9 @@ namespace Bloxstrap.UI.Elements.Dialogs
{
InitializeComponent();
Title = App.ProjectName;
RootTitleBar.Title = Title;
string? iconFilename = null;
SystemSound? sound = null;