forked from qt-creator/qt-creator
I18n: Tr()-fixes
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="alphaAllowed" stdset="0">
|
<property name="alphaAllowed">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -163,6 +163,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>When files are externally modified:</string>
|
<string>When files are externally modified:</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -193,19 +196,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@@ -83,5 +83,35 @@ bool AbstractGdbAdapter::isTrkAdapter() const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString AbstractGdbAdapter::msgGdbStopFailed(const QString &why)
|
||||||
|
{
|
||||||
|
return tr("The Gdb process could not be stopped:\n%1").arg(why);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString AbstractGdbAdapter::msgInferiorStopFailed(const QString &why)
|
||||||
|
{
|
||||||
|
return tr("Inferior process could not be stopped:\n%1").arg(why);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString AbstractGdbAdapter::msgInferiorStarted()
|
||||||
|
{
|
||||||
|
return tr("Inferior started.");
|
||||||
|
}
|
||||||
|
|
||||||
|
QString AbstractGdbAdapter::msgInferiorRunning()
|
||||||
|
{
|
||||||
|
return tr("Inferior running.");
|
||||||
|
}
|
||||||
|
|
||||||
|
QString AbstractGdbAdapter::msgAttachedToStoppedInferior()
|
||||||
|
{
|
||||||
|
return tr("Attached to stopped inferior.");
|
||||||
|
}
|
||||||
|
|
||||||
|
QString AbstractGdbAdapter::msgConnectRemoteServerFailed(const QString &why)
|
||||||
|
{
|
||||||
|
return tr("Connecting to remote server failed:\n%1").arg(why);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Debugger
|
} // namespace Debugger
|
||||||
|
@@ -93,6 +93,13 @@ protected:
|
|||||||
void showStatusMessage(const QString &msg) const
|
void showStatusMessage(const QString &msg) const
|
||||||
{ m_engine->showStatusMessage(msg); }
|
{ m_engine->showStatusMessage(msg); }
|
||||||
|
|
||||||
|
static QString msgGdbStopFailed(const QString &why);
|
||||||
|
static QString msgInferiorStopFailed(const QString &why);
|
||||||
|
static QString msgAttachedToStoppedInferior();
|
||||||
|
static QString msgInferiorStarted();
|
||||||
|
static QString msgInferiorRunning();
|
||||||
|
static QString msgConnectRemoteServerFailed(const QString &why);
|
||||||
|
|
||||||
GdbEngine * const m_engine;
|
GdbEngine * const m_engine;
|
||||||
|
|
||||||
QProcess m_gdbProc;
|
QProcess m_gdbProc;
|
||||||
|
@@ -107,7 +107,7 @@ void AttachGdbAdapter::handleAttach(const GdbResponse &response)
|
|||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
setState(InferiorStopped);
|
setState(InferiorStopped);
|
||||||
debugMessage(_("INFERIOR STARTED"));
|
debugMessage(_("INFERIOR STARTED"));
|
||||||
showStatusMessage(tr("Attached to stopped inferior."));
|
showStatusMessage(msgAttachedToStoppedInferior());
|
||||||
m_engine->updateAll();
|
m_engine->updateAll();
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = __(response.data.findChild("msg").data());
|
QString msg = __(response.data.findChild("msg").data());
|
||||||
@@ -155,8 +155,7 @@ void AttachGdbAdapter::handleDetach(const GdbResponse &response)
|
|||||||
emit inferiorShutDown();
|
emit inferiorShutDown();
|
||||||
shutdown(); // re-iterate...
|
shutdown(); // re-iterate...
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Inferior process could not be stopped:\n") +
|
const QString msg = msgInferiorStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
setState(InferiorShutdownFailed);
|
setState(InferiorShutdownFailed);
|
||||||
emit inferiorShutdownFailed(msg);
|
emit inferiorShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
@@ -167,8 +166,7 @@ void AttachGdbAdapter::handleExit(const GdbResponse &response)
|
|||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
// don't set state here, this will be handled in handleGdbFinished()
|
// don't set state here, this will be handled in handleGdbFinished()
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Gdb process could not be stopped:\n") +
|
const QString msg = msgGdbStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
emit adapterShutdownFailed(msg);
|
emit adapterShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -221,8 +221,7 @@ void CoreGdbAdapter::handleExit(const GdbResponse &response)
|
|||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
// don't set state here, this will be handled in handleGdbFinished()
|
// don't set state here, this will be handled in handleGdbFinished()
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Gdb process could not be stopped:\n") +
|
const QString msg = msgGdbStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
emit adapterShutdownFailed(msg);
|
emit adapterShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -135,7 +135,7 @@ void PlainGdbAdapter::handleExecRun(const GdbResponse &response)
|
|||||||
if (response.resultClass == GdbResultRunning) {
|
if (response.resultClass == GdbResultRunning) {
|
||||||
QTC_ASSERT(state() == InferiorRunning, qDebug() << state());
|
QTC_ASSERT(state() == InferiorRunning, qDebug() << state());
|
||||||
debugMessage(_("INFERIOR STARTED"));
|
debugMessage(_("INFERIOR STARTED"));
|
||||||
showStatusMessage(tr("Inferior started."));
|
showStatusMessage(msgInferiorStarted());
|
||||||
} else {
|
} else {
|
||||||
QTC_ASSERT(state() == InferiorRunningRequested, qDebug() << state());
|
QTC_ASSERT(state() == InferiorRunningRequested, qDebug() << state());
|
||||||
QTC_ASSERT(response.resultClass == GdbResultError, /**/);
|
QTC_ASSERT(response.resultClass == GdbResultError, /**/);
|
||||||
@@ -219,8 +219,7 @@ void PlainGdbAdapter::handleKill(const GdbResponse &response)
|
|||||||
emit inferiorShutDown();
|
emit inferiorShutDown();
|
||||||
shutdown(); // re-iterate...
|
shutdown(); // re-iterate...
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Inferior process could not be stopped:\n") +
|
const QString msg = msgInferiorStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
setState(InferiorShutdownFailed);
|
setState(InferiorShutdownFailed);
|
||||||
emit inferiorShutdownFailed(msg);
|
emit inferiorShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
@@ -231,8 +230,7 @@ void PlainGdbAdapter::handleExit(const GdbResponse &response)
|
|||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
// don't set state here, this will be handled in handleGdbFinished()
|
// don't set state here, this will be handled in handleGdbFinished()
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Gdb process could not be stopped:\n") +
|
const QString msg = msgGdbStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
emit adapterShutdownFailed(msg);
|
emit adapterShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -212,13 +212,12 @@ void RemoteGdbAdapter::handleTargetRemote(const GdbResponse &record)
|
|||||||
if (record.resultClass == GdbResultDone) {
|
if (record.resultClass == GdbResultDone) {
|
||||||
// gdb server will stop the remote application itself.
|
// gdb server will stop the remote application itself.
|
||||||
debugMessage(_("INFERIOR STARTED"));
|
debugMessage(_("INFERIOR STARTED"));
|
||||||
showStatusMessage(tr("Attached to stopped inferior."));
|
showStatusMessage(msgAttachedToStoppedInferior());
|
||||||
setState(InferiorStopped);
|
setState(InferiorStopped);
|
||||||
m_engine->continueInferior();
|
m_engine->continueInferior();
|
||||||
} else if (record.resultClass == GdbResultError) {
|
} else if (record.resultClass == GdbResultError) {
|
||||||
// 16^error,msg="hd:5555: Connection timed out."
|
// 16^error,msg="hd:5555: Connection timed out."
|
||||||
QString msg = tr("Connecting to remote server failed:\n");
|
QString msg = msgConnectRemoteServerFailed(__(record.data.findChild("msg").data()));
|
||||||
msg += __(record.data.findChild("msg").data());
|
|
||||||
setState(InferiorPreparationFailed);
|
setState(InferiorPreparationFailed);
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
@@ -273,8 +272,7 @@ void RemoteGdbAdapter::handleKill(const GdbResponse &response)
|
|||||||
emit inferiorShutDown();
|
emit inferiorShutDown();
|
||||||
shutdown(); // re-iterate...
|
shutdown(); // re-iterate...
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Inferior process could not be stopped:\n") +
|
QString msg = msgInferiorStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
setState(InferiorShutdownFailed);
|
setState(InferiorShutdownFailed);
|
||||||
emit inferiorShutdownFailed(msg);
|
emit inferiorShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
@@ -285,8 +283,7 @@ void RemoteGdbAdapter::handleExit(const GdbResponse &response)
|
|||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
// don't set state here, this will be handled in handleGdbFinished()
|
// don't set state here, this will be handled in handleGdbFinished()
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Gdb process could not be stopped:\n") +
|
QString msg = msgGdbStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
emit adapterShutdownFailed(msg);
|
emit adapterShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1702,11 +1702,9 @@ void TrkGdbAdapter::handleFirstContinue(const GdbResponse &record)
|
|||||||
QTC_ASSERT(state() == InferiorRunning, qDebug() << state());
|
QTC_ASSERT(state() == InferiorRunning, qDebug() << state());
|
||||||
if (record.resultClass == GdbResultDone) {
|
if (record.resultClass == GdbResultDone) {
|
||||||
debugMessage(_("INFERIOR STARTED"));
|
debugMessage(_("INFERIOR STARTED"));
|
||||||
showStatusMessage(tr("Inferior running."));
|
showStatusMessage(msgInferiorRunning());
|
||||||
} else if (record.resultClass == GdbResultError) {
|
} else if (record.resultClass == GdbResultError) {
|
||||||
//QString msg = __(record.data.findChild("msg").data());
|
emit inferiorStartFailed(msgConnectRemoteServerFailed(record.toString()));
|
||||||
QString msg1 = tr("Connecting to remote server failed:");
|
|
||||||
emit inferiorStartFailed(msg1 + record.toString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2083,8 +2081,7 @@ void TrkGdbAdapter::handleKill(const GdbResponse &response)
|
|||||||
emit inferiorShutDown();
|
emit inferiorShutDown();
|
||||||
shutdown(); // re-iterate...
|
shutdown(); // re-iterate...
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Inferior process could not be stopped:\n") +
|
const QString msg = msgInferiorStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
setState(InferiorShutdownFailed);
|
setState(InferiorShutdownFailed);
|
||||||
emit inferiorShutdownFailed(msg);
|
emit inferiorShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
@@ -2096,8 +2093,7 @@ void TrkGdbAdapter::handleExit(const GdbResponse &response)
|
|||||||
qDebug() << "EXITED, NO MESSAGE...";
|
qDebug() << "EXITED, NO MESSAGE...";
|
||||||
// don't set state here, this will be handled in handleGdbFinished()
|
// don't set state here, this will be handled in handleGdbFinished()
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = tr("Gdb process could not be stopped:\n") +
|
const QString msg = msgGdbStopFailed(__(response.data.findChild("msg").data()));
|
||||||
__(response.data.findChild("msg").data());
|
|
||||||
emit adapterShutdownFailed(msg);
|
emit adapterShutdownFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -78,7 +78,7 @@ SearchResultWindow::SearchResultWindow()
|
|||||||
m_replaceLabel->setContentsMargins(12, 0, 5, 0);
|
m_replaceLabel->setContentsMargins(12, 0, 5, 0);
|
||||||
m_replaceTextEdit = new QLineEdit(m_widget);
|
m_replaceTextEdit = new QLineEdit(m_widget);
|
||||||
m_replaceButton = new QToolButton(m_widget);
|
m_replaceButton = new QToolButton(m_widget);
|
||||||
m_replaceButton->setToolTip(tr("Replace all occurances"));
|
m_replaceButton->setToolTip(tr("Replace all occurrences"));
|
||||||
m_replaceButton->setText(tr("Replace"));
|
m_replaceButton->setText(tr("Replace"));
|
||||||
m_replaceButton->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
m_replaceButton->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
||||||
m_replaceButton->setAutoRaise(true);
|
m_replaceButton->setAutoRaise(true);
|
||||||
@@ -234,7 +234,7 @@ void SearchResultWindow::setTextEditorFont(const QFont &font)
|
|||||||
m_searchResultTreeView->setTextEditorFont(font);
|
m_searchResultTreeView->setTextEditorFont(font);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchResultWindow::handleJumpToSearchResult(int index, bool checked)
|
void SearchResultWindow::handleJumpToSearchResult(int index, bool /* checked */)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_currentSearch, return);
|
QTC_ASSERT(m_currentSearch, return);
|
||||||
m_currentSearch->activated(m_items.at(index));
|
m_currentSearch->activated(m_items.at(index));
|
||||||
|
@@ -241,10 +241,10 @@ void Qt4RunConfigurationWidget::updateSummary()
|
|||||||
{
|
{
|
||||||
const QString &filename = QFileInfo(m_qt4RunConfiguration->executable()).fileName();
|
const QString &filename = QFileInfo(m_qt4RunConfiguration->executable()).fileName();
|
||||||
const QString &arguments = ProjectExplorer::Environment::joinArgumentList(m_qt4RunConfiguration->commandLineArguments());
|
const QString &arguments = ProjectExplorer::Environment::joinArgumentList(m_qt4RunConfiguration->commandLineArguments());
|
||||||
QString text = tr("Running executable: <b>%1</b> %2 %3").arg(
|
const bool terminal = m_qt4RunConfiguration->runMode() == LocalApplicationRunConfiguration::Console;
|
||||||
filename,
|
const QString text = terminal ?
|
||||||
arguments,
|
tr("Running executable: <b>%1</b> %2 (in terminal)").arg(filename, arguments) :
|
||||||
m_qt4RunConfiguration->runMode() == LocalApplicationRunConfiguration::Console ? tr("(in terminal)") : "");
|
tr("Running executable: <b>%1</b> %2").arg(filename, arguments);
|
||||||
m_detailsContainer->setSummaryText(text);
|
m_detailsContainer->setSummaryText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user