mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Clean up EQ changes.
- i18n comment - Remove hanging not-needed comment. - Remove some already commented out code.
This commit is contained in:
parent
a7895b4998
commit
acf91a70e0
@ -891,17 +891,13 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
|
|||||||
TranslatableString freq = kThirdOct[i] < 1000.
|
TranslatableString freq = kThirdOct[i] < 1000.
|
||||||
? XO("%d Hz").Format((int)kThirdOct[i])
|
? XO("%d Hz").Format((int)kThirdOct[i])
|
||||||
: XO("%g kHz").Format(kThirdOct[i] / 1000.);
|
: XO("%g kHz").Format(kThirdOct[i] / 1000.);
|
||||||
|
/* i18n-hint k is SI abbreviation for x1,000. Usually unchanged in translation. */
|
||||||
TranslatableString fNum = kThirdOct[i] < 1000.
|
TranslatableString fNum = kThirdOct[i] < 1000.
|
||||||
? XO("%d").Format((int)kThirdOct[i])
|
? Verbatim("%d").Format((int)kThirdOct[i])
|
||||||
: XO("%gk").Format(kThirdOct[i] / 1000.);
|
: XO("%gk").Format(kThirdOct[i] / 1000.);
|
||||||
//TranslatableString fUnits = kThirdOct[i] < 1000.
|
|
||||||
// ? XO("Hz") : XO("kHz");
|
|
||||||
S.StartVerticalLay();
|
S.StartVerticalLay();
|
||||||
{
|
{
|
||||||
// Abuse of TranslatableString - since there is no
|
|
||||||
//
|
|
||||||
S.AddFixedText( fNum );
|
S.AddFixedText( fNum );
|
||||||
//S.AddFixedText( fUnits);
|
|
||||||
mSliders[i] = safenew wxSliderWrapper(pParent, ID_Slider + i, 0, -20, +20,
|
mSliders[i] = safenew wxSliderWrapper(pParent, ID_Slider + i, 0, -20, +20,
|
||||||
wxDefaultPosition, wxSize(-1,50), wxSL_VERTICAL | wxSL_INVERSE);
|
wxDefaultPosition, wxSize(-1,50), wxSL_VERTICAL | wxSL_INVERSE);
|
||||||
|
|
||||||
@ -911,7 +907,6 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
|
|||||||
|
|
||||||
mSlidersOld[i] = 0;
|
mSlidersOld[i] = 0;
|
||||||
mEQVals[i] = 0.;
|
mEQVals[i] = 0.;
|
||||||
//S.SetSizerProportion(1);
|
|
||||||
S.Prop(1)
|
S.Prop(1)
|
||||||
.Name(freq)
|
.Name(freq)
|
||||||
.ConnectRoot(
|
.ConnectRoot(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user