From 22f504ca21137fc5106e7123a37d2af89ecd5c0a Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 2 Apr 2024 22:51:38 +0400 Subject: [PATCH] Add hidden buttons to langpack. --- Telegram/Resources/langs/lang.strings | 2 ++ Telegram/SourceFiles/window/window_main_menu.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 1fedad680..d9e5dba0a 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -19,6 +19,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_menu_set_status" = "Set Emoji Status"; "lng_menu_change_status" = "Change Emoji Status"; "lng_menu_my_stories" = "My Stories"; +"lng_menu_my_groups" = "My Groups"; +"lng_menu_my_channels" = "My Channels"; "lng_disable_notifications_from_tray" = "Disable notifications"; "lng_enable_notifications_from_tray" = "Enable notifications"; diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index d94e1648b..0276c3771 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -218,7 +218,8 @@ not_null AddMyChannelsBox( button, st::defaultPopupMenu); (*menu)->addAction( - chats ? u"My Groups"_q : u"My Channels"_q, + (chats ? tr::lng_menu_my_groups : tr::lng_menu_my_channels)( + tr::now), [=] { controller->uiShow()->showBox(Box(myChannelsBox)); }, nullptr); (*menu)->popup(QCursor::pos());