1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

Translated time (& freq & bandwidth) formats in numeric controls...

... This had been done correctly in the popup menu to change the format, but
not in the control itself.
This commit is contained in:
Paul Licameli 2018-09-26 12:28:57 -04:00
parent 9481587fa8
commit d852bd3783
2 changed files with 4 additions and 2 deletions

View File

@ -625,8 +625,10 @@ NumericConverter::NumericConverter(Type type,
SetValue(value); // mValue got overridden to -1 in ControlsToValue(), reassign
}
void NumericConverter::ParseFormatString( const wxString & format)
void NumericConverter::ParseFormatString( const wxString & untranslatedFormat)
{
auto &format = ::wxGetTranslation( untranslatedFormat );
mPrefix = wxT("");
mFields.clear();
mDigits.clear();

View File

@ -88,7 +88,7 @@ public:
virtual void ControlsToValue();
private:
void ParseFormatString(const wxString & format);
void ParseFormatString(const wxString & untranslatedFormat);
public:
void PrintDebugInfo();