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

Translate "Message" as default title of message box...

... This required a sweeping change of all calls to wxMessageBox!  But it seems
safe to me, despite the great number of touched files.
This commit is contained in:
Paul Licameli
2017-09-06 17:39:33 -04:00
parent 378c96fda1
commit ccb4bbac33
94 changed files with 369 additions and 344 deletions

View File

@@ -428,7 +428,6 @@ TimeTrack and AudioIOListener and whether the playback is looped.
#include <wx/log.h>
#include <wx/textctrl.h>
#include <wx/msgdlg.h>
#include <wx/timer.h>
#include <wx/intl.h>
#include <wx/debug.h>
@@ -450,6 +449,7 @@ TimeTrack and AudioIOListener and whether the playback is looped.
#include "toolbars/ControlToolBar.h"
#include "widgets/Meter.h"
#include "widgets/ErrorDialog.h"
#ifdef EXPERIMENTAL_MIDI_OUT
#define MIDI_SLEEP 10 /* milliseconds */
@@ -1222,7 +1222,7 @@ AudioIO::AudioIO()
errStr += _("Error: ")+paErrStr;
// XXX: we are in libaudacity, popping up dialogs not allowed! A
// long-term solution will probably involve exceptions
wxMessageBox(errStr, _("Error Initializing Audio"), wxICON_ERROR|wxOK);
AudacityMessageBox(errStr, _("Error Initializing Audio"), wxICON_ERROR|wxOK);
// Since PortAudio is not initialized, all calls to PortAudio
// functions will fail. This will give reasonable behavior, since
@@ -1242,7 +1242,7 @@ AudioIO::AudioIO()
errStr += _("Error: ") + pmErrStr;
// XXX: we are in libaudacity, popping up dialogs not allowed! A
// long-term solution will probably involve exceptions
wxMessageBox(errStr, _("Error Initializing Midi"), wxICON_ERROR|wxOK);
AudacityMessageBox(errStr, _("Error Initializing Midi"), wxICON_ERROR|wxOK);
// Same logic for PortMidi as described above for PortAudio
}
@@ -2131,7 +2131,7 @@ int AudioIO::StartStream(const ConstWaveTrackArray &playbackTracks,
if(captureBufferSize < 100)
{
StartStreamCleanup();
wxMessageBox(_("Out of memory!"));
AudacityMessageBox(_("Out of memory!"));
return 0;
}
@@ -2165,7 +2165,7 @@ int AudioIO::StartStream(const ConstWaveTrackArray &playbackTracks,
if(playbackBufferSize < 100 || playbackMixBufferSize < 100)
{
StartStreamCleanup();
wxMessageBox(_("Out of memory!"));
AudacityMessageBox(_("Out of memory!"));
return 0;
}
}
@@ -2289,7 +2289,7 @@ int AudioIO::StartStream(const ConstWaveTrackArray &playbackTracks,
if (mListener && mNumCaptureChannels > 0)
mListener->OnAudioIOStopRecording();
StartStreamCleanup();
wxMessageBox(LAT1CTOWX(Pa_GetErrorText(err)));
AudacityMessageBox(LAT1CTOWX(Pa_GetErrorText(err)));
return 0;
}
}