forked from qt-creator/qt-creator
Use double quotes instead of single quotes as per our guidelines.
Change-Id: Ib608bb49e26781aef1914085a5d801fcdcd5eb56 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
@@ -580,7 +580,7 @@ bool AndroidManager::createAndroidTemplatesIfNecessary(ProjectExplorer::Target *
|
||||
forceUpdate &= androidPath.toFileInfo().exists();
|
||||
|
||||
if (!dirPath(target).toFileInfo().exists() && !projectDir.mkdir(AndroidDirName)) {
|
||||
raiseError(tr("Error creating Android directory '%1'.").arg(AndroidDirName));
|
||||
raiseError(tr("Error creating Android directory \"%1\".").arg(AndroidDirName));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1046,7 +1046,7 @@ bool AndroidManager::openXmlFile(QDomDocument &doc, const Utils::FileName &fileN
|
||||
return false;
|
||||
|
||||
if (!doc.setContent(f.readAll())) {
|
||||
raiseError(tr("Cannot parse '%1'.").arg(fileName.toUserOutput()));
|
||||
raiseError(tr("Cannot parse \"%1\".").arg(fileName.toUserOutput()));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -1059,7 +1059,7 @@ bool AndroidManager::saveXmlFile(ProjectExplorer::Target *target, QDomDocument &
|
||||
|
||||
QFile f(fileName.toString());
|
||||
if (!f.open(QIODevice::WriteOnly)) {
|
||||
raiseError(tr("Cannot open '%1'.").arg(fileName.toUserOutput()));
|
||||
raiseError(tr("Cannot open \"%1\".").arg(fileName.toUserOutput()));
|
||||
return false;
|
||||
}
|
||||
return f.write(doc.toByteArray(4)) >= 0;
|
||||
|
||||
@@ -706,9 +706,9 @@ void AndroidManifestEditorWidget::updateInfoBar(const QString &errorMessage, int
|
||||
Core::InfoBar *infoBar = m_textEditorWidget->baseTextDocument()->infoBar();
|
||||
QString text;
|
||||
if (line < 0)
|
||||
text = tr("Could not parse file: '%1'.").arg(errorMessage);
|
||||
text = tr("Could not parse file: \"%1\".").arg(errorMessage);
|
||||
else
|
||||
text = tr("%2: Could not parse file: '%1'.").arg(errorMessage).arg(line);
|
||||
text = tr("%2: Could not parse file: \"%1\".").arg(errorMessage).arg(line);
|
||||
Core::InfoBarEntry infoBarEntry(infoBarId, text);
|
||||
infoBarEntry.setCustomButtonInfo(tr("Goto error"), this, SLOT(gotoError()));
|
||||
infoBar->removeInfo(infoBarId);
|
||||
|
||||
@@ -162,7 +162,7 @@ static inline QString msgCannotFindElfInformation()
|
||||
|
||||
static inline QString msgCannotFindExecutable(const QString &appPath)
|
||||
{
|
||||
return AndroidPackageCreationStep::tr("Cannot find '%1'.\n"
|
||||
return AndroidPackageCreationStep::tr("Cannot find \"%1\".\n"
|
||||
"Please make sure your application is "
|
||||
"built successfully and is selected in Application tab ('Run option').").arg(appPath);
|
||||
}
|
||||
@@ -621,7 +621,7 @@ bool AndroidPackageCreationStep::createPackage()
|
||||
QDir dir;
|
||||
dir.mkpath(m_gdbServerDestination.toFileInfo().absolutePath());
|
||||
if (!QFile::copy(m_gdbServerSource.toString(), m_gdbServerDestination.toString())) {
|
||||
raiseError(tr("Can't copy gdbserver from '%1' to '%2'").arg(m_gdbServerSource.toUserOutput())
|
||||
raiseError(tr("Can't copy gdbserver from \"%1\" to \"%2\"").arg(m_gdbServerSource.toUserOutput())
|
||||
.arg(m_gdbServerDestination.toUserOutput()));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ bool AndroidRunConfiguration::isEnabled() const
|
||||
QString AndroidRunConfiguration::disabledReason() const
|
||||
{
|
||||
if (m_parseInProgress)
|
||||
return tr("The .pro file '%1' is currently being parsed.")
|
||||
return tr("The .pro file \"%1\" is currently being parsed.")
|
||||
.arg(QFileInfo(m_proFilePath).fileName());
|
||||
|
||||
if (!m_parseSuccess)
|
||||
|
||||
@@ -285,7 +285,7 @@ void AndroidRunner::asyncStart()
|
||||
}
|
||||
if (!adb.waitForFinished(5000)) {
|
||||
adb.terminate();
|
||||
emit remoteProcessFinished(tr("Unable to start '%1'.").arg(m_packageName));
|
||||
emit remoteProcessFinished(tr("Unable to start \"%1\".").arg(m_packageName));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ void AndroidRunner::asyncStart()
|
||||
break;
|
||||
|
||||
if (i == 20) {
|
||||
emit remoteProcessFinished(tr("Unable to start '%1'.").arg(m_packageName));
|
||||
emit remoteProcessFinished(tr("Unable to start \"%1\".").arg(m_packageName));
|
||||
return;
|
||||
}
|
||||
qDebug() << "WAITING FOR " << tmp.fileName();
|
||||
|
||||
Reference in New Issue
Block a user