chore: shorten room capacity error message (#3441)
This commit is contained in:
parent
59b8d00302
commit
c325d2b1d7
5 changed files with 21 additions and 8 deletions
|
|
@ -4170,8 +4170,24 @@
|
|||
"spaceCapacityNotSet": "This space has no capacity limit.",
|
||||
"chatCapacityHasBeenChanged": "Chat capacity changed",
|
||||
"spaceCapacityHasBeenChanged": "Space capacity changed",
|
||||
"chatCapacitySetTooLow": "Chat capacity cannot be set below the current number of members.",
|
||||
"spaceCapacitySetTooLow": "Space capacity cannot be set below the current number of members.",
|
||||
"chatCapacitySetTooLow": "Chat capacity must be at least {count}.",
|
||||
"@chatCapacitySetTooLow": {
|
||||
"type": "int",
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"spaceCapacitySetTooLow": "Space capacity must be at least {count}.",
|
||||
"@spaceCapacitySetTooLow": {
|
||||
"type": "int",
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chatCapacityExplanation": "Chat capacity limits the number of members allowed in a chat.",
|
||||
"spaceCapacityExplanation": "Space capacity limits the number of members allowed in a space.",
|
||||
"chatExceedsCapacity": "This chat exceeds its capacity.",
|
||||
|
|
|
|||
|
|
@ -4784,8 +4784,6 @@
|
|||
"spaceCapacity": "Capacidad espacial",
|
||||
"chatCapacityHasBeenChanged": "Capacidad de chat modificada",
|
||||
"spaceCapacityHasBeenChanged": "Capacidad espacial modificada",
|
||||
"chatCapacitySetTooLow": "La capacidad del chat no se puede establecer por debajo del número actual de no administradores.",
|
||||
"spaceCapacitySetTooLow": "La capacidad de espacio no puede fijarse por debajo del número actual de no administradores.",
|
||||
"chatCapacityExplanation": "La capacidad del chat limita el número de usuarios no administradores permitidos en un chat.",
|
||||
"spaceCapacityExplanation": "La capacidad del espacio limita el número de no administradores permitidos en un espacio.",
|
||||
"tooManyRequest": "Demasiadas solicitudes, por favor inténtelo más tarde.",
|
||||
|
|
|
|||
|
|
@ -2874,8 +2874,6 @@
|
|||
"spaceCapacityNotSet": "Chưa giới hạn số thành viên trong không gian.",
|
||||
"chatCapacityHasBeenChanged": "Giới hạn thành viên trò chuyện đã thay đổi",
|
||||
"spaceCapacityHasBeenChanged": "Giới hạn thành viên không gian đã thay đổi",
|
||||
"chatCapacitySetTooLow": "Không thể đặt giới hạn thành viên thấp hơn số thành viên không phải quản trị hiện tại.",
|
||||
"spaceCapacitySetTooLow": "Không thể đặt giới hạn thành viên thấp hơn số thành viên không phải quản trị hiện tại.",
|
||||
"chatCapacityExplanation": "Hạn chế số lượng người dùng thường (không phải quản trị viên) có thể tham gia cuộc trò chuyện.",
|
||||
"spaceCapacityExplanation": "Hạn chế số lượng người dùng thường (không phải quản trị viên) có thể tham gia không gian.",
|
||||
"chatExceedsCapacity": "Cuộc trò chuyện vượt quá giới hạn thành viên.",
|
||||
|
|
|
|||
|
|
@ -285,7 +285,8 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||
return L10n.of(context).enterNumber;
|
||||
}
|
||||
if (int.parse(value) < (room.summary.mJoinedMemberCount ?? 1)) {
|
||||
return L10n.of(context).chatCapacitySetTooLow;
|
||||
return L10n.of(context)
|
||||
.chatCapacitySetTooLow(room.summary.mJoinedMemberCount ?? 1);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class RoomCapacityButtonState extends State<RoomCapacityButton> {
|
|||
return L10n.of(context).enterNumber;
|
||||
}
|
||||
if (int.parse(value) < memberCount) {
|
||||
return L10n.of(context).chatCapacitySetTooLow;
|
||||
return L10n.of(context).chatCapacitySetTooLow(memberCount);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue