diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index c7be25711f..1703dbec2c 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -2188,6 +2188,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_action_gift_premium_months#other" = "{count} Months Premium"; "lng_action_gift_premium_about" = "Subscription for exclusive Telegram features."; "lng_action_gift_refunded" = "This gift was downgraded because a request to refund the payment related to this gift was made, and the money was returned."; +"lng_action_gift_got_ton" = "Use TON to suggest posts to channels."; "lng_action_suggested_photo_me" = "You suggested this photo for {user}'s Telegram profile."; "lng_action_suggested_photo" = "{user} suggests this photo for your Telegram profile."; "lng_action_suggested_photo_button" = "View Photo"; diff --git a/Telegram/SourceFiles/history/view/media/history_view_premium_gift.cpp b/Telegram/SourceFiles/history/view/media/history_view_premium_gift.cpp index 46f3a6d832..132b005ca9 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_premium_gift.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_premium_gift.cpp @@ -119,8 +119,7 @@ TextWithEntities PremiumGift::title() { TextWithEntities PremiumGift::subtitle() { if (tonGift()) { - AssertIsDebug(); - return { u"Use TON to suggest posts to channels."_q }; + return tr::lng_action_gift_got_ton(tr::now, Ui::Text::WithEntities); } else if (starGift()) { const auto toChannel = _data.channel && _parent->history()->peer->isServiceUser();