diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 0d05c9e..584a875 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -2816,11 +2816,29 @@ "@roomUpgradeDescription": {}, "removeDevicesDescription": "You will be logged out of this device and will no longer be able to receive messages.", "@removeDevicesDescription": {}, - "banUserDescription": "The user will be banned from the chat and will not be able to enter the chat again until they are unbanned.", + "banUserDescription": "Do you want to ban this user? They won't be able to rejoin. You also can provide a reason.", "@banUserDescription": {}, "unbanUserDescription": "The user will be able to enter the chat again if they try.", "@unbanUserDescription": {}, - "kickUserDescription": "The user is kicked out of the chat but not banned. In public chats, the user can rejoin at any time.", + "doYouWantToKick": "Kick {user}", + "@doYouWantToKick": { + "type": "String", + "placeholders": { + "user": { + "type": "string" + } + } + }, + "doYouWantToBan": "Ban {user}", + "@doYouWantToBan": { + "type": "String", + "placeholders": { + "user": { + "type": "string" + } + } + }, + "kickUserDescription": "Do you want to kick this user? If the room is public, they can rejoin anytime. You also can provide a reason.", "@kickUserDescription": {}, "makeAdminDescription": "Once you make this user admin, you may not be able to undo this as they will then have the same permissions as you.", "@makeAdminDescription": {}, diff --git a/assets/l10n/intl_ru.arb b/assets/l10n/intl_ru.arb index 412e494..7e84803 100644 --- a/assets/l10n/intl_ru.arb +++ b/assets/l10n/intl_ru.arb @@ -2556,7 +2556,7 @@ } } }, - "youHaveWithdrawnTheInvitationFor": "Вы отозвали приглашение для {user}", + "youHaveWithdrawnTheInvitationFor": "Вы отозвали приглашение для {user}.", "@youHaveWithdrawnTheInvitationFor": { "placeholders": { "user": { @@ -2809,11 +2809,29 @@ "@roomUpgradeDescription": {}, "removeDevicesDescription": "Вы выйдете с этого устройства и больше не будете получать сообщения.", "@removeDevicesDescription": {}, - "banUserDescription": "Забаненные пользователи не смогут зайти в чат.", + "banUserDescription": "Вы уверены что хотите забанить этого пользователя? Они больше не смогут войти в этот чат. Вы также можете указать причину.", "@banUserDescription": {}, "unbanUserDescription": "Пользователь сможет зайти в чат снова.", "@unbanUserDescription": {}, - "kickUserDescription": "Пользователь будет выгнан из чата, но не забанен. В общедоступных чатах пользователь может перезайти когда угодно.", + "doYouWantToKick": "Выгнать {user}", + "@doYouWantToKick": { + "type": "String", + "placeholders": { + "user": { + "type": "string" + } + } + }, + "doYouWantToBan": "Забанить {user}", + "@doYouWantToBan": { + "type": "String", + "placeholders": { + "user": { + "type": "string" + } + } + }, + "kickUserDescription": "Вы уверены что хотите выгнать этого пользователя? Если чат общедоступный, они смогут перезайти. Вы также можете указать причину.", "@kickUserDescription": {}, "makeAdminDescription": "Как только вы назначите этого пользователя администратором, пути назад не будет, так как их права доступа и ваши будут одинаковы.", "@makeAdminDescription": {}, diff --git a/lib/widgets/member_actions_popup_menu_button.dart b/lib/widgets/member_actions_popup_menu_button.dart index 380e549..db83ef0 100644 --- a/lib/widgets/member_actions_popup_menu_button.dart +++ b/lib/widgets/member_actions_popup_menu_button.dart @@ -224,7 +224,7 @@ void showMemberActionsPopupMenu({ case _MemberActions.kick: final reason = await showTextInputDialog( context: context, - title: L10n.of(context).areYouSure, + title: L10n.of(context).doYouWantToKick(user.displayName ?? user.id), okLabel: L10n.of(context).yes, cancelLabel: L10n.of(context).no, message: L10n.of(context).kickUserDescription, @@ -241,7 +241,7 @@ void showMemberActionsPopupMenu({ case _MemberActions.ban: final reason = await showTextInputDialog( context: context, - title: L10n.of(context).areYouSure, + title: L10n.of(context).doYouWantToBan(user.displayName ?? user.id), okLabel: L10n.of(context).yes, cancelLabel: L10n.of(context).no, message: L10n.of(context).banUserDescription,