Tr: Fix some source texts

Change-Id: I06458b177af2691a362368faed2b6bea3883a2f5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Jarek Kobus
2023-10-16 19:56:53 +02:00
parent aee3d93237
commit 5cb40870b1
5 changed files with 8 additions and 7 deletions

View File

@@ -1345,13 +1345,13 @@ expected_str<QString> DockManager::exportWorkspace(const QString &targetFilePath
// Check if the target directory exists
if (!targetFile.parentDir().exists())
return make_unexpected(
Tr::tr("Directory does not exist\"%1\".").arg(targetFile.parentDir().toUserOutput()));
Tr::tr("The directory \"%1\" does not exist.").arg(targetFile.parentDir().toUserOutput()));
// Check if the workspace exists
const FilePath workspaceFile = userDirectory().pathAppended(sourceFileName);
if (!workspaceFile.exists())
return make_unexpected(
Tr::tr("Workspace does not exist \"%1\"").arg(workspaceFile.toUserOutput()));
Tr::tr("The workspace \"%1\" does not exist ").arg(workspaceFile.toUserOutput()));
// Finally copy the workspace to the target
const expected_str<void> copyResult = workspaceFile.copyFile(targetFile);

View File

@@ -333,8 +333,9 @@ FilePaths VcsManager::promptToDelete(IVersionControl *vc, const FilePaths &fileP
return fp.toUserOutput();
}).join("</li><li>") + "</li></ul>";
const QString title = Tr::tr("Version Control");
const QString msg = Tr::tr("Remove the following files from the version control system (%2)? "
"%1Note: This might remove the local file.").arg(fileListForUi, vc->displayName());
const QString msg = Tr::tr("Remove the following files from the version control system (%1)?")
.arg(vc->displayName())
+ fileListForUi + Tr::tr("Note: This might remove the local file.");
const QMessageBox::StandardButton button =
QMessageBox::question(ICore::dialogParent(), title, msg, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
if (button != QMessageBox::Yes)