mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
Satisfy my OCD
This commit is contained in:
parent
6d8d482449
commit
049d59a995
@ -4,9 +4,9 @@
|
||||
{
|
||||
public static string ToTranslatedString(this ServerType value) => value switch
|
||||
{
|
||||
ServerType.Public => Resources.Strings.Enums_ServerType_Public,
|
||||
ServerType.Private => Resources.Strings.Enums_ServerType_Private,
|
||||
ServerType.Reserved => Resources.Strings.Enums_ServerType_Reserved,
|
||||
ServerType.Public => Strings.Enums_ServerType_Public,
|
||||
ServerType.Private => Strings.Enums_ServerType_Private,
|
||||
ServerType.Reserved => Strings.Enums_ServerType_Reserved,
|
||||
_ => "?"
|
||||
};
|
||||
}
|
||||
|
@ -32,11 +32,11 @@ namespace Bloxstrap.UI.Converters
|
||||
return attribute.StaticName;
|
||||
|
||||
if (attribute.FromTranslation is not null)
|
||||
return Resources.Strings.ResourceManager.GetStringSafe(attribute.FromTranslation);
|
||||
return Strings.ResourceManager.GetStringSafe(attribute.FromTranslation);
|
||||
}
|
||||
}
|
||||
|
||||
return Resources.Strings.ResourceManager.GetStringSafe(String.Format(
|
||||
return Strings.ResourceManager.GetStringSafe(String.Format(
|
||||
"{0}.{1}",
|
||||
typeName.Substring(typeName.IndexOf('.', StringComparison.Ordinal) + 1),
|
||||
stringVal
|
||||
|
@ -43,7 +43,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.buttonCancel.Text = Resources.Strings.Common_Cancel;
|
||||
this.buttonCancel.Text = Strings.Common_Cancel;
|
||||
|
||||
ScaleWindow();
|
||||
SetupDialog();
|
||||
|
@ -43,7 +43,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
InitializeComponent();
|
||||
|
||||
this.IconBox.BackgroundImage = App.Settings.Prop.BootstrapperIcon.GetIcon().ToBitmap();
|
||||
this.buttonCancel.Text = Resources.Strings.Common_Cancel;
|
||||
this.buttonCancel.Text = Strings.Common_Cancel;
|
||||
|
||||
ScaleWindow();
|
||||
SetupDialog();
|
||||
|
@ -52,8 +52,8 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
this.BackColor = Color.FromArgb(25, 27, 29);
|
||||
}
|
||||
|
||||
this.labelMessage.Text = Resources.Strings.Bootstrapper_StylePreview_TextCancel;
|
||||
this.buttonCancel.Text = Resources.Strings.Common_Cancel;
|
||||
this.labelMessage.Text = Strings.Bootstrapper_StylePreview_TextCancel;
|
||||
this.buttonCancel.Text = Strings.Common_Cancel;
|
||||
this.IconBox.BackgroundImage = App.Settings.Prop.BootstrapperIcon.GetIcon().GetSized(128, 128).ToBitmap();
|
||||
|
||||
SetupDialog();
|
||||
|
@ -121,13 +121,13 @@ namespace Bloxstrap.UI.Elements.Dialogs
|
||||
switch (result)
|
||||
{
|
||||
case MessageBoxResult.OK:
|
||||
return Bloxstrap.Resources.Strings.Common_OK;
|
||||
return Strings.Common_OK;
|
||||
case MessageBoxResult.Cancel:
|
||||
return Bloxstrap.Resources.Strings.Common_Cancel;
|
||||
return Strings.Common_Cancel;
|
||||
case MessageBoxResult.Yes:
|
||||
return Bloxstrap.Resources.Strings.Common_Yes;
|
||||
return Strings.Common_Yes;
|
||||
case MessageBoxResult.No:
|
||||
return Bloxstrap.Resources.Strings.Common_No;
|
||||
return Strings.Common_No;
|
||||
default:
|
||||
Debug.Assert(false);
|
||||
return result.ToString();
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
// formatting is done here instead of in xaml, it's just a bit easier
|
||||
public string MainText => String.Format(
|
||||
Resources.Strings.Installer_Welcome_MainText,
|
||||
Strings.Installer_Welcome_MainText,
|
||||
"[github.com/pizzaboxer/bloxstrap](https://github.com/pizzaboxer/bloxstrap)",
|
||||
"[bloxstraplabs.com](https://bloxstraplabs.com)"
|
||||
);
|
||||
|
@ -23,9 +23,9 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
IBootstrapperDialog dialog = App.Settings.Prop.BootstrapperStyle.GetNew();
|
||||
|
||||
if (App.Settings.Prop.BootstrapperStyle == BootstrapperStyle.ByfronDialog)
|
||||
dialog.Message = Resources.Strings.Bootstrapper_StylePreview_ImageCancel;
|
||||
dialog.Message = Strings.Bootstrapper_StylePreview_ImageCancel;
|
||||
else
|
||||
dialog.Message = Resources.Strings.Bootstrapper_StylePreview_TextCancel;
|
||||
dialog.Message = Strings.Bootstrapper_StylePreview_TextCancel;
|
||||
|
||||
dialog.CancelEnabled = true;
|
||||
dialog.ShowBootstrapper();
|
||||
@ -35,7 +35,7 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
{
|
||||
var dialog = new OpenFileDialog
|
||||
{
|
||||
Filter = $"{Resources.Strings.Menu_IconFiles}|*.ico"
|
||||
Filter = $"{Strings.Menu_IconFiles}|*.ico"
|
||||
};
|
||||
|
||||
if (dialog.ShowDialog() != true)
|
||||
|
@ -31,13 +31,13 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
{
|
||||
for (int i = 10; i > 0; i--)
|
||||
{
|
||||
ContinueButtonText = $"({i}) {Resources.Strings.Menu_FastFlagEditor_Warning_Continue}";
|
||||
ContinueButtonText = $"({i}) {Strings.Menu_FastFlagEditor_Warning_Continue}";
|
||||
OnPropertyChanged(nameof(ContinueButtonText));
|
||||
|
||||
await Task.Delay(1000);
|
||||
}
|
||||
|
||||
ContinueButtonText = Resources.Strings.Menu_FastFlagEditor_Warning_Continue;
|
||||
ContinueButtonText = Strings.Menu_FastFlagEditor_Warning_Continue;
|
||||
OnPropertyChanged(nameof(ContinueButtonText));
|
||||
|
||||
CanContinue = true;
|
||||
|
@ -19,7 +19,7 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
{
|
||||
CustomIntegrations.Add(new CustomIntegration()
|
||||
{
|
||||
Name = Resources.Strings.Menu_Integrations_Custom_NewIntegration
|
||||
Name = Strings.Menu_Integrations_Custom_NewIntegration
|
||||
});
|
||||
|
||||
SelectedCustomIntegrationIndex = CustomIntegrations.Count - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user