mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Improve convert-to-stars message in channel gift.
This commit is contained in:
parent
51661a872c
commit
c3195cfcbe
3 changed files with 15 additions and 7 deletions
|
@ -3343,6 +3343,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
"lng_gift_display_done_hide_channel" = "The gift is now hidden from channel's Gifts.";
|
||||
"lng_gift_got_stars#one" = "You got **{count} Star** for this gift.";
|
||||
"lng_gift_got_stars#other" = "You got **{count} Stars** for this gift.";
|
||||
"lng_gift_channel_got#one" = "Channel got **{count} Star** for this gift.";
|
||||
"lng_gift_channel_got#other" = "Channel got **{count} Stars** for this gift.";
|
||||
"lng_gift_sold_out_title" = "Sold Out!";
|
||||
"lng_gift_sold_out_text#one" = "All {count} gift was already sold.";
|
||||
"lng_gift_sold_out_text#other" = "All {count} gifts were already sold.";
|
||||
|
|
|
@ -140,7 +140,9 @@ TextWithEntities PremiumGift::subtitle() {
|
|||
tr::now,
|
||||
Ui::Text::RichLangValue)
|
||||
: (_data.converted
|
||||
? tr::lng_gift_got_stars
|
||||
? (toChannel
|
||||
? tr::lng_gift_channel_got
|
||||
: tr::lng_gift_got_stars)
|
||||
: _parent->history()->peer->isSelf()
|
||||
? tr::lng_action_gift_self_about
|
||||
: toChannel
|
||||
|
|
|
@ -254,11 +254,13 @@ void ConvertStarGift(
|
|||
window->showSettings(Settings::CreditsId());
|
||||
}
|
||||
}
|
||||
show->showToast(tr::lng_gift_got_stars(
|
||||
tr::now,
|
||||
lt_count,
|
||||
stars,
|
||||
Ui::Text::RichLangValue));
|
||||
show->showToast((savedId.chat()
|
||||
? tr::lng_gift_channel_got
|
||||
: tr::lng_gift_got_stars)(
|
||||
tr::now,
|
||||
lt_count,
|
||||
stars,
|
||||
Ui::Text::RichLangValue));
|
||||
done(true);
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
show->showToast(error.type());
|
||||
|
@ -1344,7 +1346,9 @@ void GenericCreditsEntryBox(
|
|||
: giftToChannelCanTransfer
|
||||
? tr::lng_action_gift_channel_about
|
||||
: tr::lng_action_gift_got_stars_text)
|
||||
: tr::lng_gift_got_stars)(
|
||||
: (giftToChannel
|
||||
? tr::lng_gift_channel_got
|
||||
: tr::lng_gift_got_stars))(
|
||||
lt_count,
|
||||
rpl::single(e.starsConverted * 1.),
|
||||
Ui::Text::RichLangValue),
|
||||
|
|
Loading…
Add table
Reference in a new issue