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,
|
||||
true);
|
||||
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);
|
||||
}
|
||||
S.AddWindow(mForegroundStartT);
|
||||
|
@ -257,7 +257,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||
wxDefaultSize,
|
||||
true);
|
||||
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);
|
||||
}
|
||||
S.AddWindow(mForegroundEndT);
|
||||
|
@ -280,7 +280,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||
wxDefaultSize,
|
||||
true);
|
||||
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);
|
||||
}
|
||||
S.AddWindow(mBackgroundStartT);
|
||||
|
@ -297,7 +297,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||
wxDefaultSize,
|
||||
true);
|
||||
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);
|
||||
}
|
||||
S.AddWindow(mBackgroundEndT);
|
||||
|
|
|
@ -451,7 +451,7 @@ void DtmfDialog::PopulateOrExchange( ShuttleGui & S )
|
|||
* "seconds" this does not always work properly. For example, it rounds
|
||||
* down to zero... */
|
||||
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();
|
||||
}
|
||||
S.AddWindow(mDtmfDurationT);
|
||||
|
|
|
@ -211,7 +211,7 @@ void NoiseDialog::PopulateOrExchange( ShuttleGui & S )
|
|||
* with "seconds" this does not always work properly. For example,
|
||||
* it rounds down to zero... */
|
||||
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();
|
||||
}
|
||||
S.AddWindow(mNoiseDurationT, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL);
|
||||
|
|
|
@ -36,11 +36,11 @@ bool EffectSilence::PromptUser()
|
|||
if (mT1 > mT0) {
|
||||
// there is a selection: let's fit in there...
|
||||
mDuration = mT1 - mT0;
|
||||
dlog.SetFormatString(wxT("hh:mm:ss + samples"));
|
||||
dlog.SetFormatString(_("hh:mm:ss + samples"));
|
||||
|
||||
} else {
|
||||
// retrieve last used values
|
||||
dlog.SetFormatString(wxT("seconds"));
|
||||
dlog.SetFormatString(_("seconds"));
|
||||
}
|
||||
dlog.SetTimeValue(mDuration);
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ void ToneGenDialog::PopulateOrExchangeStandard( ShuttleGui & S )
|
|||
wxDefaultSize,
|
||||
true);
|
||||
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();
|
||||
}
|
||||
S.AddWindow(mToneDurationT);
|
||||
|
@ -333,7 +333,7 @@ void ToneGenDialog::PopulateOrExchangeExtended( ShuttleGui & S )
|
|||
wxDefaultSize,
|
||||
true);
|
||||
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();
|
||||
}
|
||||
S.AddWindow(mToneDurationT);
|
||||
|
|
Loading…
Reference in New Issue