edit some things

This commit is contained in:
OfficialDakari 2025-08-02 19:37:45 +05:00
parent 195b84cef8
commit ea9e067a26
3 changed files with 43 additions and 7 deletions

View File

@ -2816,11 +2816,29 @@
"@roomUpgradeDescription": {}, "@roomUpgradeDescription": {},
"removeDevicesDescription": "You will be logged out of this device and will no longer be able to receive messages.", "removeDevicesDescription": "You will be logged out of this device and will no longer be able to receive messages.",
"@removeDevicesDescription": {}, "@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": {}, "@banUserDescription": {},
"unbanUserDescription": "The user will be able to enter the chat again if they try.", "unbanUserDescription": "The user will be able to enter the chat again if they try.",
"@unbanUserDescription": {}, "@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": {}, "@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": "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": {}, "@makeAdminDescription": {},

View File

@ -2556,7 +2556,7 @@
} }
} }
}, },
"youHaveWithdrawnTheInvitationFor": "Вы отозвали приглашение для {user}", "youHaveWithdrawnTheInvitationFor": "Вы отозвали приглашение для {user}.",
"@youHaveWithdrawnTheInvitationFor": { "@youHaveWithdrawnTheInvitationFor": {
"placeholders": { "placeholders": {
"user": { "user": {
@ -2809,11 +2809,29 @@
"@roomUpgradeDescription": {}, "@roomUpgradeDescription": {},
"removeDevicesDescription": "Вы выйдете с этого устройства и больше не будете получать сообщения.", "removeDevicesDescription": "Вы выйдете с этого устройства и больше не будете получать сообщения.",
"@removeDevicesDescription": {}, "@removeDevicesDescription": {},
"banUserDescription": "Забаненные пользователи не смогут зайти в чат.", "banUserDescription": "Вы уверены что хотите забанить этого пользователя? Они больше не смогут войти в этот чат. Вы также можете указать причину.",
"@banUserDescription": {}, "@banUserDescription": {},
"unbanUserDescription": "Пользователь сможет зайти в чат снова.", "unbanUserDescription": "Пользователь сможет зайти в чат снова.",
"@unbanUserDescription": {}, "@unbanUserDescription": {},
"kickUserDescription": "Пользователь будет выгнан из чата, но не забанен. В общедоступных чатах пользователь может перезайти когда угодно.", "doYouWantToKick": "Выгнать {user}",
"@doYouWantToKick": {
"type": "String",
"placeholders": {
"user": {
"type": "string"
}
}
},
"doYouWantToBan": "Забанить {user}",
"@doYouWantToBan": {
"type": "String",
"placeholders": {
"user": {
"type": "string"
}
}
},
"kickUserDescription": "Вы уверены что хотите выгнать этого пользователя? Если чат общедоступный, они смогут перезайти. Вы также можете указать причину.",
"@kickUserDescription": {}, "@kickUserDescription": {},
"makeAdminDescription": "Как только вы назначите этого пользователя администратором, пути назад не будет, так как их права доступа и ваши будут одинаковы.", "makeAdminDescription": "Как только вы назначите этого пользователя администратором, пути назад не будет, так как их права доступа и ваши будут одинаковы.",
"@makeAdminDescription": {}, "@makeAdminDescription": {},

View File

@ -224,7 +224,7 @@ void showMemberActionsPopupMenu({
case _MemberActions.kick: case _MemberActions.kick:
final reason = await showTextInputDialog( final reason = await showTextInputDialog(
context: context, context: context,
title: L10n.of(context).areYouSure, title: L10n.of(context).doYouWantToKick(user.displayName ?? user.id),
okLabel: L10n.of(context).yes, okLabel: L10n.of(context).yes,
cancelLabel: L10n.of(context).no, cancelLabel: L10n.of(context).no,
message: L10n.of(context).kickUserDescription, message: L10n.of(context).kickUserDescription,
@ -241,7 +241,7 @@ void showMemberActionsPopupMenu({
case _MemberActions.ban: case _MemberActions.ban:
final reason = await showTextInputDialog( final reason = await showTextInputDialog(
context: context, context: context,
title: L10n.of(context).areYouSure, title: L10n.of(context).doYouWantToBan(user.displayName ?? user.id),
okLabel: L10n.of(context).yes, okLabel: L10n.of(context).yes,
cancelLabel: L10n.of(context).no, cancelLabel: L10n.of(context).no,
message: L10n.of(context).banUserDescription, message: L10n.of(context).banUserDescription,