Add 'Send now' confirmation to langpack.

This commit is contained in:
John Preston 2019-08-30 15:24:42 +03:00
parent c31cda0587
commit c46bcef9ff
2 changed files with 6 additions and 1 deletions

View File

@ -1271,6 +1271,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_scheduled_messages" = "Scheduled Messages";
"lng_reminder_messages" = "Reminders";
"lng_scheduled_send_now" = "Send message now?";
"lng_scheduled_send_now_many#one" = "Send {count} message now?";
"lng_scheduled_send_now_many#other" = "Send {count} messages now?";
"lng_archived_name" = "Archived chats";
"lng_archived_add" = "Archive";

View File

@ -865,7 +865,9 @@ QPointer<Ui::RpWidget> ShowSendNowMessagesBox(
MessageIdsList &&items,
FnMut<void()> &&successCallback) {
const auto session = &navigation->session();
const auto text = "Send now?";
const auto text = (items.size() > 1)
? tr::lng_scheduled_send_now_many(tr::now, lt_count, items.size())
: tr::lng_scheduled_send_now(tr::now);
const auto box = std::make_shared<QPointer<BoxContent>>();
auto done = [
=,