Fixed display of plural phrase in moderate box.

This commit is contained in:
23rd 2025-04-24 10:15:59 +03:00 committed by John Preston
parent b8c313965f
commit 28c502bd85
2 changed files with 5 additions and 1 deletions

View file

@ -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}";

View file

@ -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(),