mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +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_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#one" = "You got **{count} Star** for this gift.";
|
||||||
"lng_gift_got_stars#other" = "You got **{count} Stars** 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_title" = "Sold Out!";
|
||||||
"lng_gift_sold_out_text#one" = "All {count} gift was already sold.";
|
"lng_gift_sold_out_text#one" = "All {count} gift was already sold.";
|
||||||
"lng_gift_sold_out_text#other" = "All {count} gifts were already sold.";
|
"lng_gift_sold_out_text#other" = "All {count} gifts were already sold.";
|
||||||
|
|
|
@ -140,7 +140,9 @@ TextWithEntities PremiumGift::subtitle() {
|
||||||
tr::now,
|
tr::now,
|
||||||
Ui::Text::RichLangValue)
|
Ui::Text::RichLangValue)
|
||||||
: (_data.converted
|
: (_data.converted
|
||||||
? tr::lng_gift_got_stars
|
? (toChannel
|
||||||
|
? tr::lng_gift_channel_got
|
||||||
|
: tr::lng_gift_got_stars)
|
||||||
: _parent->history()->peer->isSelf()
|
: _parent->history()->peer->isSelf()
|
||||||
? tr::lng_action_gift_self_about
|
? tr::lng_action_gift_self_about
|
||||||
: toChannel
|
: toChannel
|
||||||
|
|
|
@ -254,11 +254,13 @@ void ConvertStarGift(
|
||||||
window->showSettings(Settings::CreditsId());
|
window->showSettings(Settings::CreditsId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
show->showToast(tr::lng_gift_got_stars(
|
show->showToast((savedId.chat()
|
||||||
tr::now,
|
? tr::lng_gift_channel_got
|
||||||
lt_count,
|
: tr::lng_gift_got_stars)(
|
||||||
stars,
|
tr::now,
|
||||||
Ui::Text::RichLangValue));
|
lt_count,
|
||||||
|
stars,
|
||||||
|
Ui::Text::RichLangValue));
|
||||||
done(true);
|
done(true);
|
||||||
}).fail([=](const MTP::Error &error) {
|
}).fail([=](const MTP::Error &error) {
|
||||||
show->showToast(error.type());
|
show->showToast(error.type());
|
||||||
|
@ -1344,7 +1346,9 @@ void GenericCreditsEntryBox(
|
||||||
: giftToChannelCanTransfer
|
: giftToChannelCanTransfer
|
||||||
? tr::lng_action_gift_channel_about
|
? tr::lng_action_gift_channel_about
|
||||||
: tr::lng_action_gift_got_stars_text)
|
: 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,
|
lt_count,
|
||||||
rpl::single(e.starsConverted * 1.),
|
rpl::single(e.starsConverted * 1.),
|
||||||
Ui::Text::RichLangValue),
|
Ui::Text::RichLangValue),
|
||||||
|
|
Loading…
Add table
Reference in a new issue