diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 7f64054464..7625e91ef9 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -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}"; diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index af780173a6..4ab4561ec8 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -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 diff --git a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp index 179d2fe978..ce7c9335d5 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp @@ -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) diff --git a/Telegram/SourceFiles/media/stories/media_stories_reply.cpp b/Telegram/SourceFiles/media/stories/media_stories_reply.cpp index d106149a88..715ee529b4 100644 --- a/Telegram/SourceFiles/media/stories/media_stories_reply.cpp +++ b/Telegram/SourceFiles/media/stories/media_stories_reply.cpp @@ -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,