mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-19 00:51:30 -07:00
QA builds: user agent, list all languages
This commit is contained in:
parent
8966babc40
commit
7d2e7a0be6
@ -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}");
|
||||
|
@ -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();
|
||||
|
@ -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()
|
||||
|
@ -24,6 +24,9 @@ namespace Bloxstrap.UI.Elements.Dialogs
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Title = App.ProjectName;
|
||||
RootTitleBar.Title = Title;
|
||||
|
||||
string? iconFilename = null;
|
||||
SystemSound? sound = null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user