From d81e832ae61cc143ab0dbc621510e88ff6e709d8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 23 Jun 2024 09:47:53 +0400 Subject: [PATCH] Use lang key for about stars link. --- Telegram/Resources/langs/lang.strings | 1 + Telegram/SourceFiles/boxes/send_files_box.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index fb8aa23e7..80441cd03 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -3345,6 +3345,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_paid_cost_placeholder" = "Stars to Unlock"; "lng_paid_about" = "Users will have to transfer this amount of Stars to your channel in order to view this media. {link}"; "lng_paid_about_link" = "More about stars >"; +"lng_paid_about_link_url" = "https://telegram.org/blog/telegram-stars"; "lng_paid_price" = "Unlock for {price}"; "lng_translate_show_original" = "Show Original"; diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 6d67aa63d..ea74b4d00 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -159,7 +159,7 @@ void EditPriceBox( about->setClickHandlerFilter([=](const auto &...) { Core::App().iv().openWithIvPreferred( session, - u"https://telegram.org/blog/telegram-stars"_q); + tr::lng_paid_about_link_url(tr::now)); return false; });