forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
@@ -340,7 +340,7 @@ IAssistProposal *ClangdFollowSymbol::VirtualFunctionAssistProcessor::createPropo
|
||||
items << createEntry({}, m_followSymbol->d->defLink);
|
||||
if (!final) {
|
||||
const auto infoItem = new VirtualFunctionProposalItem({}, false);
|
||||
infoItem->setText(Tr::tr("collecting overrides ..."));
|
||||
infoItem->setText(Tr::tr("collecting overrides..."));
|
||||
infoItem->setOrder(-1);
|
||||
items << infoItem;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
QTC_ASSERT(m_params.function, return nullptr);
|
||||
|
||||
auto *hintItem = new VirtualFunctionProposalItem(Utils::Link());
|
||||
hintItem->setText(Tr::tr("collecting overrides ..."));
|
||||
hintItem->setText(Tr::tr("collecting overrides..."));
|
||||
hintItem->setOrder(-1000);
|
||||
|
||||
QList<AssistProposalItemInterface *> items;
|
||||
|
||||
@@ -449,7 +449,7 @@ F2TestCase::F2TestCase(CppEditorAction action,
|
||||
first.text = "<base declaration>";
|
||||
expectedImmediate << first;
|
||||
}
|
||||
expectedImmediate << OverrideItem(QLatin1String("collecting overrides ..."));
|
||||
expectedImmediate << OverrideItem(QLatin1String("collecting overrides..."));
|
||||
}
|
||||
QCOMPARE(immediateVirtualSymbolResults, expectedImmediate);
|
||||
if (useClangd) {
|
||||
|
||||
Reference in New Issue
Block a user