From e32de38d040be8bb01513f8a8ca0483b22b58c71 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 3 Apr 2024 17:43:41 +0300 Subject: [PATCH] Added url to learn more about monetization to langpack. --- Telegram/Resources/langs/lang.strings | 1 + .../info/channel_statistics/earn/info_earn_inner_widget.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 1dbe16fbb..fabd9238f 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -5050,6 +5050,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_channel_earn_learn_coin_title" = "What is {emoji} TON?"; "lng_channel_earn_learn_coin_about" = "TON is a blockchain platform and cryptocurrency that Telegram uses for its high speed and low commissions on transactions. {link}"; "lng_channel_earn_learn_close" = "Got it"; +"lng_channel_earn_learn_coin_link" = "https://telegram.org/blog/monetization-for-channels"; "lng_channel_earn_chart_top_hours" = "Ad impressions"; "lng_channel_earn_chart_revenue" = "Ad revenue"; "lng_channel_earn_chart_overriden_detail_currency" = "Revenue in TON"; diff --git a/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp b/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp index 494f58f9a..19857a5ea 100644 --- a/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp +++ b/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp @@ -77,7 +77,7 @@ void ShowMenu(not_null box, const QString &text) { [[nodiscard]] ClickHandlerPtr LearnMoreCurrencyLink( not_null controller, not_null box) { - const auto url = u"https://telegram.org/blog/monetization-for-channels"_q; + const auto url = tr::lng_channel_earn_learn_coin_link(tr::now); using Resolver = HistoryView::Controls::WebpageResolver; const auto resolver = box->lifetime().make_state(