mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -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
|
else
|
||||||
{
|
{
|
||||||
Logger.WriteLine(LOG_IDENT, $"Compiled {BuildMetadata.Timestamp.ToFriendlyString()} from {BuildMetadata.Machine}");
|
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}");
|
Logger.WriteLine(LOG_IDENT, $"Loaded from {Paths.Process}");
|
||||||
|
@ -79,7 +79,7 @@ namespace Bloxstrap
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if QA_BUILD
|
#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
|
#endif
|
||||||
|
|
||||||
new LanguageSelectorDialog().ShowDialog();
|
new LanguageSelectorDialog().ShowDialog();
|
||||||
|
@ -8,6 +8,8 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
public static bool RightToLeft { get; private set; } = false;
|
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()
|
public static readonly Dictionary<string, string> SupportedLocales = new()
|
||||||
{
|
{
|
||||||
{ "nil", Strings.Common_SystemDefault },
|
{ "nil", Strings.Common_SystemDefault },
|
||||||
@ -17,10 +19,18 @@ namespace Bloxstrap
|
|||||||
{ "bg", "Български" },
|
{ "bg", "Български" },
|
||||||
{ "bn", "বাংলা" },
|
{ "bn", "বাংলা" },
|
||||||
{ "bs", "Bosanski" },
|
{ "bs", "Bosanski" },
|
||||||
|
#if QA_BUILD
|
||||||
// { "cs", "Čeština" },
|
// { "cs", "Čeština" },
|
||||||
|
#endif
|
||||||
{ "de", "Deutsch" },
|
{ "de", "Deutsch" },
|
||||||
|
#if QA_BUILD
|
||||||
// { "dk", "Dansk" },
|
// { "dk", "Dansk" },
|
||||||
|
#endif
|
||||||
{ "es-ES", "Español" },
|
{ "es-ES", "Español" },
|
||||||
|
#if QA_BUILD
|
||||||
|
{ "el", "Ελληνικά" },
|
||||||
|
{ "fa", "فارسی" },
|
||||||
|
#endif
|
||||||
{ "fi", "Suomi" },
|
{ "fi", "Suomi" },
|
||||||
{ "fil", "Filipino" },
|
{ "fil", "Filipino" },
|
||||||
{ "fr", "Français" },
|
{ "fr", "Français" },
|
||||||
@ -33,8 +43,11 @@ namespace Bloxstrap
|
|||||||
{ "ja", "日本語" },
|
{ "ja", "日本語" },
|
||||||
{ "ko", "한국어" },
|
{ "ko", "한국어" },
|
||||||
{ "lt", "Lietuvių" },
|
{ "lt", "Lietuvių" },
|
||||||
|
{ "ms", "Baso Kelate" },
|
||||||
{ "no", "Bokmål" },
|
{ "no", "Bokmål" },
|
||||||
// { "nl", "Nederlands" },
|
#if QA_BUILD
|
||||||
|
{ "nl", "Nederlands" },
|
||||||
|
#endif
|
||||||
{ "pl", "Polski" },
|
{ "pl", "Polski" },
|
||||||
{ "pt-BR", "Português (Brasil)" },
|
{ "pt-BR", "Português (Brasil)" },
|
||||||
{ "ro", "Română" },
|
{ "ro", "Română" },
|
||||||
@ -79,7 +92,7 @@ namespace Bloxstrap
|
|||||||
Thread.CurrentThread.CurrentUICulture = CurrentCulture;
|
Thread.CurrentThread.CurrentUICulture = CurrentCulture;
|
||||||
}
|
}
|
||||||
|
|
||||||
RightToLeft = CurrentCulture.Name.StartsWith("ar") || CurrentCulture.Name.StartsWith("he");
|
RightToLeft = _rtlLocales.Any(CurrentCulture.Name.StartsWith);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Initialize()
|
public static void Initialize()
|
||||||
|
@ -24,6 +24,9 @@ namespace Bloxstrap.UI.Elements.Dialogs
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
Title = App.ProjectName;
|
||||||
|
RootTitleBar.Title = Title;
|
||||||
|
|
||||||
string? iconFilename = null;
|
string? iconFilename = null;
|
||||||
SystemSound? sound = null;
|
SystemSound? sound = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user