forked from qt-creator/qt-creator
Heob: Fix UI text
Fix issues in writing style and punctuation. Change-Id: I68da7960ccb5876ec8baf3b8eab1ab7e0d475a77 Reviewed-by: Hannes Domani <ssbssa@yahoo.de> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -746,7 +746,7 @@ void MemcheckTool::heobAction()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!hasLocalRc) {
|
if (!hasLocalRc) {
|
||||||
const QString msg = tr("Heob: No local run configuration available");
|
const QString msg = tr("Heob: No local run configuration available.");
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
return;
|
return;
|
||||||
@@ -755,7 +755,7 @@ void MemcheckTool::heobAction()
|
|||||||
|| abi.os() != Abi::WindowsOS
|
|| abi.os() != Abi::WindowsOS
|
||||||
|| abi.binaryFormat() != Abi::PEFormat
|
|| abi.binaryFormat() != Abi::PEFormat
|
||||||
|| (abi.wordWidth() != 32 && abi.wordWidth() != 64)) {
|
|| (abi.wordWidth() != 32 && abi.wordWidth() != 64)) {
|
||||||
const QString msg = tr("Heob: No toolchain available");
|
const QString msg = tr("Heob: No toolchain available.");
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
return;
|
return;
|
||||||
@@ -768,13 +768,13 @@ void MemcheckTool::heobAction()
|
|||||||
|
|
||||||
// target executable
|
// target executable
|
||||||
if (executable.isEmpty()) {
|
if (executable.isEmpty()) {
|
||||||
const QString msg = tr("Heob: No executable set");
|
const QString msg = tr("Heob: No executable set.");
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!QFile::exists(executable)) {
|
if (!QFile::exists(executable)) {
|
||||||
const QString msg = tr("Heob: Can't find %1").arg(executable);
|
const QString msg = tr("Heob: Cannot find %1.").arg(executable);
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
return;
|
return;
|
||||||
@@ -855,7 +855,7 @@ void MemcheckTool::heobAction()
|
|||||||
CREATE_UNICODE_ENVIRONMENT | CREATE_SUSPENDED | CREATE_NEW_CONSOLE, envPtr,
|
CREATE_UNICODE_ENVIRONMENT | CREATE_SUSPENDED | CREATE_NEW_CONSOLE, envPtr,
|
||||||
reinterpret_cast<LPCWSTR>(workingDirectory.utf16()), &si, &pi)) {
|
reinterpret_cast<LPCWSTR>(workingDirectory.utf16()), &si, &pi)) {
|
||||||
DWORD e = GetLastError();
|
DWORD e = GetLastError();
|
||||||
const QString msg = tr("Heob: Can't create %1 process (%2)").arg(heob).arg(qt_error_string(e));
|
const QString msg = tr("Heob: Cannot create %1 process (%2).").arg(heob).arg(qt_error_string(e));
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
return;
|
return;
|
||||||
@@ -1116,13 +1116,13 @@ void MemcheckTool::engineFinished()
|
|||||||
|
|
||||||
const int issuesFound = updateUiAfterFinishedHelper();
|
const int issuesFound = updateUiAfterFinishedHelper();
|
||||||
Debugger::showPermanentStatusMessage(
|
Debugger::showPermanentStatusMessage(
|
||||||
tr("Memory Analyzer Tool finished, %n issues were found.", 0, issuesFound));
|
tr("Memory Analyzer Tool finished. %n issues were found.", 0, issuesFound));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemcheckTool::loadingExternalXmlLogFileFinished()
|
void MemcheckTool::loadingExternalXmlLogFileFinished()
|
||||||
{
|
{
|
||||||
const int issuesFound = updateUiAfterFinishedHelper();
|
const int issuesFound = updateUiAfterFinishedHelper();
|
||||||
QString statusMessage = tr("Log file processed, %n issues were found.", 0, issuesFound);
|
QString statusMessage = tr("Log file processed. %n issues were found.", 0, issuesFound);
|
||||||
if (!m_exitMsg.isEmpty())
|
if (!m_exitMsg.isEmpty())
|
||||||
statusMessage += ' ' + m_exitMsg;
|
statusMessage += ' ' + m_exitMsg;
|
||||||
Debugger::showPermanentStatusMessage(statusMessage);
|
Debugger::showPermanentStatusMessage(statusMessage);
|
||||||
@@ -1524,21 +1524,21 @@ void HeobData::processFinished()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_PROCESS_FAIL:
|
case HEOB_PROCESS_FAIL:
|
||||||
exitMsg = tr("Can't create target process");
|
exitMsg = tr("Cannot create target process.");
|
||||||
if (m_data[1])
|
if (m_data[1])
|
||||||
exitMsg += " (" + qt_error_string(m_data[1]) + ')';
|
exitMsg += " (" + qt_error_string(m_data[1]) + ')';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_WRONG_BITNESS:
|
case HEOB_WRONG_BITNESS:
|
||||||
exitMsg = tr("Wrong bitness");
|
exitMsg = tr("Wrong bitness.");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_PROCESS_KILLED:
|
case HEOB_PROCESS_KILLED:
|
||||||
exitMsg = tr("Process killed");
|
exitMsg = tr("Process killed.");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_NO_CRT:
|
case HEOB_NO_CRT:
|
||||||
exitMsg = tr("Only works with dynamically linked CRT");
|
exitMsg = tr("Only works with dynamically linked CRT.");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_EXCEPTION:
|
case HEOB_EXCEPTION:
|
||||||
@@ -1547,15 +1547,15 @@ void HeobData::processFinished()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_OUT_OF_MEMORY:
|
case HEOB_OUT_OF_MEMORY:
|
||||||
exitMsg = tr("Not enough memory to keep track of allocations");
|
exitMsg = tr("Not enough memory to keep track of allocations.");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_UNEXPECTED_END:
|
case HEOB_UNEXPECTED_END:
|
||||||
exitMsg = tr("Unexpected end of application");
|
exitMsg = tr("Application stopped unexpectedly.");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_CONSOLE:
|
case HEOB_CONSOLE:
|
||||||
exitMsg = tr("Extra console");
|
exitMsg = tr("Extra console.");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEOB_HELP:
|
case HEOB_HELP:
|
||||||
@@ -1564,11 +1564,11 @@ void HeobData::processFinished()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
exitMsg = tr("Unknown exit reason");
|
exitMsg = tr("Unknown exit reason.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
exitMsg = tr("Unexpected end of heob");
|
exitMsg = tr("Heob stopped unexpectedly.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (needErrorMsg) {
|
if (needErrorMsg) {
|
||||||
@@ -1607,7 +1607,7 @@ void HeobData::sendHeobAttachPid(DWORD pid)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString msg = tr("Heob: Failure in process attach handshake (%1)").arg(qt_error_string(e));
|
const QString msg = tr("Heob: Failure in process attach handshake (%1).").arg(qt_error_string(e));
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
deleteLater();
|
deleteLater();
|
||||||
|
Reference in New Issue
Block a user