From fed6b8bdd0609b18a6618bbd4b53f586d0bea482 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 6 Mar 2014 14:42:25 +0100 Subject: [PATCH] Core: add punctuation to messages Change-Id: Ied2569a5cb09ff44335ad7b498b869e9f0dbb91e Reviewed-by: Eike Ziller --- src/plugins/coreplugin/actionmanager/commandmappings.cpp | 4 ++-- src/plugins/coreplugin/find/searchresultwidget.cpp | 4 ++-- src/plugins/coreplugin/locator/executefilter.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/coreplugin/actionmanager/commandmappings.cpp b/src/plugins/coreplugin/actionmanager/commandmappings.cpp index 6082127529a..dd46fd54ebd 100644 --- a/src/plugins/coreplugin/actionmanager/commandmappings.cpp +++ b/src/plugins/coreplugin/actionmanager/commandmappings.cpp @@ -98,7 +98,7 @@ public: item->setText(0, CommandMappings::tr("Command")); defaultButton = new QPushButton(CommandMappings::tr("Reset All"), groupBox); - defaultButton->setToolTip(CommandMappings::tr("Reset all to default")); + defaultButton->setToolTip(CommandMappings::tr("Reset all to default.")); importButton = new QPushButton(CommandMappings::tr("Import..."), groupBox); exportButton = new QPushButton(CommandMappings::tr("Export..."), groupBox); @@ -112,7 +112,7 @@ public: targetEdit->setFiltering(true); resetButton = new QPushButton(targetEditGroup); - resetButton->setToolTip(CommandMappings::tr("Reset to default")); + resetButton->setToolTip(CommandMappings::tr("Reset to default.")); resetButton->setText(CommandMappings::tr("Reset")); QLabel *infoLabel = new QLabel(targetEditGroup); diff --git a/src/plugins/coreplugin/find/searchresultwidget.cpp b/src/plugins/coreplugin/find/searchresultwidget.cpp index d84018c5668..b59994c9741 100644 --- a/src/plugins/coreplugin/find/searchresultwidget.cpp +++ b/src/plugins/coreplugin/find/searchresultwidget.cpp @@ -146,7 +146,7 @@ SearchResultWidget::SearchResultWidget(QWidget *parent) : m_cancelButton->setToolButtonStyle(Qt::ToolButtonTextOnly); connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(cancel())); m_searchAgainButton = new QToolButton(topWidget); - m_searchAgainButton->setToolTip(tr("Repeat the search with same parameters")); + m_searchAgainButton->setToolTip(tr("Repeat the search with same parameters.")); m_searchAgainButton->setText(tr("Search again")); m_searchAgainButton->setToolButtonStyle(Qt::ToolButtonTextOnly); m_searchAgainButton->setVisible(false); @@ -158,7 +158,7 @@ SearchResultWidget::SearchResultWidget(QWidget *parent) : m_replaceTextEdit->setEnabled(false); m_replaceTextEdit->setTabOrder(m_replaceTextEdit, m_searchResultTreeView); m_replaceButton = new QToolButton(topWidget); - m_replaceButton->setToolTip(tr("Replace all occurrences")); + m_replaceButton->setToolTip(tr("Replace all occurrences.")); m_replaceButton->setText(tr("Replace")); m_replaceButton->setToolButtonStyle(Qt::ToolButtonTextOnly); m_replaceButton->setEnabled(false); diff --git a/src/plugins/coreplugin/locator/executefilter.cpp b/src/plugins/coreplugin/locator/executefilter.cpp index 6c2e5f83bd5..5c2dc3223bf 100644 --- a/src/plugins/coreplugin/locator/executefilter.cpp +++ b/src/plugins/coreplugin/locator/executefilter.cpp @@ -158,18 +158,18 @@ void ExecuteFilter::runHeadCommand() const ExecuteData &d = m_taskQueue.head(); const QString fullPath = Utils::Environment::systemEnvironment().searchInPath(d.executable); if (fullPath.isEmpty()) { - MessageManager::write(tr("Could not find executable for '%1'").arg(d.executable)); + MessageManager::write(tr("Could not find executable for '%1'.").arg(d.executable)); m_taskQueue.dequeue(); runHeadCommand(); return; } - MessageManager::write(tr("Starting command '%1'").arg(headCommand())); + MessageManager::write(tr("Starting command '%1'.").arg(headCommand())); m_process->setWorkingDirectory(d.workingDirectory); m_process->setCommand(fullPath, d.arguments); m_process->start(); m_process->closeWriteChannel(); if (!m_process->waitForStarted(1000)) { - MessageManager::write(tr("Could not start process: %1").arg(m_process->errorString())); + MessageManager::write(tr("Could not start process: %1.").arg(m_process->errorString())); m_taskQueue.dequeue(); runHeadCommand(); }