From 2dacaa56a9e6a28ee35853e96a8bee315e8c0d46 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 17 Oct 2017 10:32:09 -0400 Subject: [PATCH] Further simplification of commit a0fad21fec68a671655bb5158e37880d3fed78ba --- src/FileException.cpp | 6 ++---- src/Menus.cpp | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/FileException.cpp b/src/FileException.cpp index 185ca8ce7..a4e515f4e 100644 --- a/src/FileException.cpp +++ b/src/FileException.cpp @@ -30,13 +30,11 @@ wxString FileException::ErrorMessage() const case Cause::Read: format = _("Audacity failed to read from a file in %s."); break; - case Cause::Write: { - auto lang = gPrefs->Read(wxT("/Locale/Language"), wxT("")); - format = + case Cause::Write: + format = _("Audacity failed to write to a file.\n" "Perhaps %s is not writable or the disk is full."); break; - } case Cause::Rename: format = _("Audacity successfully wrote a file in %s but failed to rename it as %s."); diff --git a/src/Menus.cpp b/src/Menus.cpp index 381729af2..1baeea984 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -332,10 +332,7 @@ void AudacityProject::CreateMenusAndCommands() AudioIONotBusyFlag | UnsavedChangesFlag); 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. c->AddItem(wxT("ExportMp3"), _("Export as MP&3"), FN(OnExportMp3), wxT(""),