mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 00:20:06 +02:00
Translate literal time format strings in effect dialogs
This commit is contained in:
parent
04bb38cf94
commit
8d25578c63
@ -240,7 +240,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
true);
|
true);
|
||||||
mForegroundStartT->SetName(_("Foreground start time"));
|
mForegroundStartT->SetName(_("Foreground start time"));
|
||||||
mForegroundStartT->SetFormatString(mForegroundStartT->GetBuiltinFormat(wxT("hh:mm:ss + hundredths")));
|
mForegroundStartT->SetFormatString(mForegroundStartT->GetBuiltinFormat(_("hh:mm:ss + hundredths")));
|
||||||
mForegroundStartT->EnableMenu(false);
|
mForegroundStartT->EnableMenu(false);
|
||||||
}
|
}
|
||||||
S.AddWindow(mForegroundStartT);
|
S.AddWindow(mForegroundStartT);
|
||||||
@ -257,7 +257,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
true);
|
true);
|
||||||
mForegroundEndT->SetName(_("Foreground end time"));
|
mForegroundEndT->SetName(_("Foreground end time"));
|
||||||
mForegroundEndT->SetFormatString(mForegroundEndT->GetBuiltinFormat(wxT("hh:mm:ss + hundredths")));
|
mForegroundEndT->SetFormatString(mForegroundEndT->GetBuiltinFormat(_("hh:mm:ss + hundredths")));
|
||||||
mForegroundEndT->EnableMenu(false);
|
mForegroundEndT->EnableMenu(false);
|
||||||
}
|
}
|
||||||
S.AddWindow(mForegroundEndT);
|
S.AddWindow(mForegroundEndT);
|
||||||
@ -280,7 +280,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
true);
|
true);
|
||||||
mBackgroundStartT->SetName(_("Background start time"));
|
mBackgroundStartT->SetName(_("Background start time"));
|
||||||
mBackgroundStartT->SetFormatString(mBackgroundStartT->GetBuiltinFormat(wxT("hh:mm:ss + hundredths")));
|
mBackgroundStartT->SetFormatString(mBackgroundStartT->GetBuiltinFormat(_("hh:mm:ss + hundredths")));
|
||||||
mBackgroundStartT->EnableMenu(false);
|
mBackgroundStartT->EnableMenu(false);
|
||||||
}
|
}
|
||||||
S.AddWindow(mBackgroundStartT);
|
S.AddWindow(mBackgroundStartT);
|
||||||
@ -297,7 +297,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
true);
|
true);
|
||||||
mBackgroundEndT->SetName(_("Background end time"));
|
mBackgroundEndT->SetName(_("Background end time"));
|
||||||
mBackgroundEndT->SetFormatString(mBackgroundEndT->GetBuiltinFormat(wxT("hh:mm:ss + hundredths")));
|
mBackgroundEndT->SetFormatString(mBackgroundEndT->GetBuiltinFormat(_("hh:mm:ss + hundredths")));
|
||||||
mBackgroundEndT->EnableMenu(false);
|
mBackgroundEndT->EnableMenu(false);
|
||||||
}
|
}
|
||||||
S.AddWindow(mBackgroundEndT);
|
S.AddWindow(mBackgroundEndT);
|
||||||
|
@ -451,7 +451,7 @@ void DtmfDialog::PopulateOrExchange( ShuttleGui & S )
|
|||||||
* "seconds" this does not always work properly. For example, it rounds
|
* "seconds" this does not always work properly. For example, it rounds
|
||||||
* down to zero... */
|
* down to zero... */
|
||||||
mDtmfDurationT->SetName(_("Duration"));
|
mDtmfDurationT->SetName(_("Duration"));
|
||||||
mDtmfDurationT->SetFormatString(mDtmfDurationT->GetBuiltinFormat(dIsSelection==true?(wxT("hh:mm:ss + samples")):(wxT("seconds"))));
|
mDtmfDurationT->SetFormatString(mDtmfDurationT->GetBuiltinFormat(dIsSelection==true?(_("hh:mm:ss + samples")):(_("seconds"))));
|
||||||
mDtmfDurationT->EnableMenu();
|
mDtmfDurationT->EnableMenu();
|
||||||
}
|
}
|
||||||
S.AddWindow(mDtmfDurationT);
|
S.AddWindow(mDtmfDurationT);
|
||||||
|
@ -211,7 +211,7 @@ void NoiseDialog::PopulateOrExchange( ShuttleGui & S )
|
|||||||
* with "seconds" this does not always work properly. For example,
|
* with "seconds" this does not always work properly. For example,
|
||||||
* it rounds down to zero... */
|
* it rounds down to zero... */
|
||||||
mNoiseDurationT->SetName(_("Duration"));
|
mNoiseDurationT->SetName(_("Duration"));
|
||||||
mNoiseDurationT->SetFormatString(mNoiseDurationT->GetBuiltinFormat(nIsSelection==true?(wxT("hh:mm:ss + samples")):(wxT("seconds"))));
|
mNoiseDurationT->SetFormatString(mNoiseDurationT->GetBuiltinFormat(nIsSelection==true?(_("hh:mm:ss + samples")):(_("seconds"))));
|
||||||
mNoiseDurationT->EnableMenu();
|
mNoiseDurationT->EnableMenu();
|
||||||
}
|
}
|
||||||
S.AddWindow(mNoiseDurationT, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL);
|
S.AddWindow(mNoiseDurationT, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL);
|
||||||
|
@ -36,11 +36,11 @@ bool EffectSilence::PromptUser()
|
|||||||
if (mT1 > mT0) {
|
if (mT1 > mT0) {
|
||||||
// there is a selection: let's fit in there...
|
// there is a selection: let's fit in there...
|
||||||
mDuration = mT1 - mT0;
|
mDuration = mT1 - mT0;
|
||||||
dlog.SetFormatString(wxT("hh:mm:ss + samples"));
|
dlog.SetFormatString(_("hh:mm:ss + samples"));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// retrieve last used values
|
// retrieve last used values
|
||||||
dlog.SetFormatString(wxT("seconds"));
|
dlog.SetFormatString(_("seconds"));
|
||||||
}
|
}
|
||||||
dlog.SetTimeValue(mDuration);
|
dlog.SetTimeValue(mDuration);
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ void ToneGenDialog::PopulateOrExchangeStandard( ShuttleGui & S )
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
true);
|
true);
|
||||||
mToneDurationT->SetName(_("Duration"));
|
mToneDurationT->SetName(_("Duration"));
|
||||||
mToneDurationT->SetFormatString(mToneDurationT->GetBuiltinFormat(isSelection==true?(wxT("hh:mm:ss + samples")):(wxT("seconds"))));
|
mToneDurationT->SetFormatString(mToneDurationT->GetBuiltinFormat(isSelection==true?(_("hh:mm:ss + samples")):(_("seconds"))));
|
||||||
mToneDurationT->EnableMenu();
|
mToneDurationT->EnableMenu();
|
||||||
}
|
}
|
||||||
S.AddWindow(mToneDurationT);
|
S.AddWindow(mToneDurationT);
|
||||||
@ -333,7 +333,7 @@ void ToneGenDialog::PopulateOrExchangeExtended( ShuttleGui & S )
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
true);
|
true);
|
||||||
mToneDurationT->SetName(_("Duration"));
|
mToneDurationT->SetName(_("Duration"));
|
||||||
mToneDurationT->SetFormatString(mToneDurationT->GetBuiltinFormat(isSelection==true?(wxT("hh:mm:ss + samples")):(wxT("seconds"))));
|
mToneDurationT->SetFormatString(mToneDurationT->GetBuiltinFormat(isSelection==true?(_("hh:mm:ss + samples")):(_("seconds"))));
|
||||||
mToneDurationT->EnableMenu();
|
mToneDurationT->EnableMenu();
|
||||||
}
|
}
|
||||||
S.AddWindow(mToneDurationT);
|
S.AddWindow(mToneDurationT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user