mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
AudacityMessageBox takes TranslatableString message and caption
This commit is contained in:
@@ -112,7 +112,11 @@ bool Module::Load()
|
||||
tVersionFn versionFn = (tVersionFn)(mLib->GetSymbol(wxT(versionFnName)));
|
||||
if (versionFn == NULL){
|
||||
wxString ShortName = wxFileName( mName ).GetName();
|
||||
AudacityMessageBox(wxString::Format(_("The module %s does not provide a version string.\nIt will not be loaded."), ShortName), _("Module Unsuitable"));
|
||||
AudacityMessageBox(
|
||||
XO(
|
||||
"The module %s does not provide a version string.\nIt will not be loaded.")
|
||||
.Format( ShortName),
|
||||
XO("Module Unsuitable"));
|
||||
wxLogMessage(wxString::Format(_("The module %s does not provide a version string. It will not be loaded."), mName));
|
||||
mLib->Unload();
|
||||
return false;
|
||||
@@ -121,7 +125,11 @@ bool Module::Load()
|
||||
wxString moduleVersion = versionFn();
|
||||
if( moduleVersion != AUDACITY_VERSION_STRING) {
|
||||
wxString ShortName = wxFileName( mName ).GetName();
|
||||
AudacityMessageBox(wxString::Format(_("The module %s is matched with Audacity version %s.\n\nIt will not be loaded."), ShortName, moduleVersion), _("Module Unsuitable"));
|
||||
AudacityMessageBox(
|
||||
XO(
|
||||
"The module %s is matched with Audacity version %s.\n\nIt will not be loaded.")
|
||||
.Format( ShortName, moduleVersion),
|
||||
XO("Module Unsuitable"));
|
||||
wxLogMessage(wxString::Format(_("The module %s is matched with Audacity version %s. It will not be loaded."), mName, moduleVersion));
|
||||
mLib->Unload();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user