updated copy to always call chat 'chats' (insteads of groups)

This commit is contained in:
ggurdin 2024-09-11 10:27:03 -04:00
parent f193a4d12a
commit b63ae8c43d
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
8 changed files with 46 additions and 12 deletions

View file

@ -3903,7 +3903,7 @@
"define": "Define",
"listen": "Listen",
"addConversationBot": "Enable Conversation Bot",
"addConversationBotDesc": "Add a bot to this group chat",
"addConversationBotDesc": "Add a bot to this chat",
"convoBotSettingsTitle": "Conversation Bot Settings",
"convoBotSettingsDescription": "Edit conversation topic and difficulty",
"enterAConversationTopic": "Enter a conversation topic",
@ -4195,5 +4195,9 @@
"discoverHomeservers": "Discover homeservers",
"whatIsAHomeserver": "What is a homeserver?",
"homeserverDescription": "All your data is stored on the homeserver, just like an email provider. You can choose which homeserver you want to use, while you can still communicate with everyone. Learn more at at https://matrix.org.",
"doesNotSeemToBeAValidHomeserver": "Doesn't seem to be a compatible homeserver. Wrong URL?"
"doesNotSeemToBeAValidHomeserver": "Doesn't seem to be a compatible homeserver. Wrong URL?",
"grammar": "Grammar",
"contactHasBeenInvitedToTheChat": "Contact has been invited to the chat",
"inviteChat": "📨 Invite chat",
"chatName": "Chat name"
}

View file

@ -138,8 +138,11 @@ class ChatListController extends State<ChatList>
final inviteAction = await showModalActionSheet<InviteActions>(
context: context,
message: room.isDirectChat
// #Pangea
? L10n.of(context)!.invitePrivateChat
: L10n.of(context)!.inviteGroupChat,
// : L10n.of(context)!.inviteGroupChat,
: L10n.of(context)!.inviteChat,
// Pangea#
title: room.getLocalizedDisplayname(MatrixLocals(L10n.of(context)!)),
actions: [
SheetAction(

View file

@ -328,7 +328,10 @@ class ChatListItem extends StatelessWidget {
room.membership == Membership.invite
? isDirectChat
? L10n.of(context)!.invitePrivateChat
: L10n.of(context)!.inviteGroupChat
// #Pangea
// : L10n.of(context)!.inviteGroupChat
: L10n.of(context)!.inviteChat
// Pangea#
: snapshot.data ??
L10n.of(context)!.emptyChat,
softWrap: false,

View file

@ -319,7 +319,10 @@ class _SpaceViewState extends State<SpaceView> {
),
AlertDialogAction(
key: AddRoomType.chat,
label: L10n.of(context)!.createGroup,
// #Pangea
// label: L10n.of(context)!.createGroup,
label: L10n.of(context)!.createChat,
// Pangea#
),
],
);
@ -329,12 +332,18 @@ class _SpaceViewState extends State<SpaceView> {
context: context,
title: roomType == AddRoomType.subspace
? L10n.of(context)!.createNewSpace
: L10n.of(context)!.createGroup,
// #Pangea
// : L10n.of(context)!.createGroup,
: L10n.of(context)!.createChat,
// Pangea#
textFields: [
DialogTextField(
hintText: roomType == AddRoomType.subspace
? L10n.of(context)!.spaceName
: L10n.of(context)!.groupName,
// #Pangea
// : L10n.of(context)!.groupName,
: L10n.of(context)!.chatName,
// Pangea#
minLines: 1,
maxLines: 1,
maxLength: 64,

View file

@ -182,7 +182,10 @@ class InvitationSelectionController extends State<InvitationSelection> {
if (success.error == null) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(L10n.of(context)!.contactHasBeenInvitedToTheGroup),
// #Pangea
// content: Text(L10n.of(context)!.contactHasBeenInvitedToTheGroup),
content: Text(L10n.of(context)!.contactHasBeenInvitedToTheChat),
// Pangea#
),
);
}

View file

@ -27,7 +27,10 @@ class NewGroupView extends StatelessWidget {
onPressed: controller.loading ? null : Navigator.of(context).pop,
),
),
title: Text(L10n.of(context)!.createGroup),
// #Pangea
// title: Text(L10n.of(context)!.createGroup),
title: Text(L10n.of(context)!.createChat),
// Pangea#
),
// #Pangea
floatingActionButton: FloatingActionButton.extended(
@ -74,7 +77,10 @@ class NewGroupView extends StatelessWidget {
readOnly: controller.loading,
decoration: InputDecoration(
prefixIcon: const Icon(Icons.people_outlined),
labelText: L10n.of(context)!.groupName,
// #Pangea
// labelText: L10n.of(context)!.groupName,
labelText: L10n.of(context)!.chatName,
// Pangea#
),
),
),

View file

@ -140,7 +140,10 @@ class NewPrivateChatView extends StatelessWidget {
foregroundColor: theme.colorScheme.onTertiaryContainer,
child: const Icon(Icons.group_add_outlined),
),
title: Text(L10n.of(context)!.createGroup),
// #Pangea
// title: Text(L10n.of(context)!.createGroup),
title: Text(L10n.of(context)!.createChat),
// Pangea#
onTap: () => context.go('/rooms/newgroup'),
),
if (PlatformInfos.isMobile)

View file

@ -53,7 +53,10 @@ class ClassInvitationSelectionController
if (success.error == null) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(L10n.of(context)!.contactHasBeenInvitedToTheGroup),
// #Pangea
// content: Text(L10n.of(context)!.contactHasBeenInvitedToTheGroup),
content: Text(L10n.of(context)!.contactHasBeenInvitedToTheChat),
// Pangea#
),
);
}