refactor: Update arb file types

This commit is contained in:
Krille 2025-02-14 08:28:47 +01:00
commit 25872eeb26
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
55 changed files with 43340 additions and 31747 deletions

View file

@ -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()

View file

@ -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(

View file

@ -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),

View file

@ -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,
);

View file

@ -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;