1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-24 16:01:16 +02:00

Fix some untranslated prompts and messages...

... Even if some commented out.  Such don't enlarge the .pot file, but make
them right in case they are ever un-commented.
This commit is contained in:
Paul Licameli 2017-09-08 17:31:45 -04:00
parent 3b7e99273e
commit 70b5076b0b
7 changed files with 35 additions and 29 deletions

View File

@ -366,13 +366,13 @@ double BatchCommands::GetEndTime()
AudacityProject *project = GetActiveProject(); AudacityProject *project = GetActiveProject();
if( project == NULL ) if( project == NULL )
{ {
//wxMessageBox( wxT("No project to process!") ); //wxMessageBox( _("No project to process!") );
return -1.0; return -1.0;
} }
TrackList * tracks = project->GetTracks(); TrackList * tracks = project->GetTracks();
if( tracks == NULL ) if( tracks == NULL )
{ {
//wxMessageBox( wxT("No tracks to process!") ); //wxMessageBox( _("No tracks to process!") );
return -1.0; return -1.0;
} }
@ -385,14 +385,14 @@ bool BatchCommands::IsMono()
AudacityProject *project = GetActiveProject(); AudacityProject *project = GetActiveProject();
if( project == NULL ) if( project == NULL )
{ {
//wxMessageBox( wxT("No project and no Audio to process!") ); //wxMessageBox( _("No project and no Audio to process!") );
return false; return false;
} }
TrackList * tracks = project->GetTracks(); TrackList * tracks = project->GetTracks();
if( tracks == NULL ) if( tracks == NULL )
{ {
//wxMessageBox( wxT("No tracks to process!") ); //wxMessageBox( _("No tracks to process!") );
return false; return false;
} }

View File

@ -752,8 +752,9 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
{ {
wxMessageBox( wxMessageBox(
wxString::Format( wxString::Format(
wxT("Theme cache file:\n %s\nalready exists.\nAre you sure you want to replace it?"), // _("Theme cache file:\n %s\nalready exists.\nAre you sure you want to replace it?"),
FileName.c_str() )); FileName.c_str() )
);
return; return;
} }
#endif #endif
@ -775,7 +776,11 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
} }
wxMessageBox( wxMessageBox(
wxString::Format( wxString::Format(
wxT("Theme written to:\n %s."), /* i18n-hint: A theme is a consistent visual style across an application's
graphical user interface, including choices of colors, and similarity of images
such as those on button controls. Audacity can load and save alternative
themes. */
_("Theme written to:\n %s."),
FileName.c_str() )); FileName.c_str() ));
} }
// ELSE saving to a C code textual version. // ELSE saving to a C code textual version.
@ -801,7 +806,8 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
} }
wxMessageBox( wxMessageBox(
wxString::Format( wxString::Format(
wxT("Theme as Cee code written to:\n %s."), /* i18n-hint "Cee" means the C computer programming language */
_("Theme as Cee code written to:\n %s."),
FileName.c_str() )); FileName.c_str() ));
} }
} }
@ -1181,7 +1187,7 @@ void ThemeBase::SaveComponents()
} }
wxMessageBox( wxMessageBox(
wxString::Format( wxString::Format(
wxT("Theme written to:\n %s."), _("Theme written to:\n %s."),
FileNames::ThemeComponentsDir().c_str() )); FileNames::ThemeComponentsDir().c_str() ));
} }

View File

@ -412,7 +412,7 @@ void TimerRecordDialog::OnOK(wxCommandEvent& WXUNUSED(event))
// Create the message string // Create the message string
wxString sMessage = ""; wxString sMessage = "";
sMessage.Printf("You may not have enough free disk space to complete this Timer Recording, based on your current settings.\n\nDo you wish to continue?\n\nPlanned recording duration: %s\nRecording time remaining on disk: %s", sMessage.Printf(_("You may not have enough free disk space to complete this Timer Recording, based on your current settings.\n\nDo you wish to continue?\n\nPlanned recording duration: %s\nRecording time remaining on disk: %s"),
sPlannedTime, sPlannedTime,
sRemainingTime); sRemainingTime);
@ -492,7 +492,7 @@ bool TimerRecordDialog::RemoveAllAutoSaveFiles()
{ {
// I don't think this error message is actually useful. // I don't think this error message is actually useful.
// -dmazzoni // -dmazzoni
//wxMessageBox(wxT("Could not remove auto save file: " + files[i]), //wxMessageBox(_("Could not remove auto save file: " + files[i]),
// _("Error"), wxICON_STOP); // _("Error"), wxICON_STOP);
return false; return false;
} }
@ -622,18 +622,18 @@ int TimerRecordDialog::ExecutePostRecordActions(bool bWasStopped) {
if (m_bAutoSaveEnabled) { if (m_bAutoSaveEnabled) {
if (bSaveOK) { if (bSaveOK) {
sMessage.Printf("%s\n\nRecording saved: %s", sMessage.Printf(_("%s\n\nRecording saved: %s"),
sMessage, m_fnAutoSaveFile.GetFullPath()); sMessage, m_fnAutoSaveFile.GetFullPath());
} else { } else {
sMessage.Printf("%s\n\nError saving recording.", sMessage); sMessage.Printf(_("%s\n\nError saving recording."), sMessage);
} }
} }
if (m_bAutoExportEnabled) { if (m_bAutoExportEnabled) {
if (bExportOK) { if (bExportOK) {
sMessage.Printf("%s\n\nRecording exported: %s", sMessage.Printf(_("%s\n\nRecording exported: %s"),
sMessage, m_fnAutoExportFile.GetFullPath()); sMessage, m_fnAutoExportFile.GetFullPath());
} else { } else {
sMessage.Printf("%s\n\nError exporting recording.", sMessage); sMessage.Printf(_("%s\n\nError exporting recording."), sMessage);
} }
} }
@ -642,7 +642,7 @@ int TimerRecordDialog::ExecutePostRecordActions(bool bWasStopped) {
if ((iOverriddenAction != iPostRecordAction) && if ((iOverriddenAction != iPostRecordAction) &&
(iOverriddenAction != POST_TIMER_RECORD_NOTHING)) { (iOverriddenAction != POST_TIMER_RECORD_NOTHING)) {
// Inform the user that we have overridden the selected action // Inform the user that we have overridden the selected action
sMessage.Printf("%s\n\n'%s' has been canceled due to the error(s) noted above.", sMessage.Printf(_("%s\n\n'%s' has been canceled due to the error(s) noted above."),
sMessage, sMessage,
m_pTimerAfterCompleteChoiceCtrl->GetString(iOverriddenAction)); m_pTimerAfterCompleteChoiceCtrl->GetString(iOverriddenAction));
} }
@ -652,7 +652,7 @@ int TimerRecordDialog::ExecutePostRecordActions(bool bWasStopped) {
} else { } else {
if (bWasStopped && (iOverriddenAction != POST_TIMER_RECORD_NOTHING)) { if (bWasStopped && (iOverriddenAction != POST_TIMER_RECORD_NOTHING)) {
sMessage.Printf("%s\n\n'%s' has been canceled as the recording was stopped.", sMessage.Printf(_("%s\n\n'%s' has been canceled as the recording was stopped."),
sMessage, sMessage,
m_pTimerAfterCompleteChoiceCtrl->GetString(iOverriddenAction)); m_pTimerAfterCompleteChoiceCtrl->GetString(iOverriddenAction));
} }

View File

@ -818,7 +818,7 @@ void VoiceKey::CalibrateNoise(const WaveTrack & t, sampleCount start, sampleCoun
text+= wxString::Format(_("Sign Changes -- mean: %1.4f sd: (%1.4f)\n"),mSignChangesMean,mSignChangesSD); text+= wxString::Format(_("Sign Changes -- mean: %1.4f sd: (%1.4f)\n"),mSignChangesMean,mSignChangesSD);
text += wxString::Format(_("Direction Changes -- mean: %1.4f sd: (%1.4f)\n"), mDirectionChangesMean, mDirectionChangesSD); text += wxString::Format(_("Direction Changes -- mean: %1.4f sd: (%1.4f)\n"), mDirectionChangesMean, mDirectionChangesSD);
wxMessageDialog{ NULL, text, wxMessageDialog{ NULL, text,
wxT("Calibration Complete"), _("Calibration Complete"),
wxOK | wxICON_INFORMATION, wxOK | wxICON_INFORMATION,
wxPoint(-1, -1) } wxPoint(-1, -1) }
.ShowModal(); .ShowModal();

View File

@ -1034,7 +1034,7 @@ bool LV2Effect::PopulateUI(wxWindow *parent)
mMaster = InitInstance(mSampleRate); mMaster = InitInstance(mSampleRate);
if (mMaster == NULL) if (mMaster == NULL)
{ {
wxMessageBox(wxT("Couldn't instantiate effect")); wxMessageBox(_("Couldn't instantiate effect"));
return false; return false;
} }

View File

@ -326,7 +326,7 @@ bool ExportFFmpeg::Init(const char *shortname, AudacityProject *project, const T
{ {
if ((err = ufile_fopen(&mEncFormatCtx->pb, mName, AVIO_FLAG_WRITE)) < 0) if ((err = ufile_fopen(&mEncFormatCtx->pb, mName, AVIO_FLAG_WRITE)) < 0)
{ {
wxMessageBox(wxString::Format(wxT("FFmpeg : ERROR - Can't open output file \"%s\" to write. Error code is %d."), mName.c_str(), err), wxMessageBox(wxString::Format(_("FFmpeg : ERROR - Can't open output file \"%s\" to write. Error code is %d."), mName.c_str(), err),
_("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION); _("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION);
return false; return false;
} }

View File

@ -955,8 +955,8 @@ GStreamerImportFileHandle::Init()
// Add the decoder to the pipeline // Add the decoder to the pipeline
if (!gst_bin_add(GST_BIN(mPipeline.get()), mDec)) if (!gst_bin_add(GST_BIN(mPipeline.get()), mDec))
{ {
wxMessageBox(wxT("Unable to add decoder to pipeline"), wxMessageBox(_("Unable to add decoder to pipeline"),
wxT("GStreamer Importer")); _("GStreamer Importer"));
// Cleanup expected to occur in destructor // Cleanup expected to occur in destructor
return false; return false;
@ -966,8 +966,8 @@ GStreamerImportFileHandle::Init()
GstStateChangeReturn state = gst_element_set_state(mPipeline.get(), GST_STATE_PAUSED); GstStateChangeReturn state = gst_element_set_state(mPipeline.get(), GST_STATE_PAUSED);
if (state == GST_STATE_CHANGE_FAILURE) if (state == GST_STATE_CHANGE_FAILURE)
{ {
wxMessageBox(wxT("Unable to set stream state to paused."), wxMessageBox(_("Unable to set stream state to paused."),
wxT("GStreamer Importer")); _("GStreamer Importer"));
return false; return false;
} }
@ -1095,8 +1095,8 @@ GStreamerImportFileHandle::Import(TrackFactory *trackFactory,
// Can't do much if we don't have any streams to process // Can't do much if we don't have any streams to process
if (!haveStreams) if (!haveStreams)
{ {
wxMessageBox(wxT("File doesn't contain any audio streams."), wxMessageBox(_("File doesn't contain any audio streams."),
wxT("GStreamer Importer")); _("GStreamer Importer"));
return ProgressResult::Failed; return ProgressResult::Failed;
} }
@ -1104,8 +1104,8 @@ GStreamerImportFileHandle::Import(TrackFactory *trackFactory,
GstStateChangeReturn state = gst_element_set_state(mPipeline.get(), GST_STATE_PLAYING); GstStateChangeReturn state = gst_element_set_state(mPipeline.get(), GST_STATE_PLAYING);
if (state == GST_STATE_CHANGE_FAILURE) if (state == GST_STATE_CHANGE_FAILURE)
{ {
wxMessageBox(wxT("Unable to import file, state change failed."), wxMessageBox(_("Unable to import file, state change failed."),
wxT("GStreamer Importer")); _("GStreamer Importer"));
return ProgressResult::Failed; return ProgressResult::Failed;
} }
@ -1235,7 +1235,7 @@ GStreamerImportFileHandle::ProcessBusMessage(bool & success)
debug ? wxT("\n") : wxT(""), debug ? wxT("\n") : wxT(""),
debug ? wxString::FromUTF8(debug.get()).c_str() : wxT("")); debug ? wxString::FromUTF8(debug.get()).c_str() : wxT(""));
#if defined(_DEBUG) #if defined(_DEBUG)
wxMessageBox(m, wxT("GStreamer Error:")); wxMessageBox(wxString::Format(_("GStreamer Error: %s"), m));
#else #else
wxLogMessage(wxT("GStreamer Error: %s"), m.c_str()); wxLogMessage(wxT("GStreamer Error: %s"), m.c_str());
#endif #endif