1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

AudacityMessageBox takes TranslatableString message and caption

This commit is contained in:
Paul Licameli
2019-12-07 14:30:07 -05:00
parent d8c2610d88
commit dc39f22442
77 changed files with 1005 additions and 748 deletions

View File

@@ -644,7 +644,7 @@ void LabelDialog::OnImport(wxCommandEvent & WXUNUSED(event))
f.Open(fileName);
if (!f.IsOpened()) {
AudacityMessageBox(
wxString::Format( _("Could not open file: %s"), fileName ));
XO("Could not open file: %s").Format( fileName ) );
}
else {
// Create a temporary label track and load the labels
@@ -669,7 +669,7 @@ void LabelDialog::OnExport(wxCommandEvent & WXUNUSED(event))
// Silly user (could just disable the button, but that's a hassle ;-))
if (cnt == 0) {
AudacityMessageBox(_("No labels to export."));
AudacityMessageBox( XO("No labels to export.") );
return;
}
@@ -713,7 +713,7 @@ void LabelDialog::OnExport(wxCommandEvent & WXUNUSED(event))
f.Open();
if (!f.IsOpened()) {
AudacityMessageBox(
wxString::Format( _("Couldn't write to file: %s"), fName ) );
XO("Couldn't write to file: %s").Format( fName ) );
return;
}