mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-21 05:35:45 +01:00
AudacityMessageBox takes TranslatableString message and caption
This commit is contained in:
@@ -328,10 +328,12 @@ int SFFileCloser::operator() (SNDFILE *sf) const
|
||||
if (err) {
|
||||
char buffer[1000];
|
||||
sf_error_str(sf, buffer, 1000);
|
||||
AudacityMessageBox(wxString::Format
|
||||
AudacityMessageBox(
|
||||
/* i18n-hint: %s will be the error message from libsndfile */
|
||||
(_("Error (file may not have been written): %s"),
|
||||
buffer));
|
||||
XO( "Error (file may not have been written): %s" )
|
||||
// Not attempting to localize error messages
|
||||
// from the library
|
||||
.Format( buffer ));
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user