QmlDebug: Tr::tr

Change-Id: I420f15db36a3da30a0a788c0af09e935f62902c7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-01-23 22:01:49 +01:00
parent 1129079108
commit 540b679c14
14 changed files with 32 additions and 77 deletions

View File

@@ -42141,7 +42141,7 @@ Jméno &lt;E-mail&gt; alias &lt;E-mail&gt;.</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>

View File

@@ -27284,7 +27284,7 @@ Hverken stien til biblioteket eller stien til dets includere tilføjes til .pro-
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Socket state changed to %1</source>
<translation>Socket-tilstand ændret til %1</translation>
@@ -27293,9 +27293,6 @@ Hverken stien til biblioteket eller stien til dets includere tilføjes til .pro-
<source>Error: %1</source>
<translation>Fejl: %1</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>
@@ -39859,7 +39856,7 @@ skal være et repository krævet SSH-autentifikation (se dokumentation på SSH o
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionManager</name>
<name>QmlDebug</name>
<message>
<source>Debug connection opened.</source>
<translation>Fejlret-forbindelse åbnet.</translation>

View File

@@ -24840,7 +24840,7 @@ the manifest file by overriding your settings. Allow override?</source>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>
@@ -30860,7 +30860,7 @@ Möchten Sie es beenden?</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Socket state changed to %1</source>
<translation>Socket-Status geändert zu %1</translation>
@@ -40755,7 +40755,7 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten.</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionManager</name>
<name>QmlDebug</name>
<message>
<source>Debug connection opened.</source>
<translation>Debug-Verbindung geöffnet.</translation>

View File

@@ -41770,7 +41770,7 @@ Le fichier APL ne sera pas utilisable sur d&apos;autres périphériques.</transl
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>

View File

@@ -11429,7 +11429,7 @@ will also disable the following plugins:
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Socket state changed to %1</source>
<translation type="unfinished"></translation>
@@ -11438,9 +11438,6 @@ will also disable the following plugins:
<source>Error: %1</source>
<translation>Greška: %1</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionManager</name>
<message>
<source>Debug connection opened.</source>
<translation type="unfinished"></translation>
@@ -11453,9 +11450,6 @@ will also disable the following plugins:
<source>Debug connection failed.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>

View File

@@ -9153,7 +9153,7 @@ will also disable the following plugins:
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>
@@ -35270,7 +35270,7 @@ the program.</source>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Network connection dropped</source>
<translation></translation>
@@ -43558,7 +43558,7 @@ Output:
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionManager</name>
<name>QmlDebug</name>
<message>
<source>Debug connection opened.</source>
<translation></translation>

View File

@@ -19719,7 +19719,7 @@ Sprawdź dokumentację SSH i zmienną środowiskową SSH_ASKPASS.</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>
@@ -28393,7 +28393,7 @@ Czy kontynuować instalację?</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Socket state changed to %1</source>
<translation>Zmiana stanu gniazda na %1</translation>

View File

@@ -34638,7 +34638,7 @@ Neither the path to the library nor the path to its includes is added to the .pr
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Socket state changed to %1</source>
<translation>Состояние сокета изменилось на %1</translation>
@@ -34647,9 +34647,6 @@ Neither the path to the library nor the path to its includes is added to the .pr
<source>Error: %1</source>
<translation>Ошибка: %1</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionManager</name>
<message>
<source>Debug connection opened.</source>
<translation>Отладочное соединение открыто.</translation>
@@ -34662,9 +34659,6 @@ Neither the path to the library nor the path to its includes is added to the .pr
<source>Debug connection failed.</source>
<translation>Не удалось установить отладочное подключение.</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>

View File

@@ -24773,7 +24773,7 @@ should a repository require SSH-authentication (see documentation on SSH and the
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>
@@ -36173,7 +36173,7 @@ Are you sure you want to continue?</source>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionPrivate</name>
<name>QmlDebug</name>
<message>
<source>Error: (%1) %2</source>
<extracomment>%1=error code, %2=error message</extracomment>
@@ -36183,37 +36183,6 @@ Are you sure you want to continue?</source>
<source>&lt;device is gone&gt;</source>
<translation type="vanished">&lt;пристрій зник&gt;</translation>
</message>
<message>
<source>Network connection dropped</source>
<translation type="vanished">Мережеве з&apos;єднання розірване</translation>
</message>
<message>
<source>Resolving host</source>
<translation type="vanished">Визначення імені вузла</translation>
</message>
<message>
<source>Establishing network connection ...</source>
<translation type="vanished">Встановлення мережевого з&apos;єднання...</translation>
</message>
<message>
<source>Network connection established</source>
<translation type="vanished">Мережеве з&apos;єднання встановлене</translation>
</message>
<message>
<source>Network connection closing</source>
<translation type="vanished">Мережеве з&apos;єднання закривається</translation>
</message>
<message>
<source>Socket state changed to BoundState. This should not happen!</source>
<translation type="vanished">Стан сокета змінився на BoundState. Цього не мало трапитись!</translation>
</message>
<message>
<source>Socket state changed to ListeningState. This should not happen!</source>
<translation type="vanished">Стан сокета змінився на ListeningState. Цього не мало трапитись!</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<message>
<source>Connecting to debug server at %1:%2 ...</source>
<translation type="vanished">Підключення до сервера зневадження на %1: %2 ...</translation>

View File

@@ -32254,7 +32254,7 @@ Please update your kit (%3) or choose a mkspec for qmake that matches your targe
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnection</name>
<name>QmlDebug</name>
<message>
<source>Socket state changed to %1</source>
<translation type="unfinished"></translation>
@@ -32264,9 +32264,6 @@ Please update your kit (%3) or choose a mkspec for qmake that matches your targe
<translation type="unfinished">: %1
{1?}</translation>
</message>
</context>
<context>
<name>QmlDebug::QmlDebugConnectionManager</name>
<message>
<source>Debug connection opened.</source>
<translation type="unfinished"></translation>
@@ -32279,9 +32276,6 @@ Please update your kit (%3) or choose a mkspec for qmake that matches your targe
<source>Debug connection failed.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>

View File

@@ -28328,7 +28328,7 @@ This option is useful when you want to try your application on devices which don
</message>
</context>
<context>
<name>QmlDebug::QmlOutputParser</name>
<name>QmlDebug</name>
<message>
<source>The port seems to be in use.</source>
<extracomment>Error message shown after &apos;Could not connect ... debugger:&quot;</extracomment>

View File

@@ -2,7 +2,9 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "qmldebugconnection.h"
#include "qmldebugclient.h"
#include "qmldebugtr.h"
#include "qpacketprotocol.h"
#include <utils/temporaryfile.h>
@@ -44,14 +46,14 @@ static QString socketStateToString(QAbstractSocket::SocketState state)
{
QString stateString;
QDebug(&stateString) << state;
return QmlDebugConnection::tr("Socket state changed to %1").arg(stateString);
return Tr::tr("Socket state changed to %1").arg(stateString);
}
static QString socketErrorToString(QAbstractSocket::SocketError error)
{
QString errorString;
QDebug(&errorString) << error;
return QmlDebugConnection::tr("Error: %1").arg(errorString);
return Tr::tr("Error: %1").arg(errorString);
}
void QmlDebugConnectionPrivate::advertisePlugins()

View File

@@ -2,7 +2,9 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "qmldebugconnectionmanager.h"
#include "qmldebugconnection.h"
#include "qmldebugtr.h"
#include <utils/qtcassert.h>
#include <utils/url.h>
@@ -195,7 +197,7 @@ void QmlDebugConnectionManager::destroyConnection()
void QmlDebugConnectionManager::qmlDebugConnectionOpened()
{
logState(tr("Debug connection opened."));
logState(Tr::tr("Debug connection opened."));
QTC_ASSERT(m_connection, return);
QTC_ASSERT(m_connection->isConnected(), return);
stopConnectionTimer();
@@ -204,7 +206,7 @@ void QmlDebugConnectionManager::qmlDebugConnectionOpened()
void QmlDebugConnectionManager::qmlDebugConnectionClosed()
{
logState(tr("Debug connection closed."));
logState(Tr::tr("Debug connection closed."));
QTC_ASSERT(m_connection, return);
QTC_ASSERT(!m_connection->isConnected(), return);
destroyConnection();
@@ -213,7 +215,7 @@ void QmlDebugConnectionManager::qmlDebugConnectionClosed()
void QmlDebugConnectionManager::qmlDebugConnectionFailed()
{
logState(tr("Debug connection failed."));
logState(Tr::tr("Debug connection failed."));
QTC_ASSERT(m_connection, return);
QTC_ASSERT(!m_connection->isConnected(), /**/);

View File

@@ -2,7 +2,10 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "qmloutputparser.h"
#include "qmldebugconstants.h"
#include "qmldebugtr.h"
#include <QRegularExpression>
namespace QmlDebug {
@@ -68,10 +71,10 @@ void QmlOutputParser::processOutput(const QString &output)
}
} else if (status.startsWith(unableToListen)) {
//: Error message shown after 'Could not connect ... debugger:"
emit errorMessage(tr("The port seems to be in use."));
emit errorMessage(Tr::tr("The port seems to be in use."));
} else if (status.startsWith(debuggingNotEnabled)) {
//: Error message shown after 'Could not connect ... debugger:"
emit errorMessage(tr("The application is not set up for QML/JS debugging."));
emit errorMessage(Tr::tr("The application is not set up for QML/JS debugging."));
} else if (status.startsWith(connectionEstablished)) {
emit connectionEstablishedMessage();
} else if (status.startsWith(connectingToSocket)) {