From eba39d12aa24a4332ae9a822496aa3576fe35219 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 3 Apr 2026 12:59:44 +0300 Subject: [PATCH] [poll-view] Applied lang decimal formatting to vote counts. --- Telegram/SourceFiles/history/view/media/history_view_poll.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_poll.cpp b/Telegram/SourceFiles/history/view/media/history_view_poll.cpp index 324456346c..e57dd90bb1 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_poll.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_poll.cpp @@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "data/data_cloud_file.h" #include "data/data_location.h" #include "lang/lang_keys.h" +#include "lang/lang_tag.h" #include "history/history.h" #include "history/history_item.h" #include "history/history_item_components.h" @@ -2780,7 +2781,7 @@ void Poll::Options::updateAnswerVotesFromOriginal( answer.votes = original.votes; answer.filling = answer.votes / float64(maxVotes); if (_owner->showVotes() && answer.votes) { - answer.votesCountString = QString::number(answer.votes); + answer.votesCountString = Lang::FormatCountDecimal(answer.votes); answer.votesCountWidth = st::normalFont->width( answer.votesCountString); } else {