diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 9bbd806e4e..c78a3e0270 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -2350,6 +2350,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_action_gift_self_auction" = "You've successfully bought a gift in the auction for {cost}."; "lng_action_gift_auction_won" = "You won the auction with a bid of {cost}."; "lng_action_gift_self_subtitle" = "Saved Gift"; +"lng_action_gift_crafted_subtitle" = "Crafted Gift"; "lng_action_gift_self_about#one" = "Display this gift on your page or convert it to **{count}** Star."; "lng_action_gift_self_about#other" = "Display this gift on your page or convert it to **{count}** Stars."; "lng_action_gift_self_about_unique" = "You can display this gift on your page or turn it into unique collectible and send to others."; diff --git a/Telegram/SourceFiles/boxes/star_gift_box.cpp b/Telegram/SourceFiles/boxes/star_gift_box.cpp index 69996e9628..a6d9f66b04 100644 --- a/Telegram/SourceFiles/boxes/star_gift_box.cpp +++ b/Telegram/SourceFiles/boxes/star_gift_box.cpp @@ -481,7 +481,9 @@ auto GenerateGiftMedia( tr::bold); }, [&](const GiftTypeStars &gift) { return recipient->isSelf() - ? tr::lng_action_gift_self_subtitle(tr::now, tr::bold) + ? ((gift.info.unique && gift.info.unique->crafted) + ? tr::lng_action_gift_crafted_subtitle(tr::now, tr::bold) + : tr::lng_action_gift_self_subtitle(tr::now, tr::bold)) : tr::lng_action_gift_got_subtitle( tr::now, lt_user, diff --git a/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp b/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp index 038a7a5214..6e9363b92e 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp @@ -361,7 +361,9 @@ auto GenerateUniqueGiftMedia( const auto peer = parent->history()->peer; pushText( tr::bold(peer->isSelf() - ? tr::lng_action_gift_self_subtitle(tr::now) + ? (gift->crafted + ? tr::lng_action_gift_crafted_subtitle(tr::now) + : tr::lng_action_gift_self_subtitle(tr::now)) : peer->isServiceUser() ? tr::lng_gift_link_label_gift(tr::now) : (outgoing diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp index 680dda6a7c..f5792cf973 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp @@ -1648,7 +1648,9 @@ void GenericCreditsEntryBody( : (isStarGift && !starGiftCanManage) ? tr::lng_gift_link_label_gift(tr::now) : giftToSelf - ? tr::lng_action_gift_self_subtitle(tr::now) + ? ((uniqueGift && uniqueGift->crafted) + ? tr::lng_action_gift_crafted_subtitle(tr::now) + : tr::lng_action_gift_self_subtitle(tr::now)) : e.gift ? tr::lng_credits_box_history_entry_gift_name(tr::now) : (peer && !e.reaction)