2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-29 21:48:26 +00:00

Separate phrase for paid messages placeholder.

This commit is contained in:
John Preston 2025-07-01 22:10:14 +04:00
parent 0f0e14132a
commit c3cc3fa9bd
4 changed files with 11 additions and 16 deletions

View File

@ -3912,7 +3912,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_send_anonymous_ph" = "Send anonymously..."; "lng_send_anonymous_ph" = "Send anonymously...";
"lng_story_reply_ph" = "Reply privately..."; "lng_story_reply_ph" = "Reply privately...";
"lng_story_comment_ph" = "Comment story..."; "lng_story_comment_ph" = "Comment story...";
"lng_message_paid_ph" = "Message for {amount}"; "lng_message_stars_ph#one" = "Message for {count} Star";
"lng_message_stars_ph#other" = "Message for {count} Stars";
"lng_send_text_no" = "Text not allowed."; "lng_send_text_no" = "Text not allowed.";
"lng_send_text_no_about" = "The admins of this group only allow sending {types}."; "lng_send_text_no_about" = "The admins of this group only allow sending {types}.";
"lng_send_text_type_and_last" = "{types} and {last}"; "lng_send_text_type_and_last" = "{types} and {last}";

View File

@ -6107,11 +6107,9 @@ void HistoryWidget::updateFieldPlaceholder() {
&& !_keyboard->placeholder().isEmpty()) { && !_keyboard->placeholder().isEmpty()) {
return rpl::single(_keyboard->placeholder()); return rpl::single(_keyboard->placeholder());
} else if (const auto stars = peer->starsPerMessageChecked()) { } else if (const auto stars = peer->starsPerMessageChecked()) {
return tr::lng_message_paid_ph( return tr::lng_message_stars_ph(
lt_amount, lt_count,
tr::lng_prize_credits_amount( rpl::single(stars * 1.));
lt_count,
rpl::single(stars * 1.)));
} else if (const auto channel = peer->asChannel()) { } else if (const auto channel = peer->asChannel()) {
const auto topic = resolveReplyToTopic(); const auto topic = resolveReplyToTopic();
const auto topicRootId = topic const auto topicRootId = topic

View File

@ -1815,11 +1815,9 @@ void ComposeControls::updateFieldPlaceholder() {
} else if (!peer) { } else if (!peer) {
return tr::lng_message_ph(); return tr::lng_message_ph();
} else if (const auto stars = peer->starsPerMessageChecked()) { } else if (const auto stars = peer->starsPerMessageChecked()) {
return tr::lng_message_paid_ph( return tr::lng_message_stars_ph(
lt_amount, lt_count,
tr::lng_prize_credits_amount( rpl::single(stars * 1.));
lt_count,
rpl::single(stars * 1.)));
} else if (const auto channel = peer->asChannel()) { } else if (const auto channel = peer->asChannel()) {
if (channel->isBroadcast()) { if (channel->isBroadcast()) {
return session().data().notifySettings().silentPosts(channel) return session().data().notifySettings().silentPosts(channel)

View File

@ -81,11 +81,9 @@ namespace {
rpl::single(0) rpl::single(0)
) | rpl::map([=](TimeId left) { ) | rpl::map([=](TimeId left) {
return starsPerMessage return starsPerMessage
? tr::lng_message_paid_ph( ? tr::lng_message_stars_ph(
lt_amount, lt_count,
tr::lng_prize_credits_amount( rpl::single(starsPerMessage * 1.))
lt_count,
rpl::single(starsPerMessage * 1.)))
: left : left
? tr::lng_stealth_mode_countdown( ? tr::lng_stealth_mode_countdown(
lt_left, lt_left,