1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Don't internationalize "e" (introducing numeric exponent)

This commit is contained in:
Paul Licameli 2020-05-06 10:24:45 -04:00
parent 5cef2cd3e4
commit 44b30ca4e1

View File

@ -547,7 +547,10 @@ bool FloatingPointValidatorBase::ValidatePrecision(const wxString& s) const
// If user typed exponent 'e' the number of decimal digits is not
// important at all. But we must know that 'e' position.
size_t posExp = s.Lower().Find(_("e"));
// PRL: I can't find anything in lconv or std::numpunct that describes
// alternatives to e. So just use a plain string literal. Don't trouble
// with i18n.
size_t posExp = s.Lower().Find("e");
if ( posExp == wxString::npos )
posExp = s.length();