forked from qt-creator/qt-creator
Translate some strings
Change-Id: I5eab1edbca591cc36813cd862d6ad93875b51a3c Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Eike Ziller
parent
9820278a70
commit
f8645bb6c7
@@ -395,7 +395,7 @@ ChooseCMakePage::ChooseCMakePage(CMakeOpenProjectWizard *cmakeWizard)
|
||||
// Show a field for the user to enter
|
||||
m_cmakeExecutable = new Utils::PathChooser(this);
|
||||
m_cmakeExecutable->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||
fl->addRow("cmake Executable:", m_cmakeExecutable);
|
||||
fl->addRow(tr("cmake Executable:"), m_cmakeExecutable);
|
||||
|
||||
connect(m_cmakeExecutable, SIGNAL(editingFinished()),
|
||||
this, SLOT(cmakeExecutableChanged()));
|
||||
|
||||
@@ -509,9 +509,11 @@ bool CheckSymbols::visit(SimpleDeclarationAST *ast)
|
||||
// Add a diagnostic message if non-virtual function has override/final marker
|
||||
if ((_usages.back().kind != SemanticInfo::VirtualMethodUse)) {
|
||||
if (funTy->isOverride())
|
||||
warning(declrIdNameAST, "Only virtual methods can be marked `override'");
|
||||
warning(declrIdNameAST, QCoreApplication::translate(
|
||||
"CPlusplus::CheckSymbols", "Only virtual methods can be marked `override'"));
|
||||
else if (funTy->isFinal())
|
||||
warning(declrIdNameAST, "Only virtual methods can be marked `final'");
|
||||
warning(declrIdNameAST, QCoreApplication::translate(
|
||||
"CPlusplus::CheckSymbols", "Only virtual methods can be marked `final'"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -712,7 +714,7 @@ void CheckSymbols::checkNamespace(NameAST *name)
|
||||
}
|
||||
|
||||
const unsigned length = tokenAt(name->lastToken() - 1).end() - tokenAt(name->firstToken()).begin();
|
||||
warning(line, column, QCoreApplication::translate("CheckUndefinedSymbols", "Expected a namespace-name"), length);
|
||||
warning(line, column, QCoreApplication::translate("CPlusPlus::CheckSymbols", "Expected a namespace-name"), length);
|
||||
}
|
||||
|
||||
bool CheckSymbols::hasVirtualDestructor(Class *klass) const
|
||||
@@ -1280,9 +1282,9 @@ bool CheckSymbols::maybeAddFunction(const QList<LookupItem> &candidates, NameAST
|
||||
|
||||
// Add a diagnostic message if argument count does not match
|
||||
if (matchType == Match_TooFewArgs)
|
||||
warning(line, column, "Too few arguments", length);
|
||||
warning(line, column, QCoreApplication::translate("CPlusplus::CheckSymbols", "Too few arguments", length);
|
||||
else if (matchType == Match_TooManyArgs)
|
||||
warning(line, column, "Too many arguments", length);
|
||||
warning(line, column, QCoreApplication::translate("CPlusplus::CheckSymbols", "Too many arguments", length);
|
||||
|
||||
const Use use(line, column, length, kind);
|
||||
addUse(use);
|
||||
|
||||
@@ -346,14 +346,14 @@ bool MaemoMakeInstallToSysrootStep::init()
|
||||
const Qt4BuildConfiguration * const bc
|
||||
= qobject_cast<Qt4BuildConfiguration *>(target()->activeBuildConfiguration());
|
||||
if (!bc) {
|
||||
addOutput("Cannot deploy: No active build dconfiguration.",
|
||||
addOutput(tr("Cannot deploy: No active build dconfiguration."),
|
||||
ErrorMessageOutput);
|
||||
return false;
|
||||
}
|
||||
const QtSupport::BaseQtVersion *const qtVersion
|
||||
= QtSupport::QtKitInformation::qtVersion(target()->kit());
|
||||
if (!qtVersion) {
|
||||
addOutput("Cannot deploy: Unusable build configuration.",
|
||||
addOutput(tr("Cannot deploy: Unusable build configuration."),
|
||||
ErrorMessageOutput);
|
||||
return false;
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ MaemoQemuManager::MaemoQemuManager(QObject *parent)
|
||||
m_qemuStarterIcon.addFile(":/qt-maemo/images/qemu-stop.png", iconSize,
|
||||
QIcon::Normal, QIcon::On);
|
||||
|
||||
m_qemuAction = new QAction("MeeGo Emulator", this);
|
||||
m_qemuAction = new QAction(tr("MeeGo Emulator"), this);
|
||||
m_qemuAction->setIcon(m_qemuStarterIcon.pixmap(iconSize));
|
||||
m_qemuAction->setToolTip(tr("Start MeeGo Emulator"));
|
||||
connect(m_qemuAction, SIGNAL(triggered()), this, SLOT(startRuntime()));
|
||||
|
||||
@@ -67,7 +67,7 @@ void QmlJSPreviewRunner::run(const QString &filename)
|
||||
Utils::QtcProcess::quoteArg(filename));
|
||||
|
||||
} else {
|
||||
errorMessage = "No file specified.";
|
||||
errorMessage = tr("No file specified.");
|
||||
}
|
||||
|
||||
if (!errorMessage.isEmpty())
|
||||
|
||||
@@ -806,7 +806,7 @@ void QmlProfilerDataModel::complete()
|
||||
compileStatistics(traceStartTime(), traceEndTime());
|
||||
setState(Done);
|
||||
} else {
|
||||
emit error("Unexpected complete signal in data model");
|
||||
emit error(tr("Unexpected complete signal in data model"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1666,7 +1666,7 @@ void QmlProfilerDataModel::setState(QmlProfilerDataModel::State state)
|
||||
QTC_ASSERT(d->listState == ProcessingData || d->listState == Empty, return);
|
||||
break;
|
||||
default:
|
||||
emit error("Trying to set unknown state in events list");
|
||||
emit error(tr("Trying to set unknown state in events list"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ void GenericLinuxDeviceTester::handleConnected()
|
||||
d->process = d->connection->createRemoteProcess("uname -rsm");
|
||||
connect(d->process.data(), SIGNAL(closed(int)), SLOT(handleProcessFinished(int)));
|
||||
|
||||
emit progressMessage("Checking kernel version...");
|
||||
emit progressMessage(tr("Checking kernel version..."));
|
||||
d->state = RunningUname;
|
||||
d->process->start();
|
||||
}
|
||||
@@ -172,7 +172,7 @@ void GenericLinuxDeviceTester::handlePortListReady()
|
||||
QTC_ASSERT(d->state == TestingPorts, return);
|
||||
|
||||
if (d->portsGatherer.usedPorts().isEmpty()) {
|
||||
emit progressMessage("All specified ports are available.\n");
|
||||
emit progressMessage(tr("All specified ports are available.\n"));
|
||||
} else {
|
||||
QString portList;
|
||||
foreach (const int port, d->portsGatherer.usedPorts())
|
||||
|
||||
@@ -110,7 +110,7 @@ void PackageUploader::handleSftpChannelInitialized()
|
||||
setState(Inactive);
|
||||
emit uploadFinished(tr("Package upload failed: Could not open file."));
|
||||
} else {
|
||||
emit progress("Starting upload...");
|
||||
emit progress(tr("Starting upload..."));
|
||||
setState(Uploading);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ void CallgrindController::processError(QProcess::ProcessError)
|
||||
{
|
||||
QTC_ASSERT(m_process, return);
|
||||
const QString error = m_process->errorString();
|
||||
emit statusMessage(QString("An error occurred while trying to run %1: %2").arg(CALLGRIND_CONTROL_BINARY).arg(error));
|
||||
emit statusMessage(tr("An error occurred while trying to run %1: %2").arg(CALLGRIND_CONTROL_BINARY).arg(error));
|
||||
|
||||
m_process->deleteLater();
|
||||
m_process = 0;
|
||||
|
||||
Reference in New Issue
Block a user