1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-26 17:38:10 +02:00

Update some calls expecting TranslatableString in disabled code

This commit is contained in:
Paul Licameli 2019-12-28 13:58:17 -05:00
parent 18942d9909
commit 259359a283
5 changed files with 12 additions and 12 deletions

View File

@ -1522,7 +1522,7 @@ void ProjectFileManager::OpenFile(const FilePath &fileNameArg, bool addtohistory
// Vaughan, 2010-08-20: This was bogus, as all the actions in ProjectFSCK // Vaughan, 2010-08-20: This was bogus, as all the actions in ProjectFSCK
// that return FSCKstatus_CHANGED cannot be undone. // that return FSCKstatus_CHANGED cannot be undone.
// this->PushState(_("Project checker repaired file"), _("Project Repair")); // this->PushState(XO("Project checker repaired file"), XO("Project Repair"));
if (status & FSCKstatus_SAVE_AUP) if (status & FSCKstatus_SAVE_AUP)
Save(), saved = true; Save(), saved = true;

View File

@ -20,7 +20,7 @@
#include "../widgets/AudacityMessageBox.h" #include "../widgets/AudacityMessageBox.h"
#include "../widgets/ProgressDialog.h" #include "../widgets/ProgressDialog.h"
#define DESC _("QuickTime files") #define DESC XO("QuickTime files")
static const auto exts = { static const auto exts = {
wxT("aif"), wxT("aif"),
@ -119,9 +119,9 @@ class QTImportPlugin final : public ImportPlugin
mInitialized = false; mInitialized = false;
} }
wxString GetPluginStringID() { return wxT("quicktime"); } wxString GetPluginStringID() override { return wxT("quicktime"); }
TranslatableString GetPluginFormatDescription(); TranslatableString GetPluginFormatDescription() override;
std::unique_ptr<ImportFileHandle> Open(const wxString & Filename) override; std::unique_ptr<ImportFileHandle> Open(const wxString & Filename) override;
unsigned SequenceNumber() const override; unsigned SequenceNumber() const override;

View File

@ -832,7 +832,7 @@ void OnSplit(const CommandContext &context)
n = nIter.Next(); n = nIter.Next();
} }
PushState(_("Split"), _("Split")); PushState(XO("Split"), XO("Split"));
*/ */
#endif #endif
} }

View File

@ -381,8 +381,8 @@ class ASAProgress final : public SAProgress {
work[1], mFrames[1], is_audio[1]); work[1], mFrames[1], is_audio[1]);
wxFprintf(mTimeFile, "work2 = %g, work3 = %g\n", work2, work3); wxFprintf(mTimeFile, "work2 = %g, work3 = %g\n", work2, work3);
#endif #endif
mProgress.create(_("Synchronize MIDI with Audio"), mProgress.create(XO("Synchronize MIDI with Audio"),
_("Synchronizing MIDI and Audio Tracks")); XO("Synchronizing MIDI and Audio Tracks"));
} else if (i < 3) { } else if (i < 3) {
wxFprintf(mTimeFile, wxFprintf(mTimeFile,
"Phase %d took %d ms for %g frames, coefficient = %g s/frame\n", "Phase %d took %d ms for %g frames, coefficient = %g s/frame\n",
@ -933,7 +933,7 @@ void OnScoreAlign(const CommandContext &context)
// We're going to do it. // We're going to do it.
//pushing the state before the change is wrong (I think) //pushing the state before the change is wrong (I think)
//PushState(_("Sync MIDI with Audio"), _("Sync MIDI with Audio")); //PushState(XO("Sync MIDI with Audio"), XO("Sync MIDI with Audio"));
// Make a copy of the note track in case alignment is canceled or fails // Make a copy of the note track in case alignment is canceled or fails
auto holder = nt->Duplicate(); auto holder = nt->Duplicate();
auto alignedNoteTrack = static_cast<NoteTrack*>(holder.get()); auto alignedNoteTrack = static_cast<NoteTrack*>(holder.get());

View File

@ -845,20 +845,20 @@ void WaveTrackMenuTable::OnChannelChange(wxCommandEvent & event)
WaveTrack *const pTrack = static_cast<WaveTrack*>(mpData->pTrack); WaveTrack *const pTrack = static_cast<WaveTrack*>(mpData->pTrack);
wxASSERT(pTrack); wxASSERT(pTrack);
Track::ChannelType channel; Track::ChannelType channel;
wxString channelmsg; TranslatableString channelmsg;
switch (id) { switch (id) {
default: default:
case OnChannelMonoID: case OnChannelMonoID:
channel = Track::MonoChannel; channel = Track::MonoChannel;
channelmsg = _("Mono"); channelmsg = XO("Mono");
break; break;
case OnChannelLeftID: case OnChannelLeftID:
channel = Track::LeftChannel; channel = Track::LeftChannel;
channelmsg = _("Left Channel"); channelmsg = XO("Left Channel");
break; break;
case OnChannelRightID: case OnChannelRightID:
channel = Track::RightChannel; channel = Track::RightChannel;
channelmsg = _("Right Channel"); channelmsg = XO("Right Channel");
break; break;
} }
pTrack->SetChannel(channel); pTrack->SetChannel(channel);