1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-11 00:45:53 +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

@@ -91,7 +91,7 @@ public:
/// handled by having the code in one place.
void HelpSystem::ShowInfoDialog( wxWindow *parent,
const TranslatableString &dlogTitle,
const wxString &shortMsg,
const TranslatableString &shortMsg,
const wxString &message,
const int xSize, const int ySize)
{
@@ -105,7 +105,7 @@ void HelpSystem::ShowInfoDialog( wxWindow *parent,
S.StartVerticalLay(1);
{
S.AddTitle( shortMsg);
S.AddTitle( shortMsg.Translation() );
S.Style( wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxTE_RICH2 |
wxTE_AUTO_URL | wxTE_NOHIDESEL | wxHSCROLL )
.AddTextWindow(message);