Add gifts premium promo.

This commit is contained in:
John Preston
2025-12-05 11:36:15 +04:00
parent 43347f671c
commit 6fe61ed58a
4 changed files with 10 additions and 0 deletions
+2
View File
@@ -2850,6 +2850,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_premium_summary_about_todo_lists" = "Plan, assign, and complete tasks - seamlessly and efficiently.";
"lng_premium_summary_subtitle_peer_colors" = "Name and Profile Colors";
"lng_premium_summary_about_peer_colors" = "Choose a color and logo for your profile and replies to your messages.";
"lng_premium_summary_subtitle_gifts" = "Unique Collectibles";
"lng_premium_summary_about_gifts" = "Telegram Gifts are collectible items you can trade or showcase on your profile.";
"lng_premium_summary_bottom_subtitle" = "About Telegram Premium";
"lng_premium_summary_bottom_about" = "While the free version of Telegram already gives its users more than any other messaging application, **Telegram Premium** pushes its capabilities even further.\n\n**Telegram Premium** is a paid option, because most Premium Features require additional expenses from Telegram to third parties such as data center providers and server manufacturers. Contributions from **Telegram Premium** users allow us to cover such costs and also help Telegram stay free for everyone.";
"lng_premium_summary_button" = "Subscribe for {cost} per month";
@@ -137,6 +137,8 @@ void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
return tr::lng_premium_summary_subtitle_todo_lists();
case PremiumFeature::PeerColors:
return tr::lng_premium_summary_subtitle_peer_colors();
case PremiumFeature::Gifts:
return tr::lng_premium_summary_subtitle_gifts();
case PremiumFeature::BusinessLocation:
return tr::lng_business_subtitle_location();
@@ -206,6 +208,8 @@ void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
return tr::lng_premium_summary_about_todo_lists();
case PremiumFeature::PeerColors:
return tr::lng_premium_summary_about_peer_colors();
case PremiumFeature::Gifts:
return tr::lng_premium_summary_about_gifts();
case PremiumFeature::BusinessLocation:
return tr::lng_business_about_location();
@@ -548,6 +552,7 @@ struct VideoPreviewDocument {
case PremiumFeature::Effects: return "effects";
case PremiumFeature::TodoLists: return "todo";
case PremiumFeature::PeerColors: return "peer_colors";
case PremiumFeature::Gifts: return "gifts";
case PremiumFeature::BusinessLocation: return "business_location";
case PremiumFeature::BusinessHours: return "business_hours";
@@ -74,6 +74,7 @@ enum class PremiumFeature {
FilterTags,
TodoLists,
PeerColors,
Gifts,
// Business features.
BusinessLocation,
@@ -1808,6 +1808,8 @@ std::vector<PremiumFeature> PremiumFeaturesOrder(
return PremiumFeature::TodoLists;
} else if (s == u"peer_colors"_q) {
return PremiumFeature::PeerColors;
} else if (s == u"gifts"_q) {
return PremiumFeature::Gifts;
}
return PremiumFeature::kCount;
}) | ranges::views::filter([](PremiumFeature type) {