Improve phrases for scheduled messages.

This commit is contained in:
John Preston 2020-01-28 18:07:17 +03:00
parent aa18cb64bc
commit f0de8131ec
3 changed files with 7 additions and 2 deletions

View File

@ -1268,6 +1268,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_cant_invite_make_admin" = "Make admin";
"lng_send_button" = "Send";
"lng_schedule_button" = "Schedule";
"lng_send_silent_message" = "Send without sound";
"lng_schedule_message" = "Schedule message";
"lng_reminder_message" = "Set a reminder";

View File

@ -1832,7 +1832,11 @@ void SendFilesBox::setupShadows(
}
void SendFilesBox::prepare() {
_send = addButton(tr::lng_send_button(), [=] { send({}); });
_send = addButton(
(_sendType == Api::SendType::Normal
? tr::lng_send_button()
: tr::lng_schedule_button()),
[=] { send({}); });
if (_sendType == Api::SendType::Normal) {
SetupSendMenuAndShortcuts(
_send,

View File

@ -688,7 +688,7 @@ void ScheduleBox(
}, timeInput->lifetime());
box->setFocusCallback([=] { timeInput->setFocusFast(); });
const auto submit = box->addButton(tr::lng_settings_save(), [=] {
const auto submit = box->addButton(tr::lng_schedule_button(), [=] {
save(false);
});
SetupSendMenuAndShortcuts(