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_story_reply_ph" = "Reply privately...";
"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_about" = "The admins of this group only allow sending {types}.";
"lng_send_text_type_and_last" = "{types} and {last}";

View file

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

View file

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

View file

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