mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-04 16:14:00 +01: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:
@@ -625,8 +625,10 @@ NumericConverter::NumericConverter(Type type,
|
|||||||
SetValue(value); // mValue got overridden to -1 in ControlsToValue(), reassign
|
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("");
|
mPrefix = wxT("");
|
||||||
mFields.clear();
|
mFields.clear();
|
||||||
mDigits.clear();
|
mDigits.clear();
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public:
|
|||||||
virtual void ControlsToValue();
|
virtual void ControlsToValue();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ParseFormatString(const wxString & format);
|
void ParseFormatString(const wxString & untranslatedFormat);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void PrintDebugInfo();
|
void PrintDebugInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user