mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Add some special phrases.
This commit is contained in:
parent
5d5dda548a
commit
0d8e5b139b
2 changed files with 9 additions and 2 deletions
|
@ -4722,8 +4722,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
"lng_group_call_connecting" = "Connecting...";
|
"lng_group_call_connecting" = "Connecting...";
|
||||||
"lng_group_call_leave" = "Leave";
|
"lng_group_call_leave" = "Leave";
|
||||||
"lng_group_call_leave_title" = "Leave video chat";
|
"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_title_channel" = "Leave live stream";
|
||||||
"lng_group_call_leave_sure" = "Do you want to leave this video chat?";
|
"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_leave_sure_channel" = "Are you sure you want to leave this live stream?";
|
||||||
"lng_group_call_close" = "Close";
|
"lng_group_call_close" = "Close";
|
||||||
"lng_group_call_close_sure" = "Video chat is scheduled. You can abort it or just close this panel.";
|
"lng_group_call_close_sure" = "Video chat is scheduled. You can abort it or just close this panel.";
|
||||||
|
|
|
@ -416,10 +416,13 @@ void LeaveBox(
|
||||||
not_null<GroupCall*> call,
|
not_null<GroupCall*> call,
|
||||||
bool discardChecked,
|
bool discardChecked,
|
||||||
BoxContext context) {
|
BoxContext context) {
|
||||||
|
const auto conference = call->conference();
|
||||||
const auto livestream = call->peer()->isBroadcast();
|
const auto livestream = call->peer()->isBroadcast();
|
||||||
const auto scheduled = (call->scheduleDate() != 0);
|
const auto scheduled = (call->scheduleDate() != 0);
|
||||||
if (!scheduled) {
|
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_channel()
|
||||||
: tr::lng_group_call_leave_title());
|
: tr::lng_group_call_leave_title());
|
||||||
}
|
}
|
||||||
|
@ -431,7 +434,9 @@ void LeaveBox(
|
||||||
? (livestream
|
? (livestream
|
||||||
? tr::lng_group_call_close_sure_channel()
|
? tr::lng_group_call_close_sure_channel()
|
||||||
: tr::lng_group_call_close_sure())
|
: 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_channel()
|
||||||
: tr::lng_group_call_leave_sure())),
|
: tr::lng_group_call_leave_sure())),
|
||||||
(inCall ? st::groupCallBoxLabel : st::boxLabel)),
|
(inCall ? st::groupCallBoxLabel : st::boxLabel)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue