mirror of https://github.com/procxx/kepka.git
Improve phrases for scheduled messages.
This commit is contained in:
parent
aa18cb64bc
commit
f0de8131ec
|
@ -1268,6 +1268,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
"lng_cant_invite_make_admin" = "Make admin";
|
"lng_cant_invite_make_admin" = "Make admin";
|
||||||
|
|
||||||
"lng_send_button" = "Send";
|
"lng_send_button" = "Send";
|
||||||
|
"lng_schedule_button" = "Schedule";
|
||||||
"lng_send_silent_message" = "Send without sound";
|
"lng_send_silent_message" = "Send without sound";
|
||||||
"lng_schedule_message" = "Schedule message";
|
"lng_schedule_message" = "Schedule message";
|
||||||
"lng_reminder_message" = "Set a reminder";
|
"lng_reminder_message" = "Set a reminder";
|
||||||
|
|
|
@ -1832,7 +1832,11 @@ void SendFilesBox::setupShadows(
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendFilesBox::prepare() {
|
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) {
|
if (_sendType == Api::SendType::Normal) {
|
||||||
SetupSendMenuAndShortcuts(
|
SetupSendMenuAndShortcuts(
|
||||||
_send,
|
_send,
|
||||||
|
|
|
@ -688,7 +688,7 @@ void ScheduleBox(
|
||||||
}, timeInput->lifetime());
|
}, timeInput->lifetime());
|
||||||
|
|
||||||
box->setFocusCallback([=] { timeInput->setFocusFast(); });
|
box->setFocusCallback([=] { timeInput->setFocusFast(); });
|
||||||
const auto submit = box->addButton(tr::lng_settings_save(), [=] {
|
const auto submit = box->addButton(tr::lng_schedule_button(), [=] {
|
||||||
save(false);
|
save(false);
|
||||||
});
|
});
|
||||||
SetupSendMenuAndShortcuts(
|
SetupSendMenuAndShortcuts(
|
||||||
|
|
Loading…
Reference in New Issue