Add some special phrases.

This commit is contained in:
John Preston 2025-03-29 10:05:13 +04:00
parent 5d5dda548a
commit 0d8e5b139b
2 changed files with 9 additions and 2 deletions

View file

@ -4722,8 +4722,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_group_call_connecting" = "Connecting...";
"lng_group_call_leave" = "Leave";
"lng_group_call_leave_title" = "Leave video chat";
"lng_group_call_leave_title_call" = "Leave group call";
"lng_group_call_leave_title_channel" = "Leave live stream";
"lng_group_call_leave_sure" = "Do you want to leave this video chat?";
"lng_group_call_leave_sure_call" = "Do you want to leave this group call?";
"lng_group_call_leave_sure_channel" = "Are you sure you want to leave this live stream?";
"lng_group_call_close" = "Close";
"lng_group_call_close_sure" = "Video chat is scheduled. You can abort it or just close this panel.";

View file

@ -416,10 +416,13 @@ void LeaveBox(
not_null<GroupCall*> call,
bool discardChecked,
BoxContext context) {
const auto conference = call->conference();
const auto livestream = call->peer()->isBroadcast();
const auto scheduled = (call->scheduleDate() != 0);
if (!scheduled) {
box->setTitle(livestream
box->setTitle(conference
? tr::lng_group_call_leave_title_call()
: livestream
? tr::lng_group_call_leave_title_channel()
: tr::lng_group_call_leave_title());
}
@ -431,7 +434,9 @@ void LeaveBox(
? (livestream
? tr::lng_group_call_close_sure_channel()
: tr::lng_group_call_close_sure())
: (livestream
: (conference
? tr::lng_group_call_leave_sure_call()
: livestream
? tr::lng_group_call_leave_sure_channel()
: tr::lng_group_call_leave_sure())),
(inCall ? st::groupCallBoxLabel : st::boxLabel)),