mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
AudacityMessageBox takes TranslatableString message and caption
This commit is contained in:
@@ -178,9 +178,10 @@ namespace {
|
||||
const double time = adjustTime(wt, viewInfo.PositionToTime(event.m_x, rect.x));
|
||||
if (!SampleResolutionTest(viewInfo, wt, time, width))
|
||||
{
|
||||
AudacityMessageBox(_(
|
||||
AudacityMessageBox(
|
||||
XO(
|
||||
"To use Draw, zoom in further until you can see the individual samples."),
|
||||
_("Draw Tool"));
|
||||
XO("Draw Tool"));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -533,8 +533,11 @@ void RateMenuTable::OnRateOther(wxCommandEvent &)
|
||||
break;
|
||||
}
|
||||
|
||||
AudacityMessageBox(_("The entered value is invalid"), _("Error"),
|
||||
wxICON_ERROR, mpData->pParent);
|
||||
AudacityMessageBox(
|
||||
XO("The entered value is invalid"),
|
||||
XO("Error"),
|
||||
wxICON_ERROR,
|
||||
mpData->pParent);
|
||||
}
|
||||
|
||||
SetRate(pTrack, newRate);
|
||||
@@ -802,9 +805,11 @@ void WaveTrackMenuTable::OnSpectrogramSettings(wxCommandEvent &)
|
||||
|
||||
auto gAudioIO = AudioIOBase::Get();
|
||||
if (gAudioIO->IsBusy()){
|
||||
AudacityMessageBox(_("To change Spectrogram Settings, stop any\n"
|
||||
"playing or recording first."),
|
||||
_("Stop the Audio First"), wxOK | wxICON_EXCLAMATION | wxCENTRE);
|
||||
AudacityMessageBox(
|
||||
XO(
|
||||
"To change Spectrogram Settings, stop any\n playing or recording first."),
|
||||
XO("Stop the Audio First"),
|
||||
wxOK | wxICON_EXCLAMATION | wxCENTRE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user