Respected localized number format in statistics.

This commit is contained in:
23rd
2025-08-25 09:05:38 +03:00
parent db25b111e0
commit b15305bc69
3 changed files with 9 additions and 8 deletions

View File

@@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "lang/lang_tag.h"
#include <QLocale>
namespace Statistic {
namespace {
@@ -25,7 +27,7 @@ constexpr auto kStep = 5.;
static constexpr auto kTooMuch = ChartValue(10'000);
return (absoluteValue >= kTooMuch)
? Lang::FormatCountToShort(absoluteValue).string
: QString::number(absoluteValue);
: QLocale().toString(absoluteValue);
}
} // namespace

View File

@@ -25,7 +25,7 @@ namespace {
? u"0"_q
: (absoluteValue >= kTooMuch)
? Lang::FormatCountToShort(absoluteValue).string
: QString::number(absoluteValue);
: QLocale().toString(absoluteValue);
}
} // namespace