forked from qt-creator/qt-creator
Utils: Fix UI text punctuation and capitalization
Also simplify the wording of a message. Task-number: QTCREATORBUG-27055 Change-Id: I29df31f8484d451d8d8d1869ca3a1b182072d2c1 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -932,7 +932,7 @@ void LauncherSocket::handleSocketDisconnected()
|
|||||||
{
|
{
|
||||||
QTC_ASSERT(isCalledFromLaunchersThread(), return);
|
QTC_ASSERT(isCalledFromLaunchersThread(), return);
|
||||||
handleError(QCoreApplication::translate("Utils::LauncherSocket",
|
handleError(QCoreApplication::translate("Utils::LauncherSocket",
|
||||||
"Launcher socket closed unexpectedly"));
|
"Launcher socket closed unexpectedly."));
|
||||||
}
|
}
|
||||||
|
|
||||||
void LauncherSocket::handleError(const QString &error)
|
void LauncherSocket::handleError(const QString &error)
|
||||||
|
@@ -986,12 +986,12 @@ static bool askToKill(const QString &command)
|
|||||||
#ifdef QT_GUI_LIB
|
#ifdef QT_GUI_LIB
|
||||||
if (QThread::currentThread() != QCoreApplication::instance()->thread())
|
if (QThread::currentThread() != QCoreApplication::instance()->thread())
|
||||||
return true;
|
return true;
|
||||||
const QString title = QtcProcess::tr("Process not Responding");
|
const QString title = QtcProcess::tr("Process Not Responding");
|
||||||
QString msg = command.isEmpty() ?
|
QString msg = command.isEmpty() ?
|
||||||
QtcProcess::tr("The process is not responding.") :
|
QtcProcess::tr("The process is not responding.") :
|
||||||
QtcProcess::tr("The process \"%1\" is not responding.").arg(command);
|
QtcProcess::tr("The process \"%1\" is not responding.").arg(command);
|
||||||
msg += ' ';
|
msg += ' ';
|
||||||
msg += QtcProcess::tr("Would you like to terminate it?");
|
msg += QtcProcess::tr("Terminate the process?");
|
||||||
// Restore the cursor that is set to wait while running.
|
// Restore the cursor that is set to wait while running.
|
||||||
const bool hasOverrideCursor = QApplication::overrideCursor() != nullptr;
|
const bool hasOverrideCursor = QApplication::overrideCursor() != nullptr;
|
||||||
if (hasOverrideCursor)
|
if (hasOverrideCursor)
|
||||||
|
Reference in New Issue
Block a user