mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-27 15:08:39 +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:
@@ -27,6 +27,7 @@ Paul Licameli split from TrackPanel.cpp
|
||||
#include "../../../../ViewInfo.h"
|
||||
#include "../../../../WaveTrack.h"
|
||||
#include "../../../../../images/Cursors.h"
|
||||
#include "../../../../widgets/ErrorDialog.h"
|
||||
|
||||
|
||||
static const int SMOOTHING_KERNEL_RADIUS = 3;
|
||||
@@ -183,7 +184,7 @@ namespace {
|
||||
const int display = wt->GetDisplay();
|
||||
if (WaveTrack::Waveform != display)
|
||||
{
|
||||
wxMessageBox(_(
|
||||
AudacityMessageBox(_(
|
||||
"To use Draw, choose 'Waveform' or 'Waveform (dB)' in the Track Dropdown Menu."),
|
||||
_("Draw Tool"));
|
||||
return false;
|
||||
@@ -193,7 +194,7 @@ namespace {
|
||||
const double time = adjustTime(wt, viewInfo.PositionToTime(event.m_x, rect.x));
|
||||
if (!SampleResolutionTest(viewInfo, wt, time, width))
|
||||
{
|
||||
wxMessageBox(_(
|
||||
AudacityMessageBox(_(
|
||||
"To use Draw, zoom in further until you can see the individual samples."),
|
||||
_("Draw Tool"));
|
||||
return false;
|
||||
|
||||
@@ -29,6 +29,7 @@ Paul Licameli split from TrackPanel.cpp
|
||||
#include "../../../../prefs/SpectrumPrefs.h"
|
||||
#include "../../../../prefs/TracksBehaviorsPrefs.h"
|
||||
#include "../../../../prefs/WaveformPrefs.h"
|
||||
#include "../../../../widgets/ErrorDialog.h"
|
||||
|
||||
#include <wx/combobox.h>
|
||||
|
||||
@@ -533,7 +534,7 @@ void RateMenuTable::OnRateOther(wxCommandEvent &)
|
||||
break;
|
||||
}
|
||||
|
||||
wxMessageBox(_("The entered value is invalid"), _("Error"),
|
||||
AudacityMessageBox(_("The entered value is invalid"), _("Error"),
|
||||
wxICON_ERROR, mpData->pParent);
|
||||
}
|
||||
|
||||
@@ -781,7 +782,7 @@ void WaveTrackMenuTable::OnSpectrogramSettings(wxCommandEvent &)
|
||||
};
|
||||
|
||||
if (gAudioIO->IsBusy()){
|
||||
wxMessageBox(_("To change Spectrogram Settings, stop any\n"
|
||||
AudacityMessageBox(_("To change Spectrogram Settings, stop any\n"
|
||||
"playing or recording first."),
|
||||
_("Stop the Audio First"), wxOK | wxICON_EXCLAMATION | wxCENTRE);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user