refactor: Update arb file types
This commit is contained in:
parent
aad2c9af99
commit
25872eeb26
55 changed files with 43340 additions and 31747 deletions
|
|
@ -168,7 +168,7 @@ class SendFileDialogState extends State<SendFileDialog> {
|
|||
|
||||
final fileName = widget.files.length == 1
|
||||
? widget.files.single.name
|
||||
: L10n.of(context).countFiles(widget.files.length.toString());
|
||||
: L10n.of(context).countFiles(widget.files.length);
|
||||
final fileTypes = widget.files
|
||||
.map((file) => file.name.split('.').last)
|
||||
.toSet()
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
ListTile(
|
||||
title: Text(
|
||||
L10n.of(context).countParticipants(
|
||||
actualMembersCount.toString(),
|
||||
actualMembersCount,
|
||||
),
|
||||
style: TextStyle(
|
||||
color: theme.colorScheme.secondary,
|
||||
|
|
@ -324,7 +324,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
: ListTile(
|
||||
title: Text(
|
||||
L10n.of(context).loadCountMoreParticipants(
|
||||
(actualMembersCount - members.length).toString(),
|
||||
(actualMembersCount - members.length),
|
||||
),
|
||||
),
|
||||
leading: CircleAvatar(
|
||||
|
|
|
|||
|
|
@ -288,9 +288,8 @@ class ChatListItem extends StatelessWidget {
|
|||
child: room.isSpace && room.membership == Membership.join
|
||||
? Text(
|
||||
L10n.of(context).countChatsAndCountParticipants(
|
||||
room.spaceChildren.length.toString(),
|
||||
(room.summary.mJoinedMemberCount ?? 1)
|
||||
.toString(),
|
||||
room.spaceChildren.length,
|
||||
(room.summary.mJoinedMemberCount ?? 1),
|
||||
),
|
||||
style:
|
||||
TextStyle(color: theme.colorScheme.outline),
|
||||
|
|
|
|||
|
|
@ -129,7 +129,8 @@ class LoginController extends State<Login> {
|
|||
final dialogResult = await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
useRootNavigator: false,
|
||||
title: L10n.of(context).noMatrixServer(newDomain, oldHomeserver!),
|
||||
title: L10n.of(context)
|
||||
.noMatrixServer(newDomain.toString(), oldHomeserver.toString()),
|
||||
okLabel: L10n.of(context).ok,
|
||||
cancelLabel: L10n.of(context).cancel,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ extension RoomStatusExtension on Room {
|
|||
if (AppConfig.hideTypingUsernames) {
|
||||
typingText = L10n.of(context).isTyping;
|
||||
if (typingUsers.first.id != directChatMatrixID) {
|
||||
typingText =
|
||||
L10n.of(context).numUsersTyping(typingUsers.length.toString());
|
||||
typingText = L10n.of(context).numUsersTyping(typingUsers.length);
|
||||
}
|
||||
} else if (typingUsers.length == 1) {
|
||||
typingText = L10n.of(context).isTyping;
|
||||
|
|
@ -31,7 +30,7 @@ extension RoomStatusExtension on Room {
|
|||
} else if (typingUsers.length > 2) {
|
||||
typingText = L10n.of(context).userAndOthersAreTyping(
|
||||
typingUsers.first.calcDisplayname(),
|
||||
(typingUsers.length - 1).toString(),
|
||||
(typingUsers.length - 1),
|
||||
);
|
||||
}
|
||||
return typingText;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue