forked from qt-creator/qt-creator
UI text: fix capitalization and punctuation
Change-Id: I7a974072096689aaa4b1ec1cca93dcd9febe14d9 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
This commit is contained in:
@@ -144,20 +144,20 @@ void QmlAdapter::connectionStateChanged()
|
|||||||
switch (m_conn->state()) {
|
switch (m_conn->state()) {
|
||||||
case QAbstractSocket::UnconnectedState:
|
case QAbstractSocket::UnconnectedState:
|
||||||
{
|
{
|
||||||
showConnectionStatusMessage(tr("disconnected.\n\n"));
|
showConnectionStatusMessage(tr("Disconnected.\n\n"));
|
||||||
emit disconnected();
|
emit disconnected();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QAbstractSocket::HostLookupState:
|
case QAbstractSocket::HostLookupState:
|
||||||
showConnectionStatusMessage(tr("resolving host..."));
|
showConnectionStatusMessage(tr("Resolving host."));
|
||||||
break;
|
break;
|
||||||
case QAbstractSocket::ConnectingState:
|
case QAbstractSocket::ConnectingState:
|
||||||
showConnectionStatusMessage(tr("connecting to debug server..."));
|
showConnectionStatusMessage(tr("Connecting to debug server."));
|
||||||
break;
|
break;
|
||||||
case QAbstractSocket::ConnectedState:
|
case QAbstractSocket::ConnectedState:
|
||||||
{
|
{
|
||||||
showConnectionStatusMessage(tr("connected.\n"));
|
showConnectionStatusMessage(tr("Connected.\n"));
|
||||||
|
|
||||||
m_connectionTimer.stop();
|
m_connectionTimer.stop();
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ void QmlAdapter::connectionStateChanged()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QAbstractSocket::ClosingState:
|
case QAbstractSocket::ClosingState:
|
||||||
showConnectionStatusMessage(tr("closing..."));
|
showConnectionStatusMessage(tr("Closing."));
|
||||||
break;
|
break;
|
||||||
case QAbstractSocket::BoundState:
|
case QAbstractSocket::BoundState:
|
||||||
case QAbstractSocket::ListeningState:
|
case QAbstractSocket::ListeningState:
|
||||||
|
@@ -424,7 +424,7 @@ void QmlInspectorAgent::onResult(quint32 queryId, const QVariant &value,
|
|||||||
} else if (type == "SET_BINDING_R"
|
} else if (type == "SET_BINDING_R"
|
||||||
|| type == "RESET_BINDING_R"
|
|| type == "RESET_BINDING_R"
|
||||||
|| type == "SET_METHOD_BODY_R") {
|
|| type == "SET_METHOD_BODY_R") {
|
||||||
QString msg = QLatin1String(type) + tr(" success : ");
|
QString msg = QLatin1String(type) + tr("Success: ");
|
||||||
msg += value.toBool() ? QLatin1Char('1') : QLatin1Char('0');
|
msg += value.toBool() ? QLatin1Char('1') : QLatin1Char('0');
|
||||||
if (!value.toBool())
|
if (!value.toBool())
|
||||||
emit automaticUpdateFailed();
|
emit automaticUpdateFailed();
|
||||||
@@ -814,7 +814,7 @@ QList<WatchData> QmlInspectorAgent::buildWatchData(const ObjectReference &obj,
|
|||||||
WatchData propertiesWatch;
|
WatchData propertiesWatch;
|
||||||
propertiesWatch.id = objDebugId;
|
propertiesWatch.id = objDebugId;
|
||||||
propertiesWatch.exp = "";
|
propertiesWatch.exp = "";
|
||||||
propertiesWatch.name = tr("properties");
|
propertiesWatch.name = tr("Properties");
|
||||||
propertiesWatch.iname = objIname + ".[properties]";
|
propertiesWatch.iname = objIname + ".[properties]";
|
||||||
propertiesWatch.type = "";
|
propertiesWatch.type = "";
|
||||||
propertiesWatch.value = _("list");
|
propertiesWatch.value = _("list");
|
||||||
|
@@ -1633,7 +1633,7 @@ StackFrame QmlV8DebuggerClient::extractStackFrame(const QVariant &bodyVal, const
|
|||||||
QmlV8ObjectData objectData = d->extractData(body.value(_("func")), refsVal);
|
QmlV8ObjectData objectData = d->extractData(body.value(_("func")), refsVal);
|
||||||
QString functionName = objectData.value.toString();
|
QString functionName = objectData.value.toString();
|
||||||
if (functionName.isEmpty())
|
if (functionName.isEmpty())
|
||||||
functionName = tr("anonymous function");
|
functionName = tr("Anonymous Function");
|
||||||
stackFrame.function = functionName;
|
stackFrame.function = functionName;
|
||||||
|
|
||||||
objectData = d->extractData(body.value(_("script")), refsVal);
|
objectData = d->extractData(body.value(_("script")), refsVal);
|
||||||
|
Reference in New Issue
Block a user