From bcd899c641f5be45791b32128a352f776e0d0329 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 7 May 2025 22:35:30 +0300 Subject: [PATCH] Slightly improved phrases to admin log for channels. --- Telegram/Resources/langs/lang.strings | 4 ++++ .../admin_log/history_admin_log_filter.cpp | 18 ++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 2d45abaf0e..108951a3cf 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -5264,10 +5264,13 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_admin_log_filter_all_actions" = "All actions"; "lng_admin_log_filter_actions_type_subtitle" = "Filter actions by type"; "lng_admin_log_filter_actions_member_section" = "Members And Admins"; +"lng_admin_log_filter_actions_subscriber_section" = "Subscribers And Admins"; "lng_admin_log_filter_restrictions" = "New restrictions"; "lng_admin_log_filter_admins_new" = "Admin rights"; "lng_admin_log_filter_members_new" = "New members"; +"lng_admin_log_filter_subscribers_new" = "New subscribers"; "lng_admin_log_filter_actions_settings_section" = "Group Settings"; +"lng_admin_log_filter_actions_channel_settings_section" = "Channel Settings"; "lng_admin_log_filter_info_group" = "Group info"; "lng_admin_log_filter_info_channel" = "Channel info"; "lng_admin_log_filter_actions_messages_section" = "Messages"; @@ -5278,6 +5281,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_admin_log_filter_voice_chats_channel" = "Live stream"; "lng_admin_log_filter_invite_links" = "Invite links"; "lng_admin_log_filter_members_removed" = "Members leaving"; +"lng_admin_log_filter_subscribers_removed" = "Subscribers leaving"; "lng_admin_log_filter_topics" = "Topics"; "lng_admin_log_filter_sub_extend" = "Subscription Renewals"; "lng_admin_log_filter_all_admins" = "All users and admins"; diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_filter.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_filter.cpp index f158f8be12..fc78769c81 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_filter.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_filter.cpp @@ -25,12 +25,18 @@ EditFlagsDescriptor FilterValueLabels(bool isChannel) { | Flag::Unkick; const auto membersNew = Flag::Join | Flag::Invite; const auto membersRemoved = Flag::Leave; + auto membersNewText = (isChannel + ? tr::lng_admin_log_filter_subscribers_new + : tr::lng_admin_log_filter_members_new)(tr::now); + auto membersRemovedText = (isChannel + ? tr::lng_admin_log_filter_subscribers_removed + : tr::lng_admin_log_filter_members_removed)(tr::now); auto members = std::vector