From c59dfdcd5063148fa4ee469629cdfb5d269283ec Mon Sep 17 00:00:00 2001 From: Sefinek Actions Date: Wed, 6 Mar 2024 15:12:04 +0100 Subject: [PATCH] Add `Resources.Error` --- Stella.Info-48793142/Program.cs | 3 ++- Stella.Info-48793142/Properties/Resources.Designer.cs | 9 +++++++++ Stella.Info-48793142/Properties/Resources.pl.resx | 3 +++ Stella.Info-48793142/Properties/Resources.resx | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Stella.Info-48793142/Program.cs b/Stella.Info-48793142/Program.cs index 3146ed18..9d1b3b34 100644 --- a/Stella.Info-48793142/Program.cs +++ b/Stella.Info-48793142/Program.cs @@ -1,4 +1,5 @@ using InformationWindow.Forms; +using InformationWindow.Properties; namespace InformationWindow; @@ -23,7 +24,7 @@ private static void Main() } catch (Exception ex) { - MessageBox.Show(ex.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } } } diff --git a/Stella.Info-48793142/Properties/Resources.Designer.cs b/Stella.Info-48793142/Properties/Resources.Designer.cs index 6c1035d2..6d0359c5 100644 --- a/Stella.Info-48793142/Properties/Resources.Designer.cs +++ b/Stella.Info-48793142/Properties/Resources.Designer.cs @@ -89,6 +89,15 @@ internal static string Closing { } } + /// + /// Looks up a localized string similar to Error. + /// + internal static string Error { + get { + return ResourceManager.GetString("Error", resourceCulture); + } + } + /// /// Looks up a localized string similar to Please wait {0}s.... /// diff --git a/Stella.Info-48793142/Properties/Resources.pl.resx b/Stella.Info-48793142/Properties/Resources.pl.resx index c8554aed..58128986 100644 --- a/Stella.Info-48793142/Properties/Resources.pl.resx +++ b/Stella.Info-48793142/Properties/Resources.pl.resx @@ -120,6 +120,9 @@ Zamykanie... + + Błąd + Proszę czekać {0}s... diff --git a/Stella.Info-48793142/Properties/Resources.resx b/Stella.Info-48793142/Properties/Resources.resx index 656bfeec..bfd84634 100644 --- a/Stella.Info-48793142/Properties/Resources.resx +++ b/Stella.Info-48793142/Properties/Resources.resx @@ -127,6 +127,9 @@ Closing... + + Error + Please wait {0}s...