Skip to content

Commit

Permalink
Add Resources.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Mar 6, 2024
1 parent 70b8eb4 commit c59dfdc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Stella.Info-48793142/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using InformationWindow.Forms;
using InformationWindow.Properties;

namespace InformationWindow;

Expand All @@ -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);
}
}
}
9 changes: 9 additions & 0 deletions Stella.Info-48793142/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Stella.Info-48793142/Properties/Resources.pl.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
<data name="Closing" xml:space="preserve">
<value>Zamykanie...</value>
</data>
<data name="Error" xml:space="preserve">
<value>Błąd</value>
</data>
<data name="PleaseWait" xml:space="preserve">
<value>Proszę czekać {0}s...</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions Stella.Info-48793142/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<data name="Closing" xml:space="preserve">
<value>Closing...</value>
</data>
<data name="Error" xml:space="preserve">
<value>Error</value>
</data>
<data name="PleaseWait" xml:space="preserve">
<value>Please wait {0}s...</value>
</data>
Expand Down

0 comments on commit c59dfdc

Please sign in to comment.