Tr: Move some line endings at beginning and end out of tr

Change-Id: Ibb0aba4d6e58bfe4684a818a894876c1f8f7df15
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Eike Ziller
2023-10-16 10:43:39 +02:00
parent 5336fd83a0
commit e6ecfa0517
10 changed files with 110 additions and 220 deletions

View File

@@ -751,12 +751,8 @@ Vil du afinstallere den eksisterende pakke?</translation>
<translation>Handlingen kræver indgriben fra brugeren. Brug kommandolinjeværktøjet &quot;sdkmanager&quot;.</translation>
</message>
<message>
<source>License command failed.
</source>
<translation>Licens-kommando mislykkedes.
</translation>
<source>License command failed.</source>
<translation>Licens-kommando mislykkedes.</translation>
</message>
<message>
<source>Android SDK Manager</source>
@@ -807,16 +803,12 @@ Vil du afinstallere den eksisterende pakke?</translation>
<translation>Vil du acceptere Android SDK-licensen?</translation>
</message>
<message>
<source>Checking pending licenses...
</source>
<translation>Tjekker afventende licenser...
</translation>
<source>Checking pending licenses...</source>
<translation>Tjekker afventende licenser...</translation>
</message>
<message>
<source>
SDK Manager is busy.</source>
<translation>
SDK manager er optaget.</translation>
<source>SDK Manager is busy.</source>
<translation>SDK manager er optaget.</translation>
</message>
<message>
<source>Android SDK Changes</source>
@@ -1295,12 +1287,8 @@ Installer en SDK af mindst API version %1.</translation>
<translation>Mislykkedes.</translation>
</message>
<message>
<source>Done
</source>
<translation>Færdig
</translation>
<source>Done</source>
<translation>Færdig</translation>
</message>
<message>
<source>Installing</source>

View File

@@ -10396,22 +10396,16 @@ Installieren Sie diese manuell, nachdem der aktuelle Vorgang abgeschlossen ist.
</translation>
</message>
<message>
<source>Checking pending licenses...
</source>
<translation>Prüfe auf ausstehende Lizenzen...
</translation>
<source>Checking pending licenses...</source>
<translation>Prüfe auf ausstehende Lizenzen...</translation>
</message>
<message>
<source>The installation of Android SDK packages may fail if the respective licenses are not accepted.
</source>
<translation>Die Installation von Android-SDK-Paketen kann fehlschlagen, wenn die entsprechenden Lizenzen nicht akzeptiert werden.
</translation>
<source>The installation of Android SDK packages may fail if the respective licenses are not accepted.</source>
<translation>Die Installation von Android-SDK-Paketen kann fehlschlagen, wenn die entsprechenden Lizenzen nicht akzeptiert werden.</translation>
</message>
<message>
<source>
SDK Manager is busy.</source>
<translation>
SDK-Manager arbeitet.</translation>
<source>SDK Manager is busy.</source>
<translation>SDK-Manager arbeitet.</translation>
</message>
<message>
<source>Android SDK Changes</source>
@@ -10503,12 +10497,8 @@ Breche ausstehende Operationen ab...
<translation type="unfinished"></translation>
</message>
<message>
<source>License command failed.
</source>
<translation>Lizenzkommando fehlgeschlagen.
</translation>
<source>License command failed.</source>
<translation>Lizenzkommando fehlgeschlagen.</translation>
</message>
<message>
<source>Updating installed packages.</source>
@@ -10519,12 +10509,8 @@ Breche ausstehende Operationen ab...
<translation>Fehlgeschlagen.</translation>
</message>
<message>
<source>Done
</source>
<translation>Fertig
</translation>
<source>Done</source>
<translation>Fertig</translation>
</message>
<message>
<source>Installing</source>
@@ -27607,10 +27593,8 @@ Versuchen Sie, das Projekt neu zu erstellen.</translation>
<translation>Lade...</translation>
</message>
<message>
<source>Running &quot;%1&quot;
</source>
<translation>Führe &quot;%1&quot; aus
</translation>
<source>Running &quot;%1&quot;</source>
<translation>Führe &quot;%1&quot; aus</translation>
</message>
<message>
<source>Unexpected result: %1</source>
@@ -47127,22 +47111,16 @@ Zusätzlich wird die Verbindung zum Gerät getestet.</translation>
<translation>Überprüfe, ob &quot;%1&quot; funktioniert...</translation>
</message>
<message>
<source>Failed to start &quot;%1&quot;: %2
</source>
<translation>&quot;%1&quot; konnte nicht gestartet werden: %2
</translation>
<source>Failed to start &quot;%1&quot;: %2</source>
<translation>&quot;%1&quot; konnte nicht gestartet werden: %2</translation>
</message>
<message>
<source>&quot;%1&quot; crashed.
</source>
<translation>&quot;%1&quot; ist abgestürzt.
</translation>
<source>&quot;%1&quot; crashed.</source>
<translation>&quot;%1&quot; ist abgestürzt.</translation>
</message>
<message>
<source>&quot;%1&quot; failed with exit code %2: %3
</source>
<translation>&quot;%1&quot; ist mit Rückgabewert %2 fehlgeschlagen: %3
</translation>
<source>&quot;%1&quot; failed with exit code %2: %3</source>
<translation>&quot;%1&quot; ist mit Rückgabewert %2 fehlgeschlagen: %3</translation>
</message>
<message>
<source>&quot;%1&quot; is functional.
@@ -47151,10 +47129,8 @@ Zusätzlich wird die Verbindung zum Gerät getestet.</translation>
</translation>
</message>
<message>
<source>&quot;%1&quot; will be used for deployment, because &quot;%2&quot; and &quot;%3&quot; are not available.
</source>
<translation>&quot;%1&quot; wird für das Deployment benutzt, da &quot;%2&quot; und &quot;%3&quot; nicht verfügbar sind.
</translation>
<source>&quot;%1&quot; will be used for deployment, because &quot;%2&quot; and &quot;%3&quot; are not available.</source>
<translation>&quot;%1&quot; wird für das Deployment benutzt, da &quot;%2&quot; und &quot;%3&quot; nicht verfügbar sind.</translation>
</message>
<message>
<source>Checking if required commands are available...</source>
@@ -47177,10 +47153,8 @@ Zusätzlich wird die Verbindung zum Gerät getestet.</translation>
<translation>%1 nicht gefunden.</translation>
</message>
<message>
<source>Deployment to this device will not work out of the box.
</source>
<translation>Deployment auf dieses Gerät wird nicht von Anfang an funktionieren.
</translation>
<source>Deployment to this device will not work out of the box.</source>
<translation>Deployment auf dieses Gerät wird nicht von Anfang an funktionieren.</translation>
</message>
<message>
<source>Checking if specified ports are available...</source>
@@ -47446,10 +47420,6 @@ Der Kontrollprozess konnte nicht gestartet werden.</translation>
<source>&quot;%1&quot; failed to start: %2</source>
<translation>&quot;%1&quot; konnte nicht gestartet werden: %2</translation>
</message>
<message>
<source>&quot;%1&quot; crashed.</source>
<translation>&quot;%1&quot; ist abgestürzt.</translation>
</message>
<message>
<source>&quot;sftp&quot; binary &quot;%1&quot; does not exist.</source>
<translation>Ausführbare &quot;sftp&quot;-Datei &quot;%1&quot; existiert nicht.</translation>

View File

@@ -9058,22 +9058,16 @@ Installez-les manuellement après que l&apos;opération en cours soit finie.
<translation>L&apos;installation du SDK Android ne contient pas certains paquets nécessaires. Souhaitez-vous installer les paquets manquants&#xa0;?</translation>
</message>
<message>
<source>Checking pending licenses...
</source>
<translation>Vérification des licences en cours
</translation>
<source>Checking pending licenses...</source>
<translation>Vérification des licences en cours</translation>
</message>
<message>
<source>The installation of Android SDK packages may fail if the respective licenses are not accepted.
</source>
<translation>L&apos;installation des paquets du SDK Android peut échouer si les licences respectives ne sont pas acceptées.
</translation>
<source>The installation of Android SDK packages may fail if the respective licenses are not accepted.</source>
<translation>L&apos;installation des paquets du SDK Android peut échouer si les licences respectives ne sont pas acceptées.</translation>
</message>
<message>
<source>
SDK Manager is busy.</source>
<translation>
Le gestionnaire de SDK est occupé.</translation>
<source>SDK Manager is busy.</source>
<translation>Le gestionnaire de SDK est occupé.</translation>
</message>
<message numerus="yes">
<source>%n Android SDK packages shall be updated.</source>
@@ -10672,12 +10666,8 @@ Les fichiers du répertoire source du paquet Android sont copiés dans le réper
<translation>Échec.</translation>
</message>
<message>
<source>Done
</source>
<translation>Fini
</translation>
<source>Done</source>
<translation>Fini</translation>
</message>
<message>
<source>Installing</source>
@@ -10700,12 +10690,8 @@ Les fichiers du répertoire source du paquet Android sont copiés dans le réper
<translation type="unfinished"></translation>
</message>
<message>
<source>License command failed.
</source>
<translation>Échec de la commande de licence.
</translation>
<source>License command failed.</source>
<translation>Échec de la commande de licence.</translation>
</message>
<message>
<source>Revision</source>
@@ -27352,10 +27338,8 @@ La recompilation du projet peut aider.</translation>
<translation>Chargement </translation>
</message>
<message>
<source>Running &quot;%1&quot;
</source>
<translation>Exécution de «&#xa0;%1&#xa0;»
</translation>
<source>Running &quot;%1&quot;</source>
<translation>Exécution de «&#xa0;%1&#xa0;»</translation>
</message>
<message>
<source>Unexpected result: %1</source>
@@ -46947,34 +46931,20 @@ Le processus de contrôle n&apos;a pas pu démarrer.</translation>
</translation>
</message>
<message>
<source>Failed to start &quot;%1&quot;: %2
</source>
<translation>Échec du démarrage de «&#xa0;%1&#xa0;»&#xa0;: %2
</translation>
<source>Failed to start &quot;%1&quot;: %2</source>
<translation>Échec du démarrage de «&#xa0;%1&#xa0;»&#xa0;: %2</translation>
</message>
<message>
<source>&quot;%1&quot; crashed.
</source>
<translation>«&#xa0;%1&#xa0;» a planté.
</translation>
<source>&quot;%1&quot; failed with exit code %2: %3</source>
<translation>«&#xa0;%1&#xa0;» a échoué avec le code de sortie %2&#xa0;: %3</translation>
</message>
<message>
<source>&quot;%1&quot; failed with exit code %2: %3
</source>
<translation>«&#xa0;%1&#xa0;» a échoué avec le code de sortie %2&#xa0;: %3
</translation>
<source>&quot;%1&quot; will be used for deployment, because &quot;%2&quot; and &quot;%3&quot; are not available.</source>
<translation>« %1 » sera utilisé pour le déploiement, car « %2 » et «&#xa0;%3&#xa0;» ne sont pas disponibles.</translation>
</message>
<message>
<source>&quot;%1&quot; will be used for deployment, because &quot;%2&quot; and &quot;%3&quot; are not available.
</source>
<translation>« %1 » sera utilisé pour le déploiement, car « %2 » et «&#xa0;%3&#xa0;» ne sont pas disponibles.
</translation>
</message>
<message>
<source>Deployment to this device will not work out of the box.
</source>
<translation>Le déploiement vers ce périphérique ne fonctionnera pas directement.
</translation>
<source>Deployment to this device will not work out of the box.</source>
<translation>Le déploiement vers ce périphérique ne fonctionnera pas directement.</translation>
</message>
<message>
<source>%1...</source>

View File

@@ -874,16 +874,12 @@
<translation>Želiš li prihvatiti licencu za Android SDK?</translation>
</message>
<message>
<source>Checking pending licenses...
</source>
<translation>Provjera neriješenih licenca
</translation>
<source>Checking pending licenses...</source>
<translation>Provjera neriješenih licenca </translation>
</message>
<message>
<source>
SDK Manager is busy.</source>
<translation>
Upravljač za SDK je zauzet.</translation>
<source>SDK Manager is busy.</source>
<translation>Upravljač za SDK je zauzet.</translation>
</message>
<message>
<source>Android SDK Changes</source>
@@ -13630,9 +13626,7 @@ Do you want to uninstall the existing package?</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>License command failed.
</source>
<source>License command failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
@@ -13644,9 +13638,7 @@ Do you want to uninstall the existing package?</source>
<translation type="unfinished">Neuspjelo.</translation>
</message>
<message>
<source>Done
</source>
<source>Done</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@@ -1398,12 +1398,8 @@ Do you want to uninstall the existing package?</source>
<translation>Операция требует вмешательства пользователя. Используйте «sdkmanager» в командной строке.</translation>
</message>
<message>
<source>License command failed.
</source>
<translation>Команда License завершилась с ошибкой.
</translation>
<source>License command failed.</source>
<translation>Команда License завершилась с ошибкой.</translation>
</message>
<message>
<source>Android SDK Manager</source>
@@ -1446,16 +1442,12 @@ Do you want to uninstall the existing package?</source>
<translation>Принимаете условия лицензии Android SDK?</translation>
</message>
<message>
<source>Checking pending licenses...
</source>
<translation>Проверка ожидающих лицензий...
</translation>
<source>Checking pending licenses...</source>
<translation>Проверка ожидающих лицензий...</translation>
</message>
<message>
<source>
SDK Manager is busy.</source>
<translation>
SDK Manager занят.</translation>
<source>SDK Manager is busy.</source>
<translation>SDK Manager занят.</translation>
</message>
<message>
<source>Android SDK Changes</source>
@@ -2081,12 +2073,8 @@ To hide a sticky splash screen, invoke QtAndroid::hideSplashScreen().</source>
<translation>Ошибка.</translation>
</message>
<message>
<source>Done
</source>
<translation>Готово
</translation>
<source>Done</source>
<translation>Готово</translation>
</message>
<message>
<source>Installing</source>
@@ -40173,10 +40161,8 @@ If you do not have a private key yet, you can also create one here.</source>
</translation>
</message>
<message>
<source>Deployment to this device will not work out of the box.
</source>
<translation>Развёртывание на это устройство не работает «из коробки».
</translation>
<source>Deployment to this device will not work out of the box.</source>
<translation>Развёртывание на это устройство не работает «из коробки».</translation>
</message>
<message>
<source>rsync is functional.

View File

@@ -1460,12 +1460,8 @@ This cannot be undone.</source>
<translation>.</translation>
</message>
<message>
<source>Done
</source>
<translation>
</translation>
<source>Done</source>
<translation></translation>
</message>
<message>
<source>Installing</source>
@@ -1488,12 +1484,8 @@ This cannot be undone.</source>
<translation> SDK </translation>
</message>
<message>
<source>License command failed.
</source>
<translation>
</translation>
<source>License command failed.</source>
<translation></translation>
</message>
<message>
<source>Android SDK Manager</source>
@@ -1580,21 +1572,16 @@ Install them manually after the current operation is done.
<translation> SDK </translation>
</message>
<message>
<source>Checking pending licenses...
</source>
<translation>...
</translation>
<source>Checking pending licenses...</source>
<translation>...</translation>
</message>
<message>
<source>The installation of Android SDK packages may fail if the respective licenses are not accepted.
</source>
<source>The installation of Android SDK packages may fail if the respective licenses are not accepted.</source>
<translation> SDK </translation>
</message>
<message>
<source>
SDK Manager is busy.</source>
<translation>
SDK </translation>
<source>SDK Manager is busy.</source>
<translation>SDK </translation>
</message>
<message numerus="yes">
<source>%n Android SDK packages shall be updated.</source>
@@ -18093,8 +18080,7 @@ Rebuilding the project might help.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Running &quot;%1&quot;
</source>
<source>Running &quot;%1&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
@@ -39240,18 +39226,11 @@ Control process failed to start.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Failed to start &quot;%1&quot;: %2
</source>
<source>Failed to start &quot;%1&quot;: %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&quot;%1&quot; crashed.
</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&quot;%1&quot; failed with exit code %2: %3
</source>
<source>&quot;%1&quot; failed with exit code %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
@@ -39265,8 +39244,7 @@ Control process failed to start.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Deployment to this device will not work out of the box.
</source>
<source>Deployment to this device will not work out of the box.</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@@ -438,7 +438,7 @@ void AndroidSdkManagerPrivate::updateInstalled(SdkCmdPromise &promise)
if (result.stdError.isEmpty() && !result.success)
result.stdError = Tr::tr("Failed.");
result.stdOutput = Tr::tr("Done\n\n");
result.stdOutput = Tr::tr("Done") + "\n\n";
promise.addResult(result);
promise.setProgressValue(100);
}
@@ -468,8 +468,8 @@ void AndroidSdkManagerPrivate::update(SdkCmdPromise &fi, const QStringList &inst
currentProgress += progressQuota;
fi.setProgressValue(currentProgress);
if (result.stdError.isEmpty() && !result.success)
result.stdError = Tr::tr("AndroidSdkManager", "Failed");
result.stdOutput = Tr::tr("AndroidSdkManager", "Done\n\n");
result.stdError = Tr::tr("Failed");
result.stdOutput = Tr::tr("Done") + "\n\n";
fi.addResult(result);
return fi.isCanceled();
};
@@ -569,7 +569,7 @@ void AndroidSdkManagerPrivate::getPendingLicense(SdkCmdPromise &fi)
m_licenseTextCache.clear();
result.success = licenseCommand.exitStatus() == QProcess::NormalExit;
if (!result.success)
result.stdError = Tr::tr("License command failed.\n\n");
result.stdError = Tr::tr("License command failed.") + "\n\n";
fi.addResult(result);
fi.setProgressValue(100);
}

View File

@@ -290,9 +290,10 @@ void AndroidSdkManagerWidget::installEssentials()
void AndroidSdkManagerWidget::beginLicenseCheck()
{
m_formatter->appendMessage(Tr::tr("Checking pending licenses...\n"), NormalMessageFormat);
m_formatter->appendMessage(Tr::tr("Checking pending licenses...") + "\n", NormalMessageFormat);
m_formatter->appendMessage(Tr::tr("The installation of Android SDK packages may fail if the "
"respective licenses are not accepted.\n"),
"respective licenses are not accepted.")
+ "\n",
LogMessageFormat);
addPackageFuture(m_sdkManager->checkPendingLicenses());
}
@@ -302,7 +303,7 @@ void AndroidSdkManagerWidget::onApplyButton(const QString &extraMessage)
QTC_ASSERT(m_currentView == PackageListing, return);
if (m_sdkManager->isBusy()) {
m_formatter->appendMessage(Tr::tr("\nSDK Manager is busy."), StdErrFormat);
m_formatter->appendMessage("\n" + Tr::tr("SDK Manager is busy."), StdErrFormat);
return;
}
@@ -356,7 +357,7 @@ void AndroidSdkManagerWidget::onApplyButton(const QString &extraMessage)
void AndroidSdkManagerWidget::onUpdatePackages()
{
if (m_sdkManager->isBusy()) {
m_formatter->appendMessage(Tr::tr("\nSDK Manager is busy."), StdErrFormat);
m_formatter->appendMessage("\n" + Tr::tr("SDK Manager is busy."), StdErrFormat);
return;
}
switchView(Operations);

View File

@@ -1201,7 +1201,7 @@ public:
CommandLine cmd{settings().dockerBinaryPath(),
{"images", "--format", "{{.ID}}\\t{{.Repository}}\\t{{.Tag}}\\t{{.Size}}"}};
m_log->append(Tr::tr("Running \"%1\"\n").arg(cmd.toUserOutput()));
m_log->append(Tr::tr("Running \"%1\"").arg(cmd.toUserOutput()) + "\n");
m_process = new Process(this);
m_process->setCommand(cmd);

View File

@@ -188,12 +188,16 @@ GroupItem GenericLinuxDeviceTesterPrivate::transferTask(FileTransferMethod metho
const ProcessResultData resultData = transfer.resultData();
QString error;
if (resultData.m_error == QProcess::FailedToStart) {
error = Tr::tr("Failed to start \"%1\": %2\n").arg(methodName, resultData.m_errorString);
error = Tr::tr("Failed to start \"%1\": %2").arg(methodName, resultData.m_errorString)
+ "\n";
} else if (resultData.m_exitStatus == QProcess::CrashExit) {
error = Tr::tr("\"%1\" crashed.\n").arg(methodName);
error = Tr::tr("\"%1\" crashed.").arg(methodName) + "\n";
} else if (resultData.m_exitCode != 0) {
error = Tr::tr("\"%1\" failed with exit code %2: %3\n")
.arg(methodName).arg(resultData.m_exitCode).arg(resultData.m_errorString);
error = Tr::tr("\"%1\" failed with exit code %2: %3")
.arg(methodName)
.arg(resultData.m_exitCode)
.arg(resultData.m_errorString)
+ "\n";
}
emit q->errorMessage(error);
if (method == FileTransferMethod::Rsync)
@@ -209,8 +213,9 @@ GroupItem GenericLinuxDeviceTesterPrivate::transferTask(FileTransferMethod metho
const QString sftp = FileTransfer::transferMethodName(FileTransferMethod::Sftp);
const QString rsync = FileTransfer::transferMethodName(FileTransferMethod::Rsync);
emit q->progressMessage(Tr::tr("\"%1\" will be used for deployment, because \"%2\" "
"and \"%3\" are not available.\n")
.arg(generic, sftp, rsync));
"and \"%3\" are not available.")
.arg(generic, sftp, rsync)
+ "\n");
}
};
return FileTransferTestTask(setup, done, error);
@@ -219,16 +224,16 @@ GroupItem GenericLinuxDeviceTesterPrivate::transferTask(FileTransferMethod metho
GroupItem GenericLinuxDeviceTesterPrivate::transferTasks() const
{
TreeStorage<TransferStorage> storage;
return Group {
continueOnDone,
return Group{continueOnDone,
Tasking::Storage(storage),
transferTask(FileTransferMethod::GenericCopy, storage),
transferTask(FileTransferMethod::Sftp, storage),
transferTask(FileTransferMethod::Rsync, storage),
onGroupError([this] { emit q->errorMessage(Tr::tr("Deployment to this device will not "
"work out of the box.\n"));
})
};
onGroupError([this] {
emit q->errorMessage(Tr::tr("Deployment to this device will not "
"work out of the box.")
+ "\n");
})};
}
GroupItem GenericLinuxDeviceTesterPrivate::commandTask(const QString &commandName) const