From dc9138e4355fc0e1e235bf322e6cefaf964be59c Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Fri, 26 Apr 2024 23:51:57 +0400 Subject: [PATCH] Update localization [skip ci] --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 1 + .../AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index b5d1141306..15eb844b4e 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -12158,6 +12158,7 @@ Sorry for the inconvenience."; "Chat.AdminActionSheet.BanFooterMultiple" = "Fully ban users"; "Chat.AdminActionSheet.RestrictFooterMultiple" = "Partially restrict users"; "Chat.AdminActionSheet.PermissionsSectionHeader" = "WHAT CAN THIS USER DO?"; +"Chat.AdminActionSheet.PermissionsSectionHeaderMultiple" = "WHAT CAN THESE USERS DO?"; "Chat.AdminActionSheet.ActionButton" = "Proceed"; "Chat.AdminAction.ToastMessagesDeletedTitleSingle" = "Message Deleted"; diff --git a/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift b/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift index 584b12f197..150c207776 100644 --- a/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift +++ b/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift @@ -1247,7 +1247,7 @@ private final class AdminUserActionsSheetComponent: Component { theme: environment.theme, header: AnyComponent(MultilineTextComponent( text: .plain(NSAttributedString( - string: environment.strings.Chat_AdminActionSheet_PermissionsSectionHeader, + string: component.peers.count == 1 ? environment.strings.Chat_AdminActionSheet_PermissionsSectionHeader : environment.strings.Chat_AdminActionSheet_PermissionsSectionHeaderMultiple, font: Font.regular(presentationData.listsFontSize.itemListBaseHeaderFontSize), textColor: environment.theme.list.freeTextColor )),