diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp index 993b13b63..97db46fad 100644 --- a/src/AboutDialog.cpp +++ b/src/AboutDialog.cpp @@ -346,10 +346,10 @@ visit our [[http://forum.audacityteam.org/|forum]]."); #endif /* i18n-hint: The Latin phrase, "In memory of" a deceased person, often untranslated in European languages */ - wxT("
") + wxString::Format(_("In Memoriam")) + wxT("
") +
+ wxT("
") + _("In Memoriam") + wxT("
") +
GetCreditsByRole(roleDeceased) +
- wxT("
") + wxString::Format(_("Audacity Team Members")) + wxT("
") +
+ wxT("
") + _("Audacity Team Members") + wxT("
") +
GetCreditsByRole(roleTeamMember) +
wxT("
") + _("Emeritus:") + wxT("
") +
diff --git a/src/Menus.cpp b/src/Menus.cpp
index 2d7f76d09..86b31a8ca 100644
--- a/src/Menus.cpp
+++ b/src/Menus.cpp
@@ -1123,7 +1123,7 @@ void AudacityProject::CreateMenusAndCommands()
EffectManager::Get().GetEffectName(mLastEffect));
}
else
- buildMenuLabel.Printf(_("Repeat Last Effect"));
+ buildMenuLabel = _("Repeat Last Effect");
#ifdef EXPERIMENTAL_EFFECT_MANAGEMENT
c->AddItem(wxT("ManageEffects"), _("Add / Remove Plug-ins..."), FN(OnManageEffects));
@@ -1937,7 +1937,7 @@ void AudacityProject::ModifyUndoMenuItems()
}
else {
mCommandManager.Modify(wxT("Undo"),
- wxString::Format(_("&Undo")));
+ _("&Undo"));
}
if (GetUndoManager()->RedoAvailable()) {
@@ -1949,7 +1949,7 @@ void AudacityProject::ModifyUndoMenuItems()
}
else {
mCommandManager.Modify(wxT("Redo"),
- wxString::Format(_("&Redo")));
+ _("&Redo"));
mCommandManager.Enable(wxT("Redo"), false);
}
}
@@ -4602,13 +4602,13 @@ void AudacityProject::OnExportMIDI(){
}
if(numNoteTracksSelected > 1) {
- AudacityMessageBox(wxString::Format(_(
- "Please select only one Note Track at a time.")));
+ AudacityMessageBox(_(
+ "Please select only one Note Track at a time."));
return;
}
else if(numNoteTracksSelected < 1) {
- AudacityMessageBox(wxString::Format(_(
- "Please select a Note Track.")));
+ AudacityMessageBox(_(
+ "Please select a Note Track."));
return;
}
diff --git a/src/Project.cpp b/src/Project.cpp
index 0d9cc6906..f791c502d 100644
--- a/src/Project.cpp
+++ b/src/Project.cpp
@@ -4920,7 +4920,7 @@ void AudacityProject::OnTimer(wxTimerEvent& WXUNUSED(event))
ODManager::Instance()->SignalTaskQueueLoop();
- msg.Printf(_("On-demand import and waveform calculation complete."));
+ msg = _("On-demand import and waveform calculation complete.");
mStatusBar->SetStatusText(msg, mainStatusBarField);
}
diff --git a/src/TimerRecordDialog.cpp b/src/TimerRecordDialog.cpp
index cecb06f9c..7fa4a8a9e 100644
--- a/src/TimerRecordDialog.cpp
+++ b/src/TimerRecordDialog.cpp
@@ -524,12 +524,12 @@ int TimerRecordDialog::RunWaitDialog()
// Two column layout. Line spacing must match for both columns.
// First column
- wxString strMsg = wxString::Format(_("Recording start:\n") +
+ wxString strMsg = _("Recording start:\n") +
_("Duration:\n") +
_("Recording end:\n\n") +
_("Automatic Save enabled:\n") +
_("Automatic Export enabled:\n") +
- _("Action after Timer Recording:"));
+ _("Action after Timer Recording:");
strMsg += ProgressDialog::ColoumnSplitMarker;
@@ -1009,12 +1009,12 @@ ProgressResult TimerRecordDialog::WaitForStart()
// Two column layout. Line spacing must match for both columns.
// First column
- wxString strMsg = wxString::Format(_("Waiting to start recording at:\n") +
+ wxString strMsg = _("Waiting to start recording at:\n") +
_("Recording duration:\n") +
_("Scheduled to stop at:\n\n") +
_("Automatic Save enabled:\n") +
_("Automatic Export enabled:\n") +
- _("Action after Timer Recording:"));
+ _("Action after Timer Recording:");
strMsg += ProgressDialog::ColoumnSplitMarker;
@@ -1054,10 +1054,10 @@ ProgressResult TimerRecordDialog::PreActionDelay(int iActionIndex, TimerRecordCo
// Two column layout. Line spacing must match for both columns.
// First column
- wxString strMsg = wxString::Format(_("Timer Recording completed.\n\n") +
+ wxString strMsg = _("Timer Recording completed.\n\n") +
_("Recording Saved:\n") +
_("Recording Exported:\n") +
- _("Action after Timer Recording:"));
+ _("Action after Timer Recording:");
strMsg += ProgressDialog::ColoumnSplitMarker;
diff --git a/src/VoiceKey.cpp b/src/VoiceKey.cpp
index 1a77b1b14..d93021537 100644
--- a/src/VoiceKey.cpp
+++ b/src/VoiceKey.cpp
@@ -811,7 +811,7 @@ void VoiceKey::CalibrateNoise(const WaveTrack & t, sampleCount start, sampleCoun
mDirectionChangesMean = sumdc / samples;
mDirectionChangesSD =sqrt(sumdc2 / samples - mDirectionChangesMean * mDirectionChangesMean) ;
- wxString text = wxString::Format(_("Calibration Results\n"));
+ wxString text = _("Calibration Results\n");
/* i18n-hint: %1.4f is replaced by a number. sd stands for 'Standard Deviations'*/
text += wxString::Format(_("Energy -- mean: %1.4f sd: (%1.4f)\n"),mEnergyMean,mEnergySD);
text+= wxString::Format(_("Sign Changes -- mean: %1.4f sd: (%1.4f)\n"),mSignChangesMean,mSignChangesSD);
diff --git a/src/effects/AutoDuck.cpp b/src/effects/AutoDuck.cpp
index 3ed77cf0e..0ed865d58 100644
--- a/src/effects/AutoDuck.cpp
+++ b/src/effects/AutoDuck.cpp
@@ -685,7 +685,7 @@ void EffectAutoDuckPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
duckAmountDb < MIN_DuckAmountDb || duckAmountDb > MAX_DuckAmountDb)
{
// values are out of range, no preview available
- wxString message = wxString::Format(_("Preview not available"));
+ wxString message = _("Preview not available");
int textWidth = 0, textHeight = 0;
dc.GetTextExtent(message, &textWidth, &textHeight);
dc.DrawText(message, (clientWidth - textWidth) / 2,
diff --git a/src/effects/ClickRemoval.cpp b/src/effects/ClickRemoval.cpp
index aaec1782d..a7f55dcd5 100644
--- a/src/effects/ClickRemoval.cpp
+++ b/src/effects/ClickRemoval.cpp
@@ -193,7 +193,7 @@ bool EffectClickRemoval::Process()
}
if (bGoodResult && !mbDidSomething) // Processing successful, but ineffective.
Effect::MessageBox(
- wxString::Format(_("Algorithm not effective on this audio. Nothing changed.")),
+ _("Algorithm not effective on this audio. Nothing changed."),
wxOK | wxICON_ERROR);
this->ReplaceProcessedTracks(bGoodResult && mbDidSomething);
diff --git a/src/effects/Contrast.cpp b/src/effects/Contrast.cpp
index 383bd0d91..da6a5c2f0 100644
--- a/src/effects/Contrast.cpp
+++ b/src/effects/Contrast.cpp
@@ -408,7 +408,7 @@ namespace {
return wxString::Format(_("%.2f dB RMS"), diffdB);
else
/* i18n-hint: dB abbreviates decibels */
- return wxString::Format(_("Infinite dB difference"));
+ return _("Infinite dB difference");
}
}
@@ -463,27 +463,27 @@ void ContrastDialog::results()
if (mForegroundIsDefined) {
mForegroundRMSText->SetName(_("Measured foreground level")); // Read by screen-readers
if(std::isinf(- foregrounddB))
- mForegroundRMSText->ChangeValue(wxString::Format(_("zero")));
+ mForegroundRMSText->ChangeValue(_("zero"));
else
mForegroundRMSText->ChangeValue(wxString::Format(_("%.2f dB"), foregrounddB)); // i18n-hint: short form of 'decibels'
}
else {
mForegroundRMSText->SetName(_("No foreground measured")); // Read by screen-readers
mForegroundRMSText->ChangeValue(wxT(""));
- mPassFailText->ChangeValue(wxString::Format(_("Foreground not yet measured")));
+ mPassFailText->ChangeValue(_("Foreground not yet measured"));
}
if (mBackgroundIsDefined) {
mBackgroundRMSText->SetName(_("Measured background level"));
if(std::isinf(- backgrounddB))
- mBackgroundRMSText->ChangeValue(wxString::Format(_("zero")));
+ mBackgroundRMSText->ChangeValue(_("zero"));
else
mBackgroundRMSText->ChangeValue(wxString::Format(_("%.2f dB"), backgrounddB));
}
else {
mBackgroundRMSText->SetName(_("No background measured"));
mBackgroundRMSText->ChangeValue(wxT(""));
- mPassFailText->ChangeValue(wxString::Format(_("Background not yet measured")));
+ mPassFailText->ChangeValue(_("Background not yet measured"));
}
}
diff --git a/src/export/ExportFFmpeg.cpp b/src/export/ExportFFmpeg.cpp
index c2b7f9c92..7b182be09 100644
--- a/src/export/ExportFFmpeg.cpp
+++ b/src/export/ExportFFmpeg.cpp
@@ -288,7 +288,7 @@ bool ExportFFmpeg::Init(const char *shortname, AudacityProject *project, const T
mEncFormatCtx.reset(avformat_alloc_context());
if (!mEncFormatCtx)
{
- AudacityMessageBox(wxString::Format(_("FFmpeg : ERROR - Can't allocate output format context.")),
+ AudacityMessageBox(_("FFmpeg : ERROR - Can't allocate output format context."),
_("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION);
return false;
}
@@ -546,8 +546,10 @@ bool ExportFFmpeg::InitCodecs(AudacityProject *project)
mEncAudioFifoOutBuf.reset(static_cast