diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index 974ba86ece2..51f7bce0421 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -36922,8 +36922,8 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Styly kódování (*.xml);;Všechny soubory (*) - Cannot import code style from %1 - Nelze importovat styl kódování z %1 + Cannot import code style from "%1". + Nelze importovat styl kódování z "%1". Cannot import code style diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index 8749cb444f0..d6a61620fef 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -4456,8 +4456,8 @@ F.eks., vil "Revision: 15" efterlade grenen ved revision 15.*** cmake proces afsluttede med afslutningskode %1. - Target type: - Måltype: + Target type: + Måltype: No build artifacts @@ -16077,8 +16077,7 @@ Commit nu? - Cannot commit %n files: %1 - + Cannot commit %n files: %1 Kan ikke commit %n fil: %1 @@ -33328,8 +33327,8 @@ med en adgangskode, som du kan indtaste herunder. Kodestile (*.xml);;Alle filer (*) - Cannot import code style from %1 - Kan ikke importere kodestil fra %1 + Cannot import code style from "%1". + Kan ikke importere kodestil fra "%1". Export Code Style diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 08ba4937e90..fbf7a3e0a87 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -692,11 +692,11 @@ Möchten Sie den Pfad zu den Quelldateien in die Zwischenablage kopieren?CMake mit Änderungen der Konfiguration ausführen? - <b>CMake configuration failed<b><p>The backup of the previous configuration has been restored.</p><p>Issues and "Projects > Build" settings show more information about the failure.</p + <b>CMake configuration failed<b><p>The backup of the previous configuration has been restored.</p><p>Issues and "Projects > Build" settings show more information about the failure.</p> <b>CMake-Konfiguration ist fehlgeschlagen<b/><p>Das Backup der vorherigen Konfiguration wurde wiederhergestellt.</p><p>Details zu dem Problem finden Sie in "Probleme" und den Einstellungen in "Projekte > Erstellen".</p> - <b>Failed to load project<b><p>Issues and "Projects > Build" settings show more information about the failure.</p + <b>Failed to load project<b><p>Issues and "Projects > Build" settings show more information about the failure.</p> <b>Laden des Projekts fehlgeschlagen</b><p>Details zu dem Problem finden Sie in "Probleme" und den Einstellungen in "Projekte > Erstellen".</p> @@ -944,8 +944,8 @@ Möchten Sie den Pfad zu den Quelldateien in die Zwischenablage kopieren?CMake-Module - Target type: - Zieltyp: + Target type: + Zieltyp: No build artifacts @@ -1068,24 +1068,24 @@ Stellen Sie sicher, dass der Wert der CMAKE_BUILD_TYPE-Variable derselbe wie der CMake hat einen Fehlerwert zurückgegeben: %1 - Failed to rename %1 to %2. - Umbenennen von %1 nach %2 ist fehlgeschlagen. + Failed to rename "%1" to "%2". + Umbenennen von "%1" nach "%2" ist fehlgeschlagen. - Failed to copy %1 to %2. - Kopieren von %1 nach %2 ist fehlgeschlagen. + Failed to copy "%1" to "%2". + Kopieren von "%1" nach "%2" ist fehlgeschlagen. - Failed to read %1 file - Die Datei %1 konnte nicht gelesen werden + Failed to read file "%1". + Die Datei "%1" konnte nicht gelesen werden. - Invalid %1 file - Ungültige Datei %1 + Invalid file "%1". + Ungültige Datei "%1". - Invalid "version" in %1 file - Ungültige "version" in Datei %1 + Invalid "version" in file "%1". + Ungültige "version" in Datei "%1". Invalid "configurePresets" section in %1 file @@ -7374,8 +7374,7 @@ Jetzt Commit ausführen? Commit "%1" geändert. - Cannot commit %n files - + Cannot commit %n files Commit schlug für eine Datei fehl @@ -7488,8 +7487,8 @@ Jetzt Commit ausführen? branch - <a href="head">Show HEAD</a> - <a href="head">HEAD anzeigen</a> + Show HEAD + HEAD anzeigen Commit Information @@ -20898,8 +20897,8 @@ When disabled, moves targets straight to the current mouse position. Coding-Stile (*.xml);;Alle Dateien (*) - Cannot import code style from %1 - Der Coding-Stil kann nicht von %1 importiert werden + Cannot import code style from "%1". + Der Coding-Stil kann nicht von "%1" importiert werden. Export Code Style @@ -51141,8 +51140,7 @@ in "%2" aus. Vorverarbeitete Datei kann nicht angezeigt werden: %1 - %1, falling back to built-in preprocessor. - Explicitly not using a full stop at the end, because the value for %1 contains one + Falling back to built-in preprocessor: %1 Falle auf den integrierten Präprozessor zurück: %1 diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 6e76da811cc..626ec6c8ec4 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -35420,8 +35420,8 @@ Pour compiler l'observateur QML, allez à la page des versions de Qt, séle Styles de code (*.xml);;Tous les fichiers (*) - Cannot import code style from %1 - Impossible d'importer le style de code à partir de %1 + Cannot import code style from "%1". + Impossible d'importer le style de code à partir de "%1". Cannot import code style diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index 6900c8fa346..246e1c3e634 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -16654,7 +16654,7 @@ Kopirati stazu do izvornih datoteka u međuspremnik? CMake moduli - Target type: + Target type: Vrsta odredišta: @@ -23048,8 +23048,7 @@ Commit now? - Cannot commit %n files: %1 - + Cannot commit %n files: %1 @@ -33148,7 +33147,7 @@ Row: %4, Column: %5 - Cannot import code style from %1 + Cannot import code style from "%1". diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 673fa20182f..e7a901aaba8 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -19802,8 +19802,7 @@ Commit now? - Cannot commit %n files - + Cannot commit %n files %n 個のファイルをコミットできません @@ -29197,8 +29196,8 @@ In addition, device connectivity will be tested. コードスタイル (*.xml);;すべてのファイル (*) - Cannot import code style from %1 - %1 からコードスタイルをインポートできません + Cannot import code style from "%1". + "%1" からコードスタイルをインポートできません。 Export Code Style diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index 7f3516a8c0c..2edfb640ad6 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -5499,8 +5499,7 @@ Przebudowanie projektu może pomóc w ich odnalezieniu. - Cannot commit %n files: %1 - + Cannot commit %n files: %1 Nie można utworzyć poprawki ze zmian w %n pliku: %1 @@ -17814,8 +17813,8 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem. Style kodu (*.xml);;Wszystkie pliki (*) - Cannot import code style from %1 - Nie można zaimportować stylu kodu z %1 + Cannot import code style from "%1". + Nie można zaimportować stylu kodu z "%1". Export Code Style @@ -38667,8 +38666,8 @@ Błąd: %2 Moduły CMake - Target type: - Typ docelowy: + Target type: + Typ docelowy: No build artifacts diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index 902bc8e6e3f..25fdb326251 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -6028,8 +6028,8 @@ For example, "Revision: 15" will leave the branch at revision 15.<Заголовки> - Target type: - Тип цели: + Target type: + Тип цели: No build artifacts @@ -19732,8 +19732,7 @@ Commit now? - Cannot commit %n files: %1 - + Cannot commit %n files: %1 Не удалось фиксировать %n файл: %1 @@ -42694,8 +42693,8 @@ Row: %4, Column: %5 Стили кода (*.xml);;Все файлы (*) - Cannot import code style from %1 - Не удалось импортировать стиль кода из %1 + Cannot import code style from "%1". + Не удалось импортировать стиль кода из "%1". Export Code Style diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index 8095a783176..95025752c6c 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -18300,8 +18300,8 @@ with a password, which you can enter below. Стилі коду (*.xml);;Усі файли (*) - Cannot import code style from %1 - Неможливо імпортувати стиль коду з %1 + Cannot import code style from "%1". + Неможливо імпортувати стиль коду з "%1". Export Code Style diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index b337b72bf94..df11736d623 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -5772,11 +5772,11 @@ Copy the path to the source files to the clipboard? - <b>CMake configuration failed<b><p>The backup of the previous configuration has been restored.</p><p>Issues and "Projects > Build" settings show more information about the failure.</p + <b>CMake configuration failed<b><p>The backup of the previous configuration has been restored.</p><p>Issues and "Projects > Build" settings show more information about the failure.</p> - <b>Failed to load project<b><p>Issues and "Projects > Build" settings show more information about the failure.</p + <b>Failed to load project<b><p>Issues and "Projects > Build" settings show more information about the failure.</p> @@ -6056,7 +6056,7 @@ Copy the path to the source files to the clipboard? - Target type: + Target type: @@ -6383,23 +6383,23 @@ Make sure that CMAKE_BUILD_TYPE variable matches the "Build type" fiel - Failed to rename %1 to %2. + Failed to rename "%1" to "%2". - Failed to copy %1 to %2. + Failed to copy "%1" to "%2". - Failed to read %1 file + Failed to read file "%1". - Invalid %1 file + Invalid file "%1". - Invalid "version" in %1 file + Invalid "version" in file "%1". @@ -11320,7 +11320,7 @@ to version control (%2) - %1, falling back to built-in preprocessor. + Falling back to built-in preprocessor: %1 @@ -15717,7 +15717,7 @@ Install the "Qt Debug Information Files" Package from the Maintenance - Attempts to correct the location of a breakpoint based on file and line number shouldit be in a comment or in a line for which no code is generated. The correction is based on the code model. + Attempts to correct the location of a breakpoint based on file and line number should it be in a comment or in a line for which no code is generated. The correction is based on the code model. @@ -20760,8 +20760,7 @@ Commit now? - Cannot commit %n files - + Cannot commit %n files @@ -21236,7 +21235,7 @@ instead of its installation directory when run outside git bash. - <a href="head">Show HEAD</a> + Show HEAD diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 1be2da028e4..3be3bff0ebd 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -24112,7 +24112,7 @@ Remote error output was: %1 代碼風格 (*.xml);;所有檔案(*) - Cannot import code style from %1 + Cannot import code style from "%1". diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index 33d5cc67e5e..726414dafc3 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -491,9 +491,9 @@ void CMakeBuildSystem::combineScanAndParse(bool restoredFromBackup) project()->addIssue( CMakeProject::IssueType::Warning, Tr::tr("CMake configuration failed" - "

The backup of the previous configuration has been restored.

" - "

Issues and \"Projects > Build\" settings " - "show more information about the failure.The backup of the previous configuration has been restored.

" + "

Issues and \"Projects > Build\" settings " + "show more information about the failure.

")); m_reader.resetData(); @@ -506,11 +506,10 @@ void CMakeBuildSystem::combineScanAndParse(bool restoredFromBackup) } else { updateFallbackProjectData(); - project()->addIssue( - CMakeProject::IssueType::Warning, - Tr::tr("Failed to load project" - "

Issues and \"Projects > Build\" settings " - "show more information about the failure.addIssue(CMakeProject::IssueType::Warning, + Tr::tr("Failed to load project" + "

Issues and \"Projects > Build\" settings " + "show more information about the failure.

")); } } } diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp index 36016aa0c94..9c0d687ca6f 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp @@ -190,7 +190,7 @@ void CMakeTargetNode::build() void CMakeTargetNode::setTargetInformation(const QList &artifacts, const QString &type) { - m_tooltip = Tr::tr("Target type: ") + type + "
"; + m_tooltip = Tr::tr("Target type:") + " " + type + "
"; if (artifacts.isEmpty()) { m_tooltip += Tr::tr("No build artifacts"); } else { diff --git a/src/plugins/cmakeprojectmanager/fileapireader.cpp b/src/plugins/cmakeprojectmanager/fileapireader.cpp index 7bbe0aa5f7b..c6ee73d6abb 100644 --- a/src/plugins/cmakeprojectmanager/fileapireader.cpp +++ b/src/plugins/cmakeprojectmanager/fileapireader.cpp @@ -285,8 +285,8 @@ void FileApiReader::makeBackupConfiguration(bool store) replyPrev.removeRecursively(); QTC_CHECK(!replyPrev.exists()); if (!reply.renameFile(replyPrev)) - Core::MessageManager::writeFlashing(Tr::tr("Failed to rename %1 to %2.") - .arg(reply.toString(), replyPrev.toString())); + Core::MessageManager::writeFlashing(Tr::tr("Failed to rename \"%1\" to \"%2\".") + .arg(reply.toString(), replyPrev.toString())); } FilePath cmakeCacheTxt = m_parameters.buildDirectory.pathAppended("CMakeCache.txt"); @@ -296,9 +296,9 @@ void FileApiReader::makeBackupConfiguration(bool store) if (cmakeCacheTxt.exists()) if (!FileUtils::copyIfDifferent(cmakeCacheTxt, cmakeCacheTxtPrev)) - Core::MessageManager::writeFlashing(Tr::tr("Failed to copy %1 to %2.") - .arg(cmakeCacheTxt.toString(), cmakeCacheTxtPrev.toString())); - + Core::MessageManager::writeFlashing( + Tr::tr("Failed to copy \"%1\" to \"%2\".") + .arg(cmakeCacheTxt.toString(), cmakeCacheTxtPrev.toString())); } void FileApiReader::writeConfigurationIntoBuildDirectory(const QStringList &configurationArguments) diff --git a/src/plugins/cmakeprojectmanager/presetsparser.cpp b/src/plugins/cmakeprojectmanager/presetsparser.cpp index c803d8db990..8d1cc1610df 100644 --- a/src/plugins/cmakeprojectmanager/presetsparser.cpp +++ b/src/plugins/cmakeprojectmanager/presetsparser.cpp @@ -394,7 +394,7 @@ bool PresetsParser::parse(const Utils::FilePath &jsonFile, QString &errorMessage { const Utils::expected_str jsonContents = jsonFile.fileContents(); if (!jsonContents) { - errorMessage = Tr::tr("Failed to read %1 file").arg(jsonFile.fileName()); + errorMessage = Tr::tr("Failed to read file \"%1\".").arg(jsonFile.fileName()); return false; } @@ -410,14 +410,14 @@ bool PresetsParser::parse(const Utils::FilePath &jsonFile, QString &errorMessage } if (!jsonDoc.isObject()) { - errorMessage = Tr::tr( "Invalid %1 file").arg(jsonFile.fileName()); + errorMessage = Tr::tr("Invalid file \"%1\".").arg(jsonFile.fileName()); return false; } QJsonObject root = jsonDoc.object(); if (!parseVersion(root.value("version"), m_presetsData.version)) { - errorMessage = Tr::tr("Invalid \"version\" in %1 file").arg(jsonFile.fileName()); + errorMessage = Tr::tr("Invalid \"version\" in file \"%1\".").arg(jsonFile.fileName()); return false; } diff --git a/src/plugins/cppeditor/clangdiagnosticconfigswidget.cpp b/src/plugins/cppeditor/clangdiagnosticconfigswidget.cpp index 6ef459f1b69..f5fc8cfe425 100644 --- a/src/plugins/cppeditor/clangdiagnosticconfigswidget.cpp +++ b/src/plugins/cppeditor/clangdiagnosticconfigswidget.cpp @@ -370,7 +370,7 @@ void ClangDiagnosticConfigsWidget::updateValidityWidgets(const QString &errorMes m_infoLabel->setFilled(false); } else { m_infoLabel->setType(InfoLabel::Error); - m_infoLabel->setText(Tr::tr("%1").arg(errorMessage)); + m_infoLabel->setText(errorMessage); m_infoLabel->setFilled(true); } } diff --git a/src/plugins/cppeditor/cppmodelmanager.cpp b/src/plugins/cppeditor/cppmodelmanager.cpp index 9c7500a6c45..8fc44622ab2 100644 --- a/src/plugins/cppeditor/cppmodelmanager.cpp +++ b/src/plugins/cppeditor/cppmodelmanager.cpp @@ -354,8 +354,8 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit) .arg(reason)); }; static const auto showFallbackWarning = [](const QString &reason) { - Core::MessageManager::writeSilently(Tr::tr("%1, falling back to built-in preprocessor.") - .arg(reason)); + Core::MessageManager::writeSilently( + Tr::tr("Falling back to built-in preprocessor: %1").arg(reason)); }; static const auto saveAndOpen = [](const FilePath &filePath, const QByteArray &contents, bool inNextSplit) { diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 395ce703eca..e419449fe02 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -2862,7 +2862,7 @@ bool GitClient::addAndCommit(const FilePath &repositoryDirectory, GitPlugin::updateCurrentBranch(); return true; } - VcsOutputWindow::appendError(Tr::tr("Cannot commit %n files\n", nullptr, commitCount)); + VcsOutputWindow::appendError(Tr::tr("Cannot commit %n files", nullptr, commitCount) + "\n"); return false; } diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp index a19d6e8758a..65bc5beab41 100644 --- a/src/plugins/git/gitsubmiteditorwidget.cpp +++ b/src/plugins/git/gitsubmiteditorwidget.cpp @@ -40,7 +40,7 @@ public: repositoryLabel = new QLabel(Tr::tr("repository")); branchLabel = new QLabel(Tr::tr("branch")); // FIXME: Isn't this overwritten soon? - showHeadLabel = new QLabel(Tr::tr("Show HEAD")); // FIXME: Simplify string in tr() + showHeadLabel = new QLabel("" + Tr::tr("Show HEAD") + ""); authorLineEdit = new QLineEdit; authorLineEdit->setObjectName("authorLineEdit"); diff --git a/src/plugins/macros/macrooptionswidget.cpp b/src/plugins/macros/macrooptionswidget.cpp index 3b02d93a80c..c6a94d44980 100644 --- a/src/plugins/macros/macrooptionswidget.cpp +++ b/src/plugins/macros/macrooptionswidget.cpp @@ -41,7 +41,7 @@ MacroOptionsWidget::MacroOptionsWidget() m_treeWidget->header()->setSortIndicatorShown(true); m_treeWidget->header()->setStretchLastSection(true); m_treeWidget->header()->setSortIndicator(0, Qt::AscendingOrder); - m_treeWidget->setHeaderLabels({Tr::tr("Name"), Tr::tr("Description)"), Tr::tr("Shortcut")}); + m_treeWidget->setHeaderLabels({Tr::tr("Name"), Tr::tr("Description"), Tr::tr("Shortcut")}); m_description = new QLineEdit; diff --git a/src/plugins/texteditor/codestyleselectorwidget.cpp b/src/plugins/texteditor/codestyleselectorwidget.cpp index 6e53b07cd37..56b8ca4c055 100644 --- a/src/plugins/texteditor/codestyleselectorwidget.cpp +++ b/src/plugins/texteditor/codestyleselectorwidget.cpp @@ -209,7 +209,7 @@ void CodeStyleSelectorWidget::slotImportClicked() else QMessageBox::warning(this, Tr::tr("Import Code Style"), - Tr::tr("Cannot import code style from %1") + Tr::tr("Cannot import code style from \"%1\".") .arg(fileName.toUserOutput())); } }