diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index b522b9a2f6..7ffa331a5e 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -3704,6 +3704,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_restrict_users" = "Restrict users"; "lng_delete_all_from_user" = "Delete all from {user}"; "lng_delete_all_from_users" = "Delete all from users"; +"lng_restrict_user#one" = "Restrict user"; +"lng_restrict_user#other" = "Restrict users"; "lng_restrict_user_part" = "Partially restrict this user {emoji}"; "lng_restrict_users_part" = "Partially restrict users {emoji}"; "lng_restrict_user_full" = "Fully ban this user {emoji}"; diff --git a/Telegram/SourceFiles/boxes/moderate_messages_box.cpp b/Telegram/SourceFiles/boxes/moderate_messages_box.cpp index d278d2681f..0fa39c2ee4 100644 --- a/Telegram/SourceFiles/boxes/moderate_messages_box.cpp +++ b/Telegram/SourceFiles/boxes/moderate_messages_box.cpp @@ -371,7 +371,9 @@ void CreateModerateMessagesBox( box, rpl::conditional( ownedWrap->toggledValue(), - tr::lng_context_restrict_user(), + tr::lng_restrict_user( + lt_count, + rpl::single(participants.size()) | tr::to_count()), rpl::conditional( rpl::single(isSingle), tr::lng_ban_user(),