1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 06:31:07 +01:00

Pass TranslatableString to help, warning, and error dialogs

This commit is contained in:
Paul Licameli
2019-12-05 13:38:07 -05:00
parent 5909f67fdb
commit 2007346551
20 changed files with 72 additions and 68 deletions

View File

@@ -43,7 +43,7 @@ END_EVENT_TABLE()
ErrorDialog::ErrorDialog(
wxWindow *parent,
const TranslatableString & dlogTitle,
const wxString & message,
const TranslatableString & message,
const wxString & helpPage,
const bool Close, const bool modal):
wxDialogWrapper(parent, (wxWindowID)-1, dlogTitle)
@@ -63,7 +63,7 @@ ErrorDialog::ErrorDialog(
S.StartVerticalLay();
{
S.SetBorder( 20 );
S.AddFixedText( message );
S.AddFixedText( message.Translation() );
S.SetBorder( 2 );
S.AddStandardButtons( buttonMask );
}
@@ -104,7 +104,7 @@ void ErrorDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
void ShowErrorDialog(wxWindow *parent,
const TranslatableString &dlogTitle,
const wxString &message,
const TranslatableString &message,
const wxString &helpPage,
const bool Close)
{
@@ -117,7 +117,7 @@ void ShowErrorDialog(wxWindow *parent,
// unused.
void ShowModelessErrorDialog(wxWindow *parent,
const TranslatableString &dlogTitle,
const wxString &message,
const TranslatableString &message,
const wxString &helpPage,
const bool Close)
{