1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-14 23:57:40 +02:00

Further simplification of commit a0fad21fec68a671655bb5158e37880d3fed78ba

This commit is contained in:
Paul Licameli 2017-10-17 10:32:09 -04:00
parent 970b9a27ee
commit 2dacaa56a9
2 changed files with 3 additions and 8 deletions

@ -30,13 +30,11 @@ wxString FileException::ErrorMessage() const
case Cause::Read: case Cause::Read:
format = _("Audacity failed to read from a file in %s."); format = _("Audacity failed to read from a file in %s.");
break; break;
case Cause::Write: { case Cause::Write:
auto lang = gPrefs->Read(wxT("/Locale/Language"), wxT(""));
format = format =
_("Audacity failed to write to a file.\n" _("Audacity failed to write to a file.\n"
"Perhaps %s is not writable or the disk is full."); "Perhaps %s is not writable or the disk is full.");
break; break;
}
case Cause::Rename: case Cause::Rename:
format = format =
_("Audacity successfully wrote a file in %s but failed to rename it as %s."); _("Audacity successfully wrote a file in %s but failed to rename it as %s.");

@ -332,10 +332,7 @@ void AudacityProject::CreateMenusAndCommands()
AudioIONotBusyFlag | UnsavedChangesFlag); AudioIONotBusyFlag | UnsavedChangesFlag);
c->AddItem(wxT("SaveAs"), _("Save Project &As..."), FN(OnSaveAs)); c->AddItem(wxT("SaveAs"), _("Save Project &As..."), FN(OnSaveAs));
{
auto lang = gPrefs->Read(wxT("/Locale/Language"), wxT(""));
c->BeginSubMenu( _("&Export") ); c->BeginSubMenu( _("&Export") );
}
// Enable Export audio commands only when there are audio tracks. // Enable Export audio commands only when there are audio tracks.
c->AddItem(wxT("ExportMp3"), _("Export as MP&3"), FN(OnExportMp3), wxT(""), c->AddItem(wxT("ExportMp3"), _("Export as MP&3"), FN(OnExportMp3), wxT(""),