1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 08:58:06 +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
// 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)
Save(), saved = true;

View File

@ -20,7 +20,7 @@
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/ProgressDialog.h"
#define DESC _("QuickTime files")
#define DESC XO("QuickTime files")
static const auto exts = {
wxT("aif"),
@ -119,9 +119,9 @@ class QTImportPlugin final : public ImportPlugin
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;
unsigned SequenceNumber() const override;

View File

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

View File

@ -381,8 +381,8 @@ class ASAProgress final : public SAProgress {
work[1], mFrames[1], is_audio[1]);
wxFprintf(mTimeFile, "work2 = %g, work3 = %g\n", work2, work3);
#endif
mProgress.create(_("Synchronize MIDI with Audio"),
_("Synchronizing MIDI and Audio Tracks"));
mProgress.create(XO("Synchronize MIDI with Audio"),
XO("Synchronizing MIDI and Audio Tracks"));
} else if (i < 3) {
wxFprintf(mTimeFile,
"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.
//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
auto holder = nt->Duplicate();
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);
wxASSERT(pTrack);
Track::ChannelType channel;
wxString channelmsg;
TranslatableString channelmsg;
switch (id) {
default:
case OnChannelMonoID:
channel = Track::MonoChannel;
channelmsg = _("Mono");
channelmsg = XO("Mono");
break;
case OnChannelLeftID:
channel = Track::LeftChannel;
channelmsg = _("Left Channel");
channelmsg = XO("Left Channel");
break;
case OnChannelRightID:
channel = Track::RightChannel;
channelmsg = _("Right Channel");
channelmsg = XO("Right Channel");
break;
}
pTrack->SetChannel(channel);