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:
parent
3b7e99273e
commit
70b5076b0b
@ -366,13 +366,13 @@ double BatchCommands::GetEndTime()
|
||||
AudacityProject *project = GetActiveProject();
|
||||
if( project == NULL )
|
||||
{
|
||||
//wxMessageBox( wxT("No project to process!") );
|
||||
//wxMessageBox( _("No project to process!") );
|
||||
return -1.0;
|
||||
}
|
||||
TrackList * tracks = project->GetTracks();
|
||||
if( tracks == NULL )
|
||||
{
|
||||
//wxMessageBox( wxT("No tracks to process!") );
|
||||
//wxMessageBox( _("No tracks to process!") );
|
||||
return -1.0;
|
||||
}
|
||||
|
||||
@ -385,14 +385,14 @@ bool BatchCommands::IsMono()
|
||||
AudacityProject *project = GetActiveProject();
|
||||
if( project == NULL )
|
||||
{
|
||||
//wxMessageBox( wxT("No project and no Audio to process!") );
|
||||
//wxMessageBox( _("No project and no Audio to process!") );
|
||||
return false;
|
||||
}
|
||||
|
||||
TrackList * tracks = project->GetTracks();
|
||||
if( tracks == NULL )
|
||||
{
|
||||
//wxMessageBox( wxT("No tracks to process!") );
|
||||
//wxMessageBox( _("No tracks to process!") );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -752,8 +752,9 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
|
||||
{
|
||||
wxMessageBox(
|
||||
wxString::Format(
|
||||
wxT("Theme cache file:\n %s\nalready exists.\nAre you sure you want to replace it?"),
|
||||
FileName.c_str() ));
|
||||
// _("Theme cache file:\n %s\nalready exists.\nAre you sure you want to replace it?"),
|
||||
FileName.c_str() )
|
||||
);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@ -775,7 +776,11 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
|
||||
}
|
||||
wxMessageBox(
|
||||
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() ));
|
||||
}
|
||||
// ELSE saving to a C code textual version.
|
||||
@ -801,7 +806,8 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
|
||||
}
|
||||
wxMessageBox(
|
||||
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() ));
|
||||
}
|
||||
}
|
||||
@ -1181,7 +1187,7 @@ void ThemeBase::SaveComponents()
|
||||
}
|
||||
wxMessageBox(
|
||||
wxString::Format(
|
||||
wxT("Theme written to:\n %s."),
|
||||
_("Theme written to:\n %s."),
|
||||
FileNames::ThemeComponentsDir().c_str() ));
|
||||
}
|
||||
|
||||
|
@ -412,7 +412,7 @@ void TimerRecordDialog::OnOK(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
// Create the message string
|
||||
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,
|
||||
sRemainingTime);
|
||||
|
||||
@ -492,7 +492,7 @@ bool TimerRecordDialog::RemoveAllAutoSaveFiles()
|
||||
{
|
||||
// I don't think this error message is actually useful.
|
||||
// -dmazzoni
|
||||
//wxMessageBox(wxT("Could not remove auto save file: " + files[i]),
|
||||
//wxMessageBox(_("Could not remove auto save file: " + files[i]),
|
||||
// _("Error"), wxICON_STOP);
|
||||
return false;
|
||||
}
|
||||
@ -622,18 +622,18 @@ int TimerRecordDialog::ExecutePostRecordActions(bool bWasStopped) {
|
||||
|
||||
if (m_bAutoSaveEnabled) {
|
||||
if (bSaveOK) {
|
||||
sMessage.Printf("%s\n\nRecording saved: %s",
|
||||
sMessage.Printf(_("%s\n\nRecording saved: %s"),
|
||||
sMessage, m_fnAutoSaveFile.GetFullPath());
|
||||
} else {
|
||||
sMessage.Printf("%s\n\nError saving recording.", sMessage);
|
||||
sMessage.Printf(_("%s\n\nError saving recording."), sMessage);
|
||||
}
|
||||
}
|
||||
if (m_bAutoExportEnabled) {
|
||||
if (bExportOK) {
|
||||
sMessage.Printf("%s\n\nRecording exported: %s",
|
||||
sMessage.Printf(_("%s\n\nRecording exported: %s"),
|
||||
sMessage, m_fnAutoExportFile.GetFullPath());
|
||||
} 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) &&
|
||||
(iOverriddenAction != POST_TIMER_RECORD_NOTHING)) {
|
||||
// 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,
|
||||
m_pTimerAfterCompleteChoiceCtrl->GetString(iOverriddenAction));
|
||||
}
|
||||
@ -652,7 +652,7 @@ int TimerRecordDialog::ExecutePostRecordActions(bool bWasStopped) {
|
||||
} else {
|
||||
|
||||
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,
|
||||
m_pTimerAfterCompleteChoiceCtrl->GetString(iOverriddenAction));
|
||||
}
|
||||
|
@ -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(_("Direction Changes -- mean: %1.4f sd: (%1.4f)\n"), mDirectionChangesMean, mDirectionChangesSD);
|
||||
wxMessageDialog{ NULL, text,
|
||||
wxT("Calibration Complete"),
|
||||
_("Calibration Complete"),
|
||||
wxOK | wxICON_INFORMATION,
|
||||
wxPoint(-1, -1) }
|
||||
.ShowModal();
|
||||
|
@ -1034,7 +1034,7 @@ bool LV2Effect::PopulateUI(wxWindow *parent)
|
||||
mMaster = InitInstance(mSampleRate);
|
||||
if (mMaster == NULL)
|
||||
{
|
||||
wxMessageBox(wxT("Couldn't instantiate effect"));
|
||||
wxMessageBox(_("Couldn't instantiate effect"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
|
@ -955,8 +955,8 @@ GStreamerImportFileHandle::Init()
|
||||
// Add the decoder to the pipeline
|
||||
if (!gst_bin_add(GST_BIN(mPipeline.get()), mDec))
|
||||
{
|
||||
wxMessageBox(wxT("Unable to add decoder to pipeline"),
|
||||
wxT("GStreamer Importer"));
|
||||
wxMessageBox(_("Unable to add decoder to pipeline"),
|
||||
_("GStreamer Importer"));
|
||||
|
||||
// Cleanup expected to occur in destructor
|
||||
return false;
|
||||
@ -966,8 +966,8 @@ GStreamerImportFileHandle::Init()
|
||||
GstStateChangeReturn state = gst_element_set_state(mPipeline.get(), GST_STATE_PAUSED);
|
||||
if (state == GST_STATE_CHANGE_FAILURE)
|
||||
{
|
||||
wxMessageBox(wxT("Unable to set stream state to paused."),
|
||||
wxT("GStreamer Importer"));
|
||||
wxMessageBox(_("Unable to set stream state to paused."),
|
||||
_("GStreamer Importer"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1095,8 +1095,8 @@ GStreamerImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
// Can't do much if we don't have any streams to process
|
||||
if (!haveStreams)
|
||||
{
|
||||
wxMessageBox(wxT("File doesn't contain any audio streams."),
|
||||
wxT("GStreamer Importer"));
|
||||
wxMessageBox(_("File doesn't contain any audio streams."),
|
||||
_("GStreamer Importer"));
|
||||
return ProgressResult::Failed;
|
||||
}
|
||||
|
||||
@ -1104,8 +1104,8 @@ GStreamerImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
GstStateChangeReturn state = gst_element_set_state(mPipeline.get(), GST_STATE_PLAYING);
|
||||
if (state == GST_STATE_CHANGE_FAILURE)
|
||||
{
|
||||
wxMessageBox(wxT("Unable to import file, state change failed."),
|
||||
wxT("GStreamer Importer"));
|
||||
wxMessageBox(_("Unable to import file, state change failed."),
|
||||
_("GStreamer Importer"));
|
||||
return ProgressResult::Failed;
|
||||
}
|
||||
|
||||
@ -1235,7 +1235,7 @@ GStreamerImportFileHandle::ProcessBusMessage(bool & success)
|
||||
debug ? wxT("\n") : wxT(""),
|
||||
debug ? wxString::FromUTF8(debug.get()).c_str() : wxT(""));
|
||||
#if defined(_DEBUG)
|
||||
wxMessageBox(m, wxT("GStreamer Error:"));
|
||||
wxMessageBox(wxString::Format(_("GStreamer Error: %s"), m));
|
||||
#else
|
||||
wxLogMessage(wxT("GStreamer Error: %s"), m.c_str());
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user