diff options
author | Eike Ziller <eike.ziller@qt.io> | 2023-05-26 11:29:50 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2023-05-26 13:50:07 +0000 |
commit | f2c1455025805b013587c01007ce18247e909182 (patch) | |
tree | 30061199a42d9d2674e69e5d20dff3fb4a38c3bb | |
parent | b7f814372823df1d5de49207ab0346bad460bf9d (diff) |
Tr: Wrap file paths with ""
Change-Id: Iee0e941ff503ff485e8e9c0d9fe3e52eea9042d5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
24 files changed, 103 insertions, 109 deletions
diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index c96e36d85bb..1e867abbcbd 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -10547,8 +10547,8 @@ přidat do správy verzí (%2)?</translation> <translation>Při ukládání sezení se vyskytla chyba</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Sezení se nepodařilo uložit do souboru %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Sezení se nepodařilo uložit do souboru "%1"</translation> </message> <message> <source>Untitled</source> diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index 210c99ebbb6..1a285e8c8ad 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -7810,8 +7810,8 @@ Vil du dræbe den?</translation> <translation>Patch-kommandoen konfigureret i de generelle "Miljø"-indstillinger findes ikke.</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Kører om %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Kører om "%1": %2 %3</translation> </message> <message> <source>Unable to launch "%1": %2</source> @@ -24940,8 +24940,8 @@ Disse filer bevares.</numerusform> <translation>Fejl ved gemning af session</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Kunne ikke gemme session til filen %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Kunne ikke gemme session til filen "%1"</translation> </message> <message> <source>Untitled</source> diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 28c1cfb917e..9b29bb1bf08 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -13043,8 +13043,8 @@ Zum Beispiel bewirkt die Angabe "Revision: 15" dass der Branch auf Rev <translation>%1 konnte nicht geladen werden: %2</translation> </message> <message> - <source>Attempt to include %1 which was already parsed.</source> - <translation>Versuch, die Datei %1 einzufügen, welche schon ausgewertet wurde.</translation> + <source>Attempt to include "%1" which was already parsed.</source> + <translation>Versuch, die Datei "%1" einzufügen, welche schon ausgewertet wurde.</translation> </message> <message> <source>yes</source> @@ -13408,8 +13408,8 @@ Möchten Sie den Pfad zu den Quelldateien in die Zwischenablage kopieren?</trans <translation>Keine gültige ausführbare CMake-Datei</translation> </message> <message> - <source>Running in %1: %2</source> - <translation>Führe in %1 aus: %2</translation> + <source>Running in "%1": %2</source> + <translation>Führe in "%1" aus: %2</translation> </message> <message> <source><No CMake Tool available></source> @@ -16566,8 +16566,8 @@ Trotzdem fortfahren?</translation> <translation>Das in den allgemeinen Umgebungseinstellungen konfigurierte patch-Kommando existiert nicht.</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Führe in %1 aus: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Führe in "%1" aus: %2 %3</translation> </message> <message> <source>Unable to launch "%1": %2</source> @@ -20465,8 +20465,8 @@ Dies ist normalerweise nicht empfehlenswert, da die Datei wahrscheinlich währen <translation>Möchten Sie stattdessen "%1" bearbeiten?</translation> </message> <message> - <source>Open %1</source> - <translation>%1 öffnen</translation> + <source>Open "%1"</source> + <translation>"%1" öffnen</translation> </message> <message> <source>&Refactor</source> @@ -35824,8 +35824,8 @@ Rename %2 to %3 anyway?</source> <translation>Fehler beim Speichern der Sitzung</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Die Sitzung konnte nicht unter %1 gespeichert werden</translation> + <source>Could not save session to file "%1"</source> + <translation>Die Sitzung konnte nicht unter "%1" gespeichert werden</translation> </message> <message> <source>Untitled</source> @@ -40167,12 +40167,12 @@ fails because Clang does not understand the target architecture.</source> <translation>Ausführbare Datei ist leer.</translation> </message> <message> - <source>%1 does not exist.</source> - <translation>%1 existiert nicht.</translation> + <source>"%1" does not exist.</source> + <translation>"%1" existiert nicht.</translation> </message> <message> - <source>%1 is not an executable file.</source> - <translation>%1 ist keine ausführbare Datei.</translation> + <source>"%1" is not an executable file.</source> + <translation>"%1" ist keine ausführbare Datei.</translation> </message> <message> <source>&Add</source> @@ -41539,8 +41539,8 @@ Weder der Pfad zur Bibliothek noch der Pfad zu den Headerdateien wird zur .pro-D <translation>Das Ausgabeverzeichnis "%1" konnte nicht angelegt werden</translation> </message> <message> - <source>Running in %1: %2</source> - <translation>Führe in %1 aus: %2</translation> + <source>Running in "%1": %2</source> + <translation>Führe in "%1" aus: %2</translation> </message> <message> <source>Build</source> @@ -51138,12 +51138,12 @@ Die Trace-Daten sind verloren.</translation> <translation>copyFile ist für "%1" nicht implementiert</translation> </message> <message> - <source>Cannot copy from %1, it is not a directory.</source> - <translation>%1 kann nicht kopiert werden, da es kein Verzeichnis ist.</translation> + <source>Cannot copy from "%1", it is not a directory.</source> + <translation>"%1" kann nicht kopiert werden, da es kein Verzeichnis ist.</translation> </message> <message> - <source>Cannot copy %1 to %2, it is not a writable directory.</source> - <translation>%1 kann nicht nach %2 kopiert werden, da es kein schreibbares Verzeichnis ist.</translation> + <source>Cannot copy "%1" to "%2", it is not a writable directory.</source> + <translation>"%1" kann nicht nach "%2" kopiert werden, da es kein schreibbares Verzeichnis ist.</translation> </message> <message> <source>Failed to copy recursively from "%1" to "%2" while trying to create tar archive from source: %3</source> @@ -51254,14 +51254,12 @@ Die Trace-Daten sind verloren.</translation> <translation>Arbeitsbereiche löschen</translation> </message> <message> - <source>Delete workspace %1?</source> - <translation>Arbeitsbereich %1 löschen?</translation> + <source>Delete workspace "%1"?</source> + <translation>Arbeitsbereich "%1" löschen?</translation> </message> <message> - <source>Delete these workspaces? - %1</source> - <translation>Diese Arbeitsbereiche löschen? - %1</translation> + <source>Delete these workspaces?</source> + <translation>Diese Arbeitsbereiche löschen?</translation> </message> <message> <source>File Error</source> @@ -53268,8 +53266,8 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch <translation>Führe aus: %1</translation> </message> <message> - <source>Running in %1: %2</source> - <translation>Führe in %1 aus: %2</translation> + <source>Running in "%1": %2</source> + <translation>Führe in "%1" aus: %2</translation> </message> <message> <source>Failed to retrieve data.</source> diff --git a/share/qtcreator/translations/qtcreator_es.ts b/share/qtcreator/translations/qtcreator_es.ts index ff32f1a64cb..a4dc26ed74f 100644 --- a/share/qtcreator/translations/qtcreator_es.ts +++ b/share/qtcreator/translations/qtcreator_es.ts @@ -7179,8 +7179,8 @@ al control de versiones (%2)?</translation> <translation>Error guardando sesión</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>No se pudo guardar la sesion al archivo %1</translation> + <source>Could not save session to file "%1"</source> + <translation>No se pudo guardar la sesion al archivo "%1"</translation> </message> <message> <source>Qt Creator</source> diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 48fa7edbe0d..142772f5ca3 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -10837,8 +10837,8 @@ au système de gestion de version (%2) ?</translation> <translation>Erreur lors de l'enregistrement de la session</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Impossible d'enregistrer la session dans le fichier %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Impossible d'enregistrer la session dans le fichier "%1"</translation> </message> <message> <source>Untitled</source> diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index 386c4d14929..228e7cae1cb 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -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> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Pokrenuto u %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Pokrenuto u "%1": %2 %3</translation> </message> <message> <source>Unable to launch "%1": %2</source> @@ -35830,8 +35830,8 @@ What do you want to do?</source> <translation>Radi: %1 %2</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Radi u %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Radi u "%1": %2 %3</translation> </message> <message> <source>Name of the version control system in use by the current project.</source> diff --git a/share/qtcreator/translations/qtcreator_hu.ts b/share/qtcreator/translations/qtcreator_hu.ts index ad58a02fa31..843d55c8525 100644 --- a/share/qtcreator/translations/qtcreator_hu.ts +++ b/share/qtcreator/translations/qtcreator_hu.ts @@ -11592,8 +11592,8 @@ a verziókövetőhöz (%2)?</translation> <translation>Hiba történt a szakasz mentése közben</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Nem sikerült a szakasz %1 fájlba mentése</translation> + <source>Could not save session to file "%1"</source> + <translation>Nem sikerült a szakasz "%1" fájlba mentése</translation> </message> <message> <source>Qt Creator</source> diff --git a/share/qtcreator/translations/qtcreator_it.ts b/share/qtcreator/translations/qtcreator_it.ts index ccd8832a98b..8e092a00d77 100644 --- a/share/qtcreator/translations/qtcreator_it.ts +++ b/share/qtcreator/translations/qtcreator_it.ts @@ -7033,8 +7033,8 @@ al VCS (%2)?</translation> <translation>Errore durante il salvataggio della sessione</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Impossibile salvare la sessione sul file %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Impossibile salvare la sessione sul file "%1"</translation> </message> <message> <source>Qt Creator</source> diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 6014b49996a..b89f6284987 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -24418,8 +24418,8 @@ to project "%2".</source> <translation>セッション %1 を保存できませんでした</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>セッション %1 を保存できません</translation> + <source>Could not save session to file "%1"</source> + <translation>セッション "%1" を保存できません</translation> </message> <message> <source>Untitled</source> @@ -42568,14 +42568,12 @@ Output: <translation>ワークスペースを削除する</translation> </message> <message> - <source>Delete workspace %1?</source> - <translation>ワークスペース %1 を削除しますか?</translation> + <source>Delete workspace "%1"?</source> + <translation>ワークスペース "%1" を削除しますか?</translation> </message> <message> - <source>Delete these workspaces? - %1</source> - <translation>これらのワークスペースを削除しますか? - %1</translation> + <source>Delete these workspaces?</source> + <translation>これらのワークスペースを削除しますか?</translation> </message> <message> <source>Cannot Restore Workspace</source> diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index be632f066de..8561c509630 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -7967,8 +7967,8 @@ do projektu "%2".</translation> <translation>Błąd podczas zachowywania sesji</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Nie można zachować sesji w pliku %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Nie można zachować sesji w pliku "%1"</translation> </message> <message> <source>Untitled</source> @@ -28622,8 +28622,8 @@ Do you want to check them out now?</source> <translation>Brak skonfigurowanej komendy "patch" w głównych ustawieniach środowiska.</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Uruchamianie w %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Uruchamianie w "%1": %2 %3</translation> </message> <message> <source>Unable to launch "%1": %2</source> @@ -31184,8 +31184,8 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan <translation>Uruchamianie: %1 %2</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Uruchamianie w %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Uruchamianie w "%1": %2 %3</translation> </message> </context> <context> diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index f6c71e9dcfd..19b76c17def 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -32,14 +32,12 @@ <translation>Удалить сессии</translation> </message> <message> - <source>Delete workspace %1?</source> - <translation>Удалить сессию %1?</translation> + <source>Delete workspace "%1"?</source> + <translation>Удалить сессию "%1"?</translation> </message> <message> - <source>Delete these workspaces? - %1</source> - <translation>Удалить следующие сессии? - %1</translation> + <source>Delete these workspaces?</source> + <translation>Удалить следующие сессии?</translation> </message> <message> <source>Cannot Restore Workspace</source> @@ -10566,8 +10564,8 @@ Double-click to edit item.</source> <translation>Команда patch, настроенная в общих настройках «Среды», отсутствует.</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Выполняется в %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Выполняется в "%1": %2 %3</translation> </message> <message> <source>Unable to launch "%1": %2</source> @@ -32162,8 +32160,8 @@ These files are preserved.</source> <translation>Ошибка при сохранении сессии</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Не удалось сохранить сессию %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Не удалось сохранить сессию "%1"</translation> </message> <message> <source>Untitled</source> @@ -47662,8 +47660,8 @@ What do you want to do?</source> <translation>Исполнение: %1 %2</translation> </message> <message> - <source>Running in %1: %2 %3</source> - <translation>Исполнение в %1: %2 %3</translation> + <source>Running in "%1": %2 %3</source> + <translation>Исполнение в "%1": %2 %3</translation> </message> <message> <source>&Undo</source> diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index 462ed14e8af..480193e4525 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -7426,8 +7426,8 @@ v sistem za nadzor različic (%2)?</translation> <translation>Napaka med shranjevanjem seje</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Ni bilo moč shraniti seje v datoteko %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Ni bilo moč shraniti seje v datoteko "%1"</translation> </message> <message> <source>Untitled</source> diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index c50e8d22385..f49ae08943f 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -14143,8 +14143,8 @@ Reason: %2</source> <translation>Помилка при збереженні сесії</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>Не вдалось зберегти сесію до файлу %1</translation> + <source>Could not save session to file "%1"</source> + <translation>Не вдалось зберегти сесію до файлу "%1"</translation> </message> <message> <source>Untitled</source> diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index b1e219464c2..4f079bcccb0 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -32,14 +32,12 @@ <translation>删除工作区</translation> </message> <message> - <source>Delete workspace %1?</source> - <translation>删除 %1 工作区?</translation> + <source>Delete workspace "%1"?</source> + <translation>删除 "%1" 工作区?</translation> </message> <message> - <source>Delete these workspaces? - %1</source> - <translation>删除这些工作区? - %1</translation> + <source>Delete these workspaces?</source> + <translation>删除这些工作区?</translation> </message> <message> <source>Cannot Restore Workspace</source> @@ -30031,8 +30029,8 @@ These files are preserved.</source> <translation>保存会话时发生错误</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>无法将会话保存到文件 %1 </translation> + <source>Could not save session to file "%1"</source> + <translation>无法将会话保存到文件 "%1" </translation> </message> <message> <source>Untitled</source> diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 7f39bb619d1..7e1ff707a67 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -7218,8 +7218,8 @@ to version control (%2)?</source> <translation>儲存工作階段時發生錯誤</translation> </message> <message> - <source>Could not save session to file %1</source> - <translation>無法儲存工作階段至檔案 %1 </translation> + <source>Could not save session to file "%1"</source> + <translation>無法儲存工作階段至檔案 "%1" </translation> </message> <message> <source>Untitled</source> diff --git a/src/libs/advanceddockingsystem/workspaceview.cpp b/src/libs/advanceddockingsystem/workspaceview.cpp index bab54e5e927..1b4cfc7e270 100644 --- a/src/libs/advanceddockingsystem/workspaceview.cpp +++ b/src/libs/advanceddockingsystem/workspaceview.cpp @@ -325,10 +325,10 @@ bool WorkspaceView::confirmWorkspaceDelete(const QStringList &fileNames) { const QString title = fileNames.size() == 1 ? Tr::tr("Delete Workspace") : Tr::tr("Delete Workspaces"); - const QString question - = fileNames.size() == 1 - ? Tr::tr("Delete workspace %1?").arg(fileNames.first()) - : Tr::tr("Delete these workspaces?\n %1").arg(fileNames.join("\n ")); + const QString question = fileNames.size() == 1 + ? Tr::tr("Delete workspace \"%1\"?").arg(fileNames.first()) + : Tr::tr("Delete these workspaces?") + + QString("\n %1").arg(fileNames.join("\n ")); return QMessageBox::question(parentWidget(), title, question, QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes; } diff --git a/src/libs/utils/devicefileaccess.cpp b/src/libs/utils/devicefileaccess.cpp index a29c5bb9be6..ef6640d8a21 100644 --- a/src/libs/utils/devicefileaccess.cpp +++ b/src/libs/utils/devicefileaccess.cpp @@ -197,15 +197,15 @@ expected_str<void> DeviceFileAccess::copyRecursively(const FilePath &src, const FilePath &target) const { if (!src.isDir()) { - return make_unexpected(Tr::tr("Cannot copy from %1, it is not a directory.") - .arg(src.toUserOutput()) - .arg(target.toUserOutput())); + return make_unexpected( + Tr::tr("Cannot copy from \"%1\", it is not a directory.").arg(src.toUserOutput())); } if (!target.ensureWritableDir()) { - return make_unexpected(Tr::tr("Cannot copy %1 to %2, it is not a writable directory.") - .arg(src.toUserOutput()) - .arg(target.toUserOutput())); + return make_unexpected( + Tr::tr("Cannot copy \"%1\" to \"%2\", it is not a writable directory.") + .arg(src.toUserOutput()) + .arg(target.toUserOutput())); } #ifdef UTILS_STATIC_LIBRARY diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 610fd86ec29..78b6449a7a9 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -238,7 +238,7 @@ void CMakeProject::readPresets() if (includeStack.contains(includePath)) { TaskHub::addTask(BuildSystemTask( Task::TaskType::Warning, - Tr::tr("Attempt to include %1 which was already parsed.") + Tr::tr("Attempt to include \"%1\" which was already parsed.") .arg(includePath.path()), Utils::FilePath(), -1)); diff --git a/src/plugins/coreplugin/patchtool.cpp b/src/plugins/coreplugin/patchtool.cpp index af6c11825d4..d5450259809 100644 --- a/src/plugins/coreplugin/patchtool.cpp +++ b/src/plugins/coreplugin/patchtool.cpp @@ -93,7 +93,8 @@ static bool runPatchHelper(const QByteArray &input, const FilePath &workingDirec if (patchAction == PatchAction::Revert) args << "-R"; args << "--binary"; - MessageManager::writeDisrupting(Tr::tr("Running in %1: %2 %3") + MessageManager::writeDisrupting( + Tr::tr("Running in \"%1\": %2 %3") .arg(workingDirectory.toUserOutput(), patch.toUserOutput(), args.join(' '))); patchProcess.setCommand({patch, args}); patchProcess.setWriteData(input); diff --git a/src/plugins/coreplugin/session.cpp b/src/plugins/coreplugin/session.cpp index d6ccc4ca716..50873c385c6 100644 --- a/src/plugins/coreplugin/session.cpp +++ b/src/plugins/coreplugin/session.cpp @@ -720,7 +720,7 @@ bool SessionManager::saveSession() } else { QMessageBox::warning(ICore::dialogParent(), PE::Tr::tr("Error while saving session"), - PE::Tr::tr("Could not save session to file %1") + PE::Tr::tr("Could not save session to file \"%1\"") .arg(sb_d->m_writer->fileName().toUserOutput())); } diff --git a/src/plugins/cppeditor/cppeditorwidget.cpp b/src/plugins/cppeditor/cppeditorwidget.cpp index 96f97feea3b..edc65f76526 100644 --- a/src/plugins/cppeditor/cppeditorwidget.cpp +++ b/src/plugins/cppeditor/cppeditorwidget.cpp @@ -780,11 +780,11 @@ void CppEditorWidget::showRenameWarningIfFileIsGenerated(const Utils::FilePath & static const Id infoId("cppeditor.renameWarning"); InfoBarEntry info(infoId, warning); if (ec) { - info.addCustomButton(CppEditor::Tr::tr("Open %1").arg(ec->source().fileName()), - [source = ec->source()] { - EditorManager::openEditor(source); - ICore::infoBar()->removeInfo(infoId); - }); + info.addCustomButton(CppEditor::Tr::tr("Open \"%1\"").arg(ec->source().fileName()), + [source = ec->source()] { + EditorManager::openEditor(source); + ICore::infoBar()->removeInfo(infoId); + }); } ICore::infoBar()->addInfo(info); return; diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index 0a6abe2e043..1de24a3061c 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -171,9 +171,10 @@ InterpreterOptionsWidget::InterpreterOptionsWidget() if (interpreter.command.isEmpty()) return Tr::tr("Executable is empty."); if (!interpreter.command.exists()) - return Tr::tr("%1 does not exist.").arg(interpreter.command.toUserOutput()); + return Tr::tr("\"%1\" does not exist.").arg(interpreter.command.toUserOutput()); if (!interpreter.command.isExecutableFile()) - return Tr::tr("%1 is not an executable file.").arg(interpreter.command.toUserOutput()); + return Tr::tr("\"%1\" is not an executable file.") + .arg(interpreter.command.toUserOutput()); break; case Qt::DecorationRole: if (column == 0 && !interpreter.command.isExecutableFile()) diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index 2b73c154f6d..c4c76017d44 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -1604,8 +1604,8 @@ void QmakeBuildSystem::runGenerator(Utils::Id id) proc->setWorkingDirectory(outDir); proc->setEnvironment(buildConfiguration()->environment()); proc->setCommand(cmdLine); - Core::MessageManager::writeFlashing(Tr::tr("Running in %1: %2") - .arg(outDir.toUserOutput(), cmdLine.toUserOutput())); + Core::MessageManager::writeFlashing( + Tr::tr("Running in \"%1\": %2").arg(outDir.toUserOutput(), cmdLine.toUserOutput())); proc->start(); } diff --git a/src/plugins/vcsbase/vcsoutputwindow.cpp b/src/plugins/vcsbase/vcsoutputwindow.cpp index 2b5536809f8..4908e90498c 100644 --- a/src/plugins/vcsbase/vcsoutputwindow.cpp +++ b/src/plugins/vcsbase/vcsoutputwindow.cpp @@ -444,7 +444,7 @@ QString VcsOutputWindow::msgExecutionLogEntry(const FilePath &workingDir, const + ' ' + formatArguments(command.splitArguments()); if (workingDir.isEmpty()) 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) |