Added url to learn more about monetization to langpack.

This commit is contained in:
23rd 2024-04-03 17:43:41 +03:00 committed by John Preston
parent 154753c732
commit e32de38d04
2 changed files with 2 additions and 1 deletions

View File

@ -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";

View File

@ -77,7 +77,7 @@ void ShowMenu(not_null<Ui::GenericBox*> box, const QString &text) {
[[nodiscard]] ClickHandlerPtr LearnMoreCurrencyLink(
not_null<Window::SessionController*> controller,
not_null<Ui::GenericBox*> 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<Resolver>(