mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show how much message limit is exceeded when editing.
This commit is contained in:
parent
1e2e007d38
commit
8a1118d9bb
4 changed files with 11 additions and 4 deletions
|
@ -267,7 +267,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
"lng_proxy_unsupported" = "Your Telegram Desktop version doesn't support this proxy type or the proxy link is invalid. Please update Telegram Desktop to the latest version.";
|
"lng_proxy_unsupported" = "Your Telegram Desktop version doesn't support this proxy type or the proxy link is invalid. Please update Telegram Desktop to the latest version.";
|
||||||
|
|
||||||
"lng_edit_deleted" = "This message was deleted";
|
"lng_edit_deleted" = "This message was deleted";
|
||||||
"lng_edit_too_long" = "Your message text is too long";
|
"lng_edit_limit_reached#one" = "You've reached the message text limit. Please make the text shorter by {count} character.";
|
||||||
|
"lng_edit_limit_reached#other" = "You've reached the message text limit. Please make the text shorter by {count} characters.";
|
||||||
"lng_edit_message" = "Edit message";
|
"lng_edit_message" = "Edit message";
|
||||||
"lng_edit_message_text" = "New message text...";
|
"lng_edit_message_text" = "New message text...";
|
||||||
"lng_deleted" = "Deleted Account";
|
"lng_deleted" = "Deleted Account";
|
||||||
|
|
|
@ -3655,7 +3655,9 @@ void HistoryWidget::saveEditMsg() {
|
||||||
Box<DeleteMessagesBox>(item, suggestModerateActions));
|
Box<DeleteMessagesBox>(item, suggestModerateActions));
|
||||||
return;
|
return;
|
||||||
} else if (!left.text.isEmpty()) {
|
} else if (!left.text.isEmpty()) {
|
||||||
controller()->show(Ui::MakeInformBox(tr::lng_edit_too_long()));
|
const auto remove = left.text.size();
|
||||||
|
controller()->show(Ui::MakeInformBox(
|
||||||
|
tr::lng_edit_limit_reached(tr::now, lt_count, remove)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1065,7 +1065,9 @@ void RepliesWidget::edit(
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else if (!left.text.isEmpty()) {
|
} else if (!left.text.isEmpty()) {
|
||||||
controller()->show(Ui::MakeInformBox(tr::lng_edit_too_long()));
|
const auto remove = left.text.size();
|
||||||
|
controller()->show(Ui::MakeInformBox(
|
||||||
|
tr::lng_edit_limit_reached(tr::now, lt_count, remove)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -677,7 +677,9 @@ void ScheduledWidget::edit(
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else if (!left.text.isEmpty()) {
|
} else if (!left.text.isEmpty()) {
|
||||||
controller()->show(Ui::MakeInformBox(tr::lng_edit_too_long()));
|
const auto remove = left.text.size();
|
||||||
|
controller()->show(Ui::MakeInformBox(
|
||||||
|
tr::lng_edit_limit_reached(tr::now, lt_count, remove)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue