Tr: Add missing full stops

Change-Id: I2debc56d0740eaa30c7d597eae18910f319c1d98
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Eike Ziller
2023-05-26 11:52:43 +02:00
parent f2c1455025
commit 6e7bb28f09
15 changed files with 92 additions and 91 deletions

View File

@@ -3,7 +3,7 @@
"supportedProjectTypes": [ "PythonProject" ], "supportedProjectTypes": [ "PythonProject" ],
"id": "F.QtForPythonApplicationWindowWidget", "id": "F.QtForPythonApplicationWindowWidget",
"category": "F.ApplicationPySide", "category": "F.ApplicationPySide",
"trDescription": "Creates a Qt for Python application that includes a Qt Designer-based widget (ui file) - Requires .ui to Python conversion", "trDescription": "Creates a Qt for Python application that includes a Qt Designer-based widget (ui file). Requires .ui to Python conversion.",
"trDisplayName": "Window UI", "trDisplayName": "Window UI",
"trDisplayCategory": "Application (Qt for Python)", "trDisplayCategory": "Application (Qt for Python)",
"icon": "../icons/icon.png", "icon": "../icons/icon.png",

View File

@@ -54,8 +54,8 @@
[ [
{ {
"name": "QdsProjectStyle", "name": "QdsProjectStyle",
"trDisplayName": "Create a project that you can open in Qt Design Studio", "trDisplayName": "Creates a project that you can open in Qt Design Studio.",
"trToolTip": "Create a project with a structure that is compatible both with Qt Design Studio (via .qmlproject) and with Qt Creator (via CMakeLists.txt). It contains a .ui.qml form that you can visually edit in Qt Design Studio.", "trToolTip": "Creates a project with a structure that is compatible both with Qt Design Studio (via .qmlproject) and with Qt Creator (via CMakeLists.txt). It contains a .ui.qml form that you can visually edit in Qt Design Studio.",
"type": "CheckBox", "type": "CheckBox",
"span": true, "span": true,
"persistenceKey": "QtQuick.QdsProjectStyle", "persistenceKey": "QtQuick.QdsProjectStyle",
@@ -77,7 +77,7 @@
}, },
{ {
"name": "MinimumSupportedQtVersion", "name": "MinimumSupportedQtVersion",
"trDisplayName": "The minimum version of Qt you want to build the application for", "trDisplayName": "The minimum version of Qt you want to build the application for.",
"type": "ComboBox", "type": "ComboBox",
"data": "data":
{ {

View File

@@ -7810,8 +7810,8 @@ Vil du dræbe den?</translation>
<translation>Patch-kommandoen konfigureret i de generelle &quot;Miljø&quot;-indstillinger findes ikke.</translation> <translation>Patch-kommandoen konfigureret i de generelle &quot;Miljø&quot;-indstillinger findes ikke.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Kører om &quot;%1&quot;: %2 %3</translation> <translation>Kører om &quot;%1&quot;: %2 %3.</translation>
</message> </message>
<message> <message>
<source>Unable to launch &quot;%1&quot;: %2</source> <source>Unable to launch &quot;%1&quot;: %2</source>
@@ -38022,8 +38022,8 @@ skal være et repository krævet SSH-autentifikation (se dokumentation på SSH o
<translation>Kører: %1 %2</translation> <translation>Kører: %1 %2</translation>
</message> </message>
<message> <message>
<source>Running in %1: %2 %3</source> <source>Running in %1: %2 %3.</source>
<translation>Kører om %1: %2 %3</translation> <translation>Kører om %1: %2 %3.</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -13396,20 +13396,20 @@ Möchten Sie den Pfad zu den Quelldateien in die Zwischenablage kopieren?</trans
<translation>CMake-Generator fehlgeschlagen: %1.</translation> <translation>CMake-Generator fehlgeschlagen: %1.</translation>
</message> </message>
<message> <message>
<source>Kit does not have a cmake binary set</source> <source>Kit does not have a cmake binary set.</source>
<translation>Das Kit hat keine ausführbare CMake-Datei gesetzt</translation> <translation>Das Kit hat keine ausführbare CMake-Datei gesetzt.</translation>
</message> </message>
<message> <message>
<source>Cannot create output directory &quot;%1&quot;</source> <source>Cannot create output directory &quot;%1&quot;.</source>
<translation>Das Ausgabeverzeichnis &quot;%1&quot; konnte nicht angelegt werden</translation> <translation>Das Ausgabeverzeichnis &quot;%1&quot; konnte nicht angelegt werden.</translation>
</message> </message>
<message> <message>
<source>No valid cmake executable</source> <source>No valid cmake executable.</source>
<translation>Keine gültige ausführbare CMake-Datei</translation> <translation>Keine gültige ausführbare CMake-Datei.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2</source> <source>Running in &quot;%1&quot;: %2.</source>
<translation>Führe in &quot;%1&quot; aus: %2</translation> <translation>Führe in &quot;%1&quot; aus: %2.</translation>
</message> </message>
<message> <message>
<source>&lt;No CMake Tool available&gt;</source> <source>&lt;No CMake Tool available&gt;</source>
@@ -16566,8 +16566,8 @@ Trotzdem fortfahren?</translation>
<translation>Das in den allgemeinen Umgebungseinstellungen konfigurierte patch-Kommando existiert nicht.</translation> <translation>Das in den allgemeinen Umgebungseinstellungen konfigurierte patch-Kommando existiert nicht.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Führe in &quot;%1&quot; aus: %2 %3</translation> <translation>Führe in &quot;%1&quot; aus: %2 %3.</translation>
</message> </message>
<message> <message>
<source>Unable to launch &quot;%1&quot;: %2</source> <source>Unable to launch &quot;%1&quot;: %2</source>
@@ -19001,8 +19001,8 @@ Doppelklicken Sie einen Eintrag um ihn zu ändern.</translation>
<translation>Ausgewählte Kategorien laden</translation> <translation>Ausgewählte Kategorien laden</translation>
</message> </message>
<message> <message>
<source>Failed to open preset file &quot;%1&quot; for reading</source> <source>Failed to open preset file &quot;%1&quot; for reading.</source>
<translation>Datei &quot;%1&quot; konnte nicht zum Lesen der Voreinstellung geöffnet werden</translation> <translation>Datei &quot;%1&quot; konnte nicht zum Lesen der Voreinstellung geöffnet werden.</translation>
</message> </message>
<message> <message>
<source>Failed to read preset file &quot;%1&quot;: %2</source> <source>Failed to read preset file &quot;%1&quot;: %2</source>
@@ -37953,7 +37953,7 @@ Wählt eine für Desktop-Entwicklung geeignete Qt-Version aus, sofern sie verfü
<translation>Leeres Fenster</translation> <translation>Leeres Fenster</translation>
</message> </message>
<message> <message>
<source>Creates a Qt for Python application that includes a Qt Designer-based widget (ui file) - Requires .ui to Python conversion</source> <source>Creates a Qt for Python application that includes a Qt Designer-based widget (ui file). Requires .ui to Python conversion.</source>
<translation>Erstellt eine Qt for Python-Anwendung, die ein Qt Designer-basiertes Widget (ui-Datei) enthält. Erfordert Umwandlung von .ui nach Python.</translation> <translation>Erstellt eine Qt for Python-Anwendung, die ein Qt Designer-basiertes Widget (ui-Datei) enthält. Erfordert Umwandlung von .ui nach Python.</translation>
</message> </message>
<message> <message>
@@ -38089,16 +38089,16 @@ Benutzen Sie dies nur für Prototypen. Sie können damit keine vollständige Anw
<translation>Nimble-Anwendung</translation> <translation>Nimble-Anwendung</translation>
</message> </message>
<message> <message>
<source>Create a project that you can open in Qt Design Studio</source> <source>Creates a project that you can open in Qt Design Studio.</source>
<translation>Erstellt ein Projekt, das in Qt Design Studio geöffnet werden kann</translation> <translation>Erstellt ein Projekt, das in Qt Design Studio geöffnet werden kann.</translation>
</message> </message>
<message> <message>
<source>Create a project with a structure that is compatible both with Qt Design Studio (via .qmlproject) and with Qt Creator (via CMakeLists.txt). It contains a .ui.qml form that you can visually edit in Qt Design Studio.</source> <source>Creates a project with a structure that is compatible both with Qt Design Studio (via .qmlproject) and with Qt Creator (via CMakeLists.txt). It contains a .ui.qml form that you can visually edit in Qt Design Studio.</source>
<translation>Erstellt ein Projekt mit einer Struktur, die sowohl mit Qt Design Studio (via qmlproject) als auch mit Qt Creator (via CMakeLists.txt) kompatibel ist. Es enthält ein .ui.qml-Formular, das in Qt Design Studio visuell bearbeitet werden kann.</translation> <translation>Erstellt ein Projekt mit einer Struktur, die sowohl mit Qt Design Studio (via qmlproject) als auch mit Qt Creator (via CMakeLists.txt) kompatibel ist. Es enthält ein .ui.qml-Formular, das in Qt Design Studio visuell bearbeitet werden kann.</translation>
</message> </message>
<message> <message>
<source>The minimum version of Qt you want to build the application for</source> <source>The minimum version of Qt you want to build the application for.</source>
<translation>Die niedrigste Qt-Version, die Sie zum Bauen der Anwendung benutzen wollen</translation> <translation>Die niedrigste Qt-Version, die Sie zum Bauen der Anwendung benutzen wollen.</translation>
</message> </message>
<message> <message>
<source>Creates a Qt Quick application that contains an empty window. Optionally, you can create a Qt Design Studio project.</source> <source>Creates a Qt Quick application that contains an empty window. Optionally, you can create a Qt Design Studio project.</source>
@@ -41535,12 +41535,12 @@ Weder der Pfad zur Bibliothek noch der Pfad zu den Headerdateien wird zur .pro-D
<translation>Kein qmake-Build-Schritt in der aktiven Build-Konfiguration</translation> <translation>Kein qmake-Build-Schritt in der aktiven Build-Konfiguration</translation>
</message> </message>
<message> <message>
<source>Cannot create output directory &quot;%1&quot;</source> <source>Cannot create output directory &quot;%1&quot;.</source>
<translation>Das Ausgabeverzeichnis &quot;%1&quot; konnte nicht angelegt werden</translation> <translation>Das Ausgabeverzeichnis &quot;%1&quot; konnte nicht angelegt werden.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2</source> <source>Running in &quot;%1&quot;: %2.</source>
<translation>Führe in &quot;%1&quot; aus: %2</translation> <translation>Führe in &quot;%1&quot; aus: %2.</translation>
</message> </message>
<message> <message>
<source>Build</source> <source>Build</source>
@@ -41993,8 +41993,8 @@ Für CMake-Projekte stellen Sie sicher, dass die Variable QML_IMPORT_PATH in CMa
<translation>Package-Import erfordert eine Versionsnummer</translation> <translation>Package-Import erfordert eine Versionsnummer</translation>
</message> </message>
<message> <message>
<source>Nested inline components are not supported</source> <source>Nested inline components are not supported.</source>
<translation>Verschachtelte Inline-Komponenten werden nicht unterstützt</translation> <translation>Verschachtelte Inline-Komponenten werden nicht unterstützt.</translation>
</message> </message>
<message> <message>
<source>Errors while loading qmltypes from %1: <source>Errors while loading qmltypes from %1:
@@ -51134,8 +51134,8 @@ Die Trace-Daten sind verloren.</translation>
<translation>Der Rückgabewert des Prozesses konnte nicht erhalten werden: %1</translation> <translation>Der Rückgabewert des Prozesses konnte nicht erhalten werden: %1</translation>
</message> </message>
<message> <message>
<source>copyFile is not implemented for &quot;%1&quot;</source> <source>copyFile is not implemented for &quot;%1&quot;.</source>
<translation>copyFile ist für &quot;%1&quot; nicht implementiert</translation> <translation>copyFile ist für &quot;%1&quot; nicht implementiert.</translation>
</message> </message>
<message> <message>
<source>Cannot copy from &quot;%1&quot;, it is not a directory.</source> <source>Cannot copy from &quot;%1&quot;, it is not a directory.</source>
@@ -51154,16 +51154,16 @@ Die Trace-Daten sind verloren.</translation>
<translation>Rekursives Kopieren von &quot;%1&quot; nach &quot;%2&quot; beim Auspacken des Tar-Archivs am Ziel fehlgeschlagen: %3</translation> <translation>Rekursives Kopieren von &quot;%1&quot; nach &quot;%2&quot; beim Auspacken des Tar-Archivs am Ziel fehlgeschlagen: %3</translation>
</message> </message>
<message> <message>
<source>fileContents is not implemented for &quot;%1&quot;</source> <source>fileContents is not implemented for &quot;%1&quot;.</source>
<translation>fileContents ist für &quot;%1&quot; nicht implementiert</translation> <translation>fileContents ist für &quot;%1&quot; nicht implementiert.</translation>
</message> </message>
<message> <message>
<source>writeFileContents is not implemented for &quot;%1&quot;</source> <source>writeFileContents is not implemented for &quot;%1&quot;.</source>
<translation>writeFileContents ist für &quot;%1&quot; nicht implementiert</translation> <translation>writeFileContents ist für &quot;%1&quot; nicht implementiert.</translation>
</message> </message>
<message> <message>
<source>createTempFile is not implemented for &quot;%1&quot;</source> <source>createTempFile is not implemented for &quot;%1&quot;.</source>
<translation>createTempFile ist für &quot;%1&quot; nicht implementiert</translation> <translation>createTempFile ist für &quot;%1&quot; nicht implementiert.</translation>
</message> </message>
<message> <message>
<source>Refusing to remove root directory.</source> <source>Refusing to remove root directory.</source>
@@ -51186,28 +51186,28 @@ Die Trace-Daten sind verloren.</translation>
<translation>Kopieren der Datei &quot;%1&quot; nach &quot;%2&quot; ist fehlgeschlagen.</translation> <translation>Kopieren der Datei &quot;%1&quot; nach &quot;%2&quot; ist fehlgeschlagen.</translation>
</message> </message>
<message> <message>
<source>File &quot;%1&quot; does not exist</source> <source>File &quot;%1&quot; does not exist.</source>
<translation>Datei &quot;%1&quot; existiert nicht</translation> <translation>Datei &quot;%1&quot; existiert nicht.</translation>
</message> </message>
<message> <message>
<source>Could not open File &quot;%1&quot;</source> <source>Could not open File &quot;%1&quot;.</source>
<translation>Die Datei &quot;%1&quot; konnte nicht geöffnet werden</translation> <translation>Die Datei &quot;%1&quot; konnte nicht geöffnet werden.</translation>
</message> </message>
<message> <message>
<source>Cannot read &quot;%1&quot;: %2</source> <source>Cannot read &quot;%1&quot;: %2</source>
<translation>&quot;%1&quot; kann nicht gelesen werden: %2</translation> <translation>&quot;%1&quot; kann nicht gelesen werden: %2</translation>
</message> </message>
<message> <message>
<source>Could not open file &quot;%1&quot; for writing</source> <source>Could not open file &quot;%1&quot; for writing.</source>
<translation>Die Datei &quot;%1&quot; konnte nicht zum Schreiben geöffnet werden</translation> <translation>Die Datei &quot;%1&quot; konnte nicht zum Schreiben geöffnet werden.</translation>
</message> </message>
<message> <message>
<source>Could not write to file &quot;%1&quot; (only %2 of %3 bytes written)</source> <source>Could not write to file &quot;%1&quot; (only %2 of %3 bytes written).</source>
<translation>Die Datei &quot;%1&quot; konnte nicht geschrieben werden (es wurden nur %2 von %3 Bytes geschrieben)</translation> <translation>Die Datei &quot;%1&quot; konnte nicht geschrieben werden (es wurden nur %2 von %3 Bytes geschrieben).</translation>
</message> </message>
<message> <message>
<source>Could not create temporary file in &quot;%1&quot; (%2)</source> <source>Could not create temporary file in &quot;%1&quot; (%2).</source>
<translation>Es konnte keine temporäre Datei in &quot;%1&quot; erstellt werden (%2)</translation> <translation>Es konnte keine temporäre Datei in &quot;%1&quot; erstellt werden (%2).</translation>
</message> </message>
<message> <message>
<source>Failed to copy file &quot;%1&quot; to &quot;%2&quot;: %3</source> <source>Failed to copy file &quot;%1&quot; to &quot;%2&quot;: %3</source>
@@ -51226,8 +51226,8 @@ Die Trace-Daten sind verloren.</translation>
<translation>Die temporäre Datei &quot;%1&quot; konnte nicht erstellt werden: %2</translation> <translation>Die temporäre Datei &quot;%1&quot; konnte nicht erstellt werden: %2</translation>
</message> </message>
<message> <message>
<source>Failed creating temporary file &quot;%1&quot; (too many tries)</source> <source>Failed creating temporary file &quot;%1&quot; (too many tries).</source>
<translation>Die temporäre Datei &quot;%1&quot; konnte nicht erstellt werden (zu viele Versuche)</translation> <translation>Die temporäre Datei &quot;%1&quot; konnte nicht erstellt werden (zu viele Versuche).</translation>
</message> </message>
<message> <message>
<source>Failed to create directory &quot;%1&quot;.</source> <source>Failed to create directory &quot;%1&quot;.</source>
@@ -53266,8 +53266,8 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch
<translation>Führe aus: %1</translation> <translation>Führe aus: %1</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2</source> <source>Running in &quot;%1&quot;: %2.</source>
<translation>Führe in &quot;%1&quot; aus: %2</translation> <translation>Führe in &quot;%1&quot; aus: %2.</translation>
</message> </message>
<message> <message>
<source>Failed to retrieve data.</source> <source>Failed to retrieve data.</source>

View File

@@ -18572,8 +18572,8 @@ Do you want to kill it?</source>
<translation>U općim postavkama za Okruženje konfigurirana zakrpna naredba ne postoji.</translation> <translation>U općim postavkama za Okruženje konfigurirana zakrpna naredba ne postoji.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Pokrenuto u &quot;%1&quot;: %2 %3</translation> <translation>Pokrenuto u &quot;%1&quot;: %2 %3.</translation>
</message> </message>
<message> <message>
<source>Unable to launch &quot;%1&quot;: %2</source> <source>Unable to launch &quot;%1&quot;: %2</source>
@@ -35830,8 +35830,8 @@ What do you want to do?</source>
<translation>Radi: %1 %2</translation> <translation>Radi: %1 %2</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Radi u &quot;%1&quot;: %2 %3</translation> <translation>Radi u &quot;%1&quot;: %2 %3.</translation>
</message> </message>
<message> <message>
<source>Name of the version control system in use by the current project.</source> <source>Name of the version control system in use by the current project.</source>

View File

@@ -9342,8 +9342,8 @@ will also disable the following plugins:
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Nested inline components are not supported</source> <source>Nested inline components are not supported.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>&apos;int&apos; or &apos;real&apos;</source> <source>&apos;int&apos; or &apos;real&apos;</source>

View File

@@ -28622,8 +28622,8 @@ Do you want to check them out now?</source>
<translation>Brak skonfigurowanej komendy &quot;patch&quot; w głównych ustawieniach środowiska.</translation> <translation>Brak skonfigurowanej komendy &quot;patch&quot; w głównych ustawieniach środowiska.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Uruchamianie w &quot;%1&quot;: %2 %3</translation> <translation>Uruchamianie w &quot;%1&quot;: %2 %3.</translation>
</message> </message>
<message> <message>
<source>Unable to launch &quot;%1&quot;: %2</source> <source>Unable to launch &quot;%1&quot;: %2</source>
@@ -31184,8 +31184,8 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan
<translation>Uruchamianie: %1 %2</translation> <translation>Uruchamianie: %1 %2</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Uruchamianie w &quot;%1&quot;: %2 %3</translation> <translation>Uruchamianie w &quot;%1&quot;: %2 %3.</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -10564,8 +10564,8 @@ Double-click to edit item.</source>
<translation>Команда patch, настроенная в общих настройках «Среды», отсутствует.</translation> <translation>Команда patch, настроенная в общих настройках «Среды», отсутствует.</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Выполняется в &quot;%1&quot;: %2 %3</translation> <translation>Выполняется в &quot;%1&quot;: %2 %3.</translation>
</message> </message>
<message> <message>
<source>Unable to launch &quot;%1&quot;: %2</source> <source>Unable to launch &quot;%1&quot;: %2</source>
@@ -47660,8 +47660,8 @@ What do you want to do?</source>
<translation>Исполнение: %1 %2</translation> <translation>Исполнение: %1 %2</translation>
</message> </message>
<message> <message>
<source>Running in &quot;%1&quot;: %2 %3</source> <source>Running in &quot;%1&quot;: %2 %3.</source>
<translation>Исполнение в &quot;%1&quot;: %2 %3</translation> <translation>Исполнение в &quot;%1&quot;: %2 %3.</translation>
</message> </message>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>

View File

@@ -326,7 +326,7 @@ bool Bind::visit(UiInlineComponent *ast)
if (!_currentComponentName.isEmpty()) { if (!_currentComponentName.isEmpty()) {
_currentComponentName += "."; _currentComponentName += ".";
_diagnosticMessages->append( _diagnosticMessages->append(
errorMessage(ast, Tr::tr("Nested inline components are not supported"))); errorMessage(ast, Tr::tr("Nested inline components are not supported.")));
} }
_currentComponentName += ast->name.toString(); _currentComponentName += ast->name.toString();
_rootObjectValue = nullptr; _rootObjectValue = nullptr;

View File

@@ -161,7 +161,7 @@ expected_str<void> DeviceFileAccess::copyFile(const FilePath &filePath, const Fi
Q_UNUSED(target) Q_UNUSED(target)
QTC_CHECK(false); QTC_CHECK(false);
return make_unexpected( return make_unexpected(
Tr::tr("copyFile is not implemented for \"%1\"").arg(filePath.toUserOutput())); Tr::tr("copyFile is not implemented for \"%1\".").arg(filePath.toUserOutput()));
} }
expected_str<void> copyRecursively_fallback(const FilePath &src, const FilePath &target) expected_str<void> copyRecursively_fallback(const FilePath &src, const FilePath &target)
@@ -305,7 +305,7 @@ expected_str<QByteArray> DeviceFileAccess::fileContents(const FilePath &filePath
Q_UNUSED(offset) Q_UNUSED(offset)
QTC_CHECK(false); QTC_CHECK(false);
return make_unexpected( return make_unexpected(
Tr::tr("fileContents is not implemented for \"%1\"").arg(filePath.toUserOutput())); Tr::tr("fileContents is not implemented for \"%1\".").arg(filePath.toUserOutput()));
} }
expected_str<qint64> DeviceFileAccess::writeFileContents(const FilePath &filePath, expected_str<qint64> DeviceFileAccess::writeFileContents(const FilePath &filePath,
@@ -317,7 +317,7 @@ expected_str<qint64> DeviceFileAccess::writeFileContents(const FilePath &filePat
Q_UNUSED(offset) Q_UNUSED(offset)
QTC_CHECK(false); QTC_CHECK(false);
return make_unexpected( return make_unexpected(
Tr::tr("writeFileContents is not implemented for \"%1\"").arg(filePath.toUserOutput())); Tr::tr("writeFileContents is not implemented for \"%1\".").arg(filePath.toUserOutput()));
} }
FilePathInfo DeviceFileAccess::filePathInfo(const FilePath &filePath) const FilePathInfo DeviceFileAccess::filePathInfo(const FilePath &filePath) const
@@ -382,8 +382,8 @@ expected_str<FilePath> DeviceFileAccess::createTempFile(const FilePath &filePath
{ {
Q_UNUSED(filePath) Q_UNUSED(filePath)
QTC_CHECK(false); QTC_CHECK(false);
return make_unexpected(Tr::tr("createTempFile is not implemented for \"%1\"") return make_unexpected(
.arg(filePath.toUserOutput())); Tr::tr("createTempFile is not implemented for \"%1\".").arg(filePath.toUserOutput()));
} }
@@ -658,10 +658,10 @@ expected_str<QByteArray> DesktopDeviceFileAccess::fileContents(const FilePath &f
const QString path = filePath.path(); const QString path = filePath.path();
QFile f(path); QFile f(path);
if (!f.exists()) if (!f.exists())
return make_unexpected(Tr::tr("File \"%1\" does not exist").arg(path)); return make_unexpected(Tr::tr("File \"%1\" does not exist.").arg(path));
if (!f.open(QFile::ReadOnly)) if (!f.open(QFile::ReadOnly))
return make_unexpected(Tr::tr("Could not open File \"%1\"").arg(path)); return make_unexpected(Tr::tr("Could not open File \"%1\".").arg(path));
if (offset != 0) if (offset != 0)
f.seek(offset); f.seek(offset);
@@ -686,14 +686,14 @@ expected_str<qint64> DesktopDeviceFileAccess::writeFileContents(const FilePath &
const bool isOpened = file.open(QFile::WriteOnly | QFile::Truncate); const bool isOpened = file.open(QFile::WriteOnly | QFile::Truncate);
if (!isOpened) if (!isOpened)
return make_unexpected( return make_unexpected(
Tr::tr("Could not open file \"%1\" for writing").arg(filePath.toUserOutput())); Tr::tr("Could not open file \"%1\" for writing.").arg(filePath.toUserOutput()));
if (offset != 0) if (offset != 0)
file.seek(offset); file.seek(offset);
qint64 res = file.write(data); qint64 res = file.write(data);
if (res != data.size()) if (res != data.size())
return make_unexpected( return make_unexpected(
Tr::tr("Could not write to file \"%1\" (only %2 of %3 bytes written)") Tr::tr("Could not write to file \"%1\" (only %2 of %3 bytes written).")
.arg(filePath.toUserOutput()) .arg(filePath.toUserOutput())
.arg(res) .arg(res)
.arg(data.size())); .arg(data.size()));
@@ -705,8 +705,9 @@ expected_str<FilePath> DesktopDeviceFileAccess::createTempFile(const FilePath &f
QTemporaryFile file(filePath.path()); QTemporaryFile file(filePath.path());
file.setAutoRemove(false); file.setAutoRemove(false);
if (!file.open()) { if (!file.open()) {
return make_unexpected(Tr::tr("Could not create temporary file in \"%1\" (%2)") return make_unexpected(Tr::tr("Could not create temporary file in \"%1\" (%2).")
.arg(filePath.toUserOutput()).arg(file.errorString())); .arg(filePath.toUserOutput())
.arg(file.errorString()));
} }
return filePath.withNewPath(file.fileName()); return filePath.withNewPath(file.fileName());
} }
@@ -1039,7 +1040,7 @@ expected_str<FilePath> UnixDeviceFileAccess::createTempFile(const FilePath &file
} }
newPath = filePath.withNewPath(tmplate); newPath = filePath.withNewPath(tmplate);
if (--maxTries == 0) { if (--maxTries == 0) {
return make_unexpected(Tr::tr("Failed creating temporary file \"%1\" (too many tries)") return make_unexpected(Tr::tr("Failed creating temporary file \"%1\" (too many tries).")
.arg(filePath.toUserOutput())); .arg(filePath.toUserOutput()));
} }
} while (newPath.exists()); } while (newPath.exists());

View File

@@ -1712,20 +1712,20 @@ void CMakeBuildSystem::runGenerator(Id id)
const CMakeTool * const cmakeTool const CMakeTool * const cmakeTool
= CMakeKitAspect::cmakeTool(buildConfiguration()->target()->kit()); = CMakeKitAspect::cmakeTool(buildConfiguration()->target()->kit());
if (!cmakeTool) { if (!cmakeTool) {
showError(Tr::tr("Kit does not have a cmake binary set")); showError(Tr::tr("Kit does not have a cmake binary set."));
return; return;
} }
const QString generator = id.toSetting().toString(); const QString generator = id.toSetting().toString();
const FilePath outDir = buildConfiguration()->buildDirectory() const FilePath outDir = buildConfiguration()->buildDirectory()
/ ("qtc_" + FileUtils::fileSystemFriendlyName(generator)); / ("qtc_" + FileUtils::fileSystemFriendlyName(generator));
if (!outDir.ensureWritableDir()) { if (!outDir.ensureWritableDir()) {
showError(Tr::tr("Cannot create output directory \"%1\"").arg(outDir.toString())); showError(Tr::tr("Cannot create output directory \"%1\".").arg(outDir.toString()));
return; return;
} }
CommandLine cmdLine(cmakeTool->cmakeExecutable(), {"-S", buildConfiguration()->target() CommandLine cmdLine(cmakeTool->cmakeExecutable(), {"-S", buildConfiguration()->target()
->project()->projectDirectory().toUserOutput(), "-G", generator}); ->project()->projectDirectory().toUserOutput(), "-G", generator});
if (!cmdLine.executable().isExecutableFile()) { if (!cmdLine.executable().isExecutableFile()) {
showError(Tr::tr("No valid cmake executable")); showError(Tr::tr("No valid cmake executable."));
return; return;
} }
const auto itemFilter = [](const CMakeConfigItem &item) { const auto itemFilter = [](const CMakeConfigItem &item) {
@@ -1762,8 +1762,8 @@ void CMakeBuildSystem::runGenerator(Id id)
proc->setWorkingDirectory(outDir); proc->setWorkingDirectory(outDir);
proc->setEnvironment(buildConfiguration()->environment()); proc->setEnvironment(buildConfiguration()->environment());
proc->setCommand(cmdLine); proc->setCommand(cmdLine);
Core::MessageManager::writeFlashing(Tr::tr("Running in %1: %2") Core::MessageManager::writeFlashing(
.arg(outDir.toUserOutput(), cmdLine.toUserOutput())); Tr::tr("Running in %1: %2.").arg(outDir.toUserOutput(), cmdLine.toUserOutput()));
proc->start(); proc->start();
} }

View File

@@ -656,7 +656,7 @@ void LoggingViewManagerWidget::loadAndUpdateFromPreset()
if (!contents) { if (!contents) {
QMessageBox::critical(ICore::dialogParent(), QMessageBox::critical(ICore::dialogParent(),
Tr::tr("Error"), Tr::tr("Error"),
Tr::tr("Failed to open preset file \"%1\" for reading") Tr::tr("Failed to open preset file \"%1\" for reading.")
.arg(fp.toUserOutput())); .arg(fp.toUserOutput()));
return; return;
} }

View File

@@ -94,7 +94,7 @@ static bool runPatchHelper(const QByteArray &input, const FilePath &workingDirec
args << "-R"; args << "-R";
args << "--binary"; args << "--binary";
MessageManager::writeDisrupting( MessageManager::writeDisrupting(
Tr::tr("Running in \"%1\": %2 %3") Tr::tr("Running in \"%1\": %2 %3.")
.arg(workingDirectory.toUserOutput(), patch.toUserOutput(), args.join(' '))); .arg(workingDirectory.toUserOutput(), patch.toUserOutput(), args.join(' ')));
patchProcess.setCommand({patch, args}); patchProcess.setCommand({patch, args});
patchProcess.setWriteData(input); patchProcess.setWriteData(input);

View File

@@ -1590,7 +1590,7 @@ void QmakeBuildSystem::runGenerator(Utils::Id id)
QTC_ASSERT(false, return); QTC_ASSERT(false, return);
} }
if (!outDir.ensureWritableDir()) { if (!outDir.ensureWritableDir()) {
showError(Tr::tr("Cannot create output directory \"%1\"").arg(outDir.toUserOutput())); showError(Tr::tr("Cannot create output directory \"%1\".").arg(outDir.toUserOutput()));
return; return;
} }
const auto proc = new Process(this); const auto proc = new Process(this);
@@ -1605,7 +1605,7 @@ void QmakeBuildSystem::runGenerator(Utils::Id id)
proc->setEnvironment(buildConfiguration()->environment()); proc->setEnvironment(buildConfiguration()->environment());
proc->setCommand(cmdLine); proc->setCommand(cmdLine);
Core::MessageManager::writeFlashing( Core::MessageManager::writeFlashing(
Tr::tr("Running in \"%1\": %2").arg(outDir.toUserOutput(), cmdLine.toUserOutput())); Tr::tr("Running in \"%1\": %2.").arg(outDir.toUserOutput(), cmdLine.toUserOutput()));
proc->start(); proc->start();
} }

View File

@@ -444,7 +444,7 @@ QString VcsOutputWindow::msgExecutionLogEntry(const FilePath &workingDir, const
+ ' ' + formatArguments(command.splitArguments()); + ' ' + formatArguments(command.splitArguments());
if (workingDir.isEmpty()) if (workingDir.isEmpty())
return Tr::tr("Running: %1").arg(maskedCmdline) + '\n'; return Tr::tr("Running: %1").arg(maskedCmdline) + '\n';
return Tr::tr("Running in \"%1\": %2").arg(workingDir.toUserOutput(), maskedCmdline) + '\n'; return Tr::tr("Running in \"%1\": %2.").arg(workingDir.toUserOutput(), maskedCmdline) + '\n';
} }
void VcsOutputWindow::appendShellCommandLine(const QString &text) void VcsOutputWindow::appendShellCommandLine(const QString &text)