MCPcopy Create free account
hub / github.com/audacity/audacity / RatioTextFormat

Function RatioTextFormat

src/effects/LegacyCompressor.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68{ return XO("%.1f secs").Format( value ); }
69
70TranslatableString RatioTextFormat( int sliderValue, double value )
71{
72 auto format = (sliderValue % 10 == 0)
73 /* i18n-hint: Unless your language has a different convention for ratios,
74 * like 8:1, leave as is.*/
75 ? XO("%.0f:1")
76 /* i18n-hint: Unless your language has a different convention for ratios,
77 * like 8:1, leave as is.*/
78 : XO("%.1f:1");
79 return format.Format( value );
80}
81
82TranslatableString RatioLabelFormat( int sliderValue, double value )
83{

Callers 2

PopulateOrExchangeMethod · 0.85
UpdateUIMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected