From 16db45fcdd68947451cc96fb8e8934ffe8e53531 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Burak=20Han=C3=A7erli?= <burak.hancerli@qt.io>
Date: Mon, 5 Feb 2024 12:47:04 +0000
Subject: [PATCH] QDS-11904 Update strings in the UI according to the
 documentation standards

---
 src/dsConnector.cpp | 4 ++--
 ui/HomePage.qml     | 6 +++---
 ui/Network.qml      | 8 +++++++-
 ui/SettingsPage.qml | 2 +-
 4 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/dsConnector.cpp b/src/dsConnector.cpp
index f808d5d..56bdd85 100644
--- a/src/dsConnector.cpp
+++ b/src/dsConnector.cpp
@@ -73,14 +73,14 @@ void DesignStudioConnector::initTcpServer()
     qDebug() << "Listening on port " << m_tcpPort;
     connect(&m_tcpServer, &QTcpServer::newConnection, this, [this]() {
         qDebug() << "New connection from Design Studio";
-        emit networkStatusUpdated("Design Studio is connected.\n Waiting for project...");
+        emit networkStatusUpdated("Qt Design Studio is connected.\n Waiting for project...");
         m_tcpSocket.reset(m_tcpServer.nextPendingConnection());
         m_ipUpdateTimer.stop();
 
         connect(m_tcpSocket.data(), &QTcpSocket::disconnected, this, [this]() {
             qDebug() << "Disconnected from Design Studio";
             emit networkStatusUpdated("\nLocal IP: " + m_ipv4Addr
-                                      + "\nWaiting for Design Studio to connect...");
+                                      + "\nWaiting for Qt Design Studio to connect...");
             m_projectData.clear();
             m_ipUpdateTimer.start();
         });
diff --git a/ui/HomePage.qml b/ui/HomePage.qml
index b498482..44f0f14 100644
--- a/ui/HomePage.qml
+++ b/ui/HomePage.qml
@@ -19,7 +19,7 @@ Item {
 
         Text {
             id: qrCodeStatus
-            text: qsTr("No user code is registered. To access your shared projects;")
+            text: qsTr("No user is registered. To access your shared projects:")
             font.pixelSize: 12
             horizontalAlignment: Text.AlignHCenter
             verticalAlignment: Text.AlignVCenter
@@ -28,7 +28,7 @@ Item {
             Connections {
                 target: backend
                 function onUserRegistered(){
-                    qrCodeStatus.text = "QR Code Registered\nYou can simply scan a new QR code to register another user.";
+                    qrCodeStatus.text = "User registration is completed.\nScan a new QR code to access the shared project from a different user.";
                     qrCodeInstructions.text = "";
                 }
             }
@@ -36,7 +36,7 @@ Item {
 
         Text {
             id: qrCodeInstructions
-            text: qsTr("1. Open a project with Design Studio (4.4 or later)\n2. Click \"File\" menu from top and select \"Share Application Online\"\n3. Scan the QR code on the screen")
+            text: qsTr("1. Open the project with Design Studio (4.4 or later).\n2. Select File -> Share Application Online.\n3. Scan the QR code.")
             font.pixelSize: 12
             horizontalAlignment: Text.AlignHCenter
             verticalAlignment: Text.AlignVCenter
diff --git a/ui/Network.qml b/ui/Network.qml
index c0ec1ba..1fc374c 100644
--- a/ui/Network.qml
+++ b/ui/Network.qml
@@ -22,7 +22,13 @@ Item {
             id: infoHeader
             Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
             horizontalAlignment: "AlignHCenter"
-            text: qsTr("Design Studio Connection Menu")
+            text: qsTr("Connect to Qt Design Studio:
+                        \n1. Copy the Local IP.
+                        \n2. Open the project in Qt Design Studio (4.4 or later).
+                        \n3. Select File -> Deploy Project to Android.
+                        \n4. Paste the Local IP to Device IP.
+                        \n5. Select Connect.
+                        \n6. Select Send Project.")
         }
 
         Label {
diff --git a/ui/SettingsPage.qml b/ui/SettingsPage.qml
index 7bb4ceb..dc58259 100644
--- a/ui/SettingsPage.qml
+++ b/ui/SettingsPage.qml
@@ -30,7 +30,7 @@ Item {
 
             Text{
                 leftPadding: 45
-                text: qsTr("Checks new projects in each 10 seconds")
+                text: qsTr("Checks new projects every 10 seconds")
                 font.pointSize: 12
             }
 
-- 
GitLab