From 7e926a3e2397e3f886d3fd221b2a8df41c564048 Mon Sep 17 00:00:00 2001
From: ovari123 <ovari123@zoho.com>
Date: Thu, 3 Oct 2024 15:40:21 -0400
Subject: [PATCH] =?UTF-8?q?misc:=20ux/ui=20rename=20=E2=80=9Cswarm?=
 =?UTF-8?q?=E2=80=9D=20to=20=E2=80=9Cgroup=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

A(n) [type] error occurred while {verb} {noun}
createSwarm → createGroup → newGroup
Create swarm → Create new group
startSwarm → startGroup → newGroup
Start swarm → Create new group
swarmName → groupName
Swarm name → Group name

Change-Id: I9cb6f7b124d3db193bd190d2e52b5b27ea10ecf3
GitLab: #1845
---
 src/app/currentconversation.cpp                 |  2 +-
 src/app/mainview/components/NewSwarmPage.qml    |  4 ++--
 src/app/mainview/components/SidePanel.qml       |  4 ++--
 .../mainview/components/SwarmDetailsPanel.qml   |  2 +-
 src/app/net/jami/Constants/JamiStrings.qml      | 17 ++++++++---------
 5 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/src/app/currentconversation.cpp b/src/app/currentconversation.cpp
index 44d7ddeaf..fa46c0004 100644
--- a/src/app/currentconversation.cpp
+++ b/src/app/currentconversation.cpp
@@ -152,7 +152,7 @@ CurrentConversation::updateData()
         updateProfile(convId);
         updateActiveCalls(accountId, convId);
     } catch (...) {
-        qWarning() << "Can't update current conversation data for" << convId;
+        qWarning() << "An error occurred while updating current conversation data for" << convId;
     }
 }
 
diff --git a/src/app/mainview/components/NewSwarmPage.qml b/src/app/mainview/components/NewSwarmPage.qml
index b676099dc..6bdfe0356 100644
--- a/src/app/mainview/components/NewSwarmPage.qml
+++ b/src/app/mainview/components/NewSwarmPage.qml
@@ -150,7 +150,7 @@ DualPaneView {
                 Layout.preferredWidth: JamiTheme.preferredFieldWidth
 
                 staticText: ""
-                placeholderText: JamiStrings.swarmName
+                placeholderText: JamiStrings.groupName
 
                 textColor: {
                     if (UtilsAdapter.luma(root.color)) {
@@ -205,7 +205,7 @@ DualPaneView {
                 preferredWidth: textSize.width + 2 * JamiTheme.buttontextWizzardPadding
 
                 primary: true
-                text: JamiStrings.createSwarm
+                text: JamiStrings.newGroup
 
                 onClicked: createSwarmClicked(title.dynamicText, description.dynamicText, UtilsAdapter.tempCreationImage())
             }
diff --git a/src/app/mainview/components/SidePanel.qml b/src/app/mainview/components/SidePanel.qml
index 94f17e4a9..c564e847a 100644
--- a/src/app/mainview/components/SidePanel.qml
+++ b/src/app/mainview/components/SidePanel.qml
@@ -214,7 +214,7 @@ SidePanelBase {
                     font.bold: true
                     font.pointSize: JamiTheme.contactEventPointSize
 
-                    text: JamiStrings.createSwarm
+                    text: JamiStrings.newGroup
                 }
 
                 PushButton {
@@ -288,7 +288,7 @@ SidePanelBase {
                     visible: !swarmMemberSearchList.visible && CurrentAccount.type !== Profile.Type.SIP
 
                     source: smartListLayout.visible ? JamiResources.create_swarm_svg : JamiResources.round_close_24dp_svg
-                    toolTipText: smartListLayout.visible ? JamiStrings.startSwarm : JamiStrings.cancel
+                    toolTipText: smartListLayout.visible ? JamiStrings.newGroup : JamiStrings.cancel
 
                     onClicked: toggleCreateSwarmView()
                 }
diff --git a/src/app/mainview/components/SwarmDetailsPanel.qml b/src/app/mainview/components/SwarmDetailsPanel.qml
index 57af0192a..fb3553bad 100644
--- a/src/app/mainview/components/SwarmDetailsPanel.qml
+++ b/src/app/mainview/components/SwarmDetailsPanel.qml
@@ -115,7 +115,7 @@ Rectangle {
                             titleLine.editMode = activeFocus;
                         }
 
-                        infoTipLineText: CurrentConversation.isCoreDialog ? JamiStrings.contactName : JamiStrings.swarmName
+                        infoTipLineText: CurrentConversation.isCoreDialog ? JamiStrings.contactName : JamiStrings.groupName
                     }
 
                     ModalTextEdit {
diff --git a/src/app/net/jami/Constants/JamiStrings.qml b/src/app/net/jami/Constants/JamiStrings.qml
index 19befd42f..c8c5a1bd5 100644
--- a/src/app/net/jami/Constants/JamiStrings.qml
+++ b/src/app/net/jami/Constants/JamiStrings.qml
@@ -33,7 +33,7 @@ Item {
     property string endCall: qsTr("End call")
     property string incomingAudioCallFrom: qsTr("Incoming audio call from {}")
     property string incomingVideoCallFrom: qsTr("Incoming video call from {}")
-    property string startSwarm: qsTr("Start swarm")
+    property string newGroup: qsTr("Create new group")
     property string invitations: qsTr("Invitations")
     property string description: qsTr("Jami is a universal communication platform, with privacy as its foundation, that relies on a free distributed network for everyone.")
     property string updateToSwarm: qsTr("Migrating to the Swarm technology will enable synchronizing this conversation across multiple devices and improve reliability. The legacy conversation history will be cleared in the process.")
@@ -536,8 +536,8 @@ Item {
     property string troubleshootButton: qsTr("Open logs")
     property string troubleshootText: qsTr("Get logs")
 
-    property string experimentalCallSwarm: qsTr("(Experimental) Enable call support for swarm")
-    property string experimentalCallSwarmTooltip: qsTr("This feature will enable call buttons in swarms with multiple participants.")
+    property string experimentalCallSwarm: qsTr("(Experimental) Enable call support for groups")
+    property string experimentalCallSwarmTooltip: qsTr("This feature will enable the audio and video call buttons in group conversations.")
 
     // Recording Settings
     property string quality: qsTr("Quality")
@@ -780,8 +780,8 @@ Item {
     property string joinWithVideo: qsTr("Join with video")
     property string startedACall: qsTr("Started a call")
     property string wantToJoin: qsTr("A call is in progress. Do you want to join the call?")
-    property string needsHost: qsTr("Current host for this swarm seems unreachable. Do you want to host the call?")
-    property string selectHost: qsTr("Select dedicated device for hosting future calls in this swarm. If not set, the host will be the device starting a call.")
+    property string needsHost: qsTr("Current host for this group conversation seems unreachable. Do you want to host the call?")
+    property string selectHost: qsTr("Select dedicated device for hosting future calls in this group conversation. If not set, the host will be the device starting a call.")
     property string selectThisDevice: qsTr("Select this device")
     property string selectDevice: qsTr("Select device")
     property string removeCurrentDevice: qsTr("Remove current device")
@@ -797,10 +797,10 @@ Item {
     property string invitationViewAcceptedConversation: qsTr("You have accepted\nthe conversation invitation.")
     property string invitationViewWaitingForSync: qsTr("Waiting until %1\nconnects to synchronize the conversation.")
 
-    // SwarmDetailsPanel
+    // SwarmDetailsPanel (group conversation panel)
     property string members: qsTr("%1 Members")
     property string member: qsTr("Member")
-    property string swarmName: qsTr("Swarm name")
+    property string groupName: qsTr("Group name")
     property string contactName: qsTr("Contact name")
     property string addDescription: qsTr("Add description")
 
@@ -812,8 +812,7 @@ Item {
     property string typeOfSwarm: qsTr("Type")
     property string none: qsTr("None")
 
-    // NewSwarmPage
-    property string createSwarm: qsTr("Create swarm")
+    // NewSwarmPage (new group conversation page)
     property string goToConversation: qsTr("Go to conversation")
     property string kickMember: qsTr("Kick member")
     property string reinstateMember: qsTr("Reinstate member")
-- 
GitLab