From 0d8e5b139b0bd79493c48582f1691b4b75662087 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 29 Mar 2025 10:05:13 +0400 Subject: [PATCH] Add some special phrases. --- Telegram/Resources/langs/lang.strings | 2 ++ Telegram/SourceFiles/calls/group/calls_group_menu.cpp | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index b35a5259d5..e7ae258356 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -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."; diff --git a/Telegram/SourceFiles/calls/group/calls_group_menu.cpp b/Telegram/SourceFiles/calls/group/calls_group_menu.cpp index 277c64356e..4f1b196d65 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_menu.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_menu.cpp @@ -416,10 +416,13 @@ void LeaveBox( not_null 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)),