1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

AudacityMessageDialog takes TranslatableString message and caption

This commit is contained in:
Paul Licameli
2019-12-17 19:40:32 -05:00
parent 1b726f4f09
commit 71e9e38083
9 changed files with 93 additions and 59 deletions

View File

@@ -1017,11 +1017,12 @@ void MacrosWindow::OnRemove(wxCommandEvent & WXUNUSED(event))
}
wxString name = mMacros->GetItemText(item);
AudacityMessageDialog m(this,
/*i18n-hint: %s will be replaced by the name of a file.*/
wxString::Format(_("Are you sure you want to delete %s?"), name),
GetTitle(),
wxYES_NO | wxICON_QUESTION);
AudacityMessageDialog m(
this,
/*i18n-hint: %s will be replaced by the name of a file.*/
XO("Are you sure you want to delete %s?").Format( name ),
Verbatim( GetTitle() ),
wxYES_NO | wxICON_QUESTION );
if (m.ShowModal() == wxID_NO) {
Raise();
return;