forked from qt-creator/qt-creator
ProjectExplorer: fix punctuation of messages
Change-Id: I76d5d516ffc8e184607a8a22fb8c8838eb3ebb1d Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
committed by
Leena Miettinen
parent
5a1400c5f0
commit
deae570c5d
@@ -1247,7 +1247,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
// not be used in the Run/Build configuration pages.
|
// not be used in the Run/Build configuration pages.
|
||||||
Utils::MacroExpander *expander = Utils::globalMacroExpander();
|
Utils::MacroExpander *expander = Utils::globalMacroExpander();
|
||||||
expander->registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX,
|
expander->registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX,
|
||||||
tr("Current project's main file"),
|
tr("Current project's main file."),
|
||||||
[this]() -> QString {
|
[this]() -> QString {
|
||||||
Utils::FileName projectFilePath;
|
Utils::FileName projectFilePath;
|
||||||
if (Project *project = ProjectTree::currentProject())
|
if (Project *project = ProjectTree::currentProject())
|
||||||
@@ -1470,7 +1470,7 @@ void ProjectExplorerPlugin::extensionsInitialized()
|
|||||||
ProjectExplorerPlugin::openProject(fileName, &errorMessage);
|
ProjectExplorerPlugin::openProject(fileName, &errorMessage);
|
||||||
if (!errorMessage.isEmpty())
|
if (!errorMessage.isEmpty())
|
||||||
QMessageBox::critical(ICore::mainWindow(),
|
QMessageBox::critical(ICore::mainWindow(),
|
||||||
tr("Failed to open project"), errorMessage);
|
tr("Failed to open project."), errorMessage);
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2460,13 +2460,13 @@ QPair<bool, QString> ProjectExplorerPluginPrivate::buildSettingsEnabledForSessio
|
|||||||
result.first = true;
|
result.first = true;
|
||||||
if (!SessionManager::hasProjects()) {
|
if (!SessionManager::hasProjects()) {
|
||||||
result.first = false;
|
result.first = false;
|
||||||
result.second = tr("No project loaded");
|
result.second = tr("No project loaded.");
|
||||||
} else if (BuildManager::isBuilding()) {
|
} else if (BuildManager::isBuilding()) {
|
||||||
result.first = false;
|
result.first = false;
|
||||||
result.second = tr("A build is in progress");
|
result.second = tr("A build is in progress.");
|
||||||
} else if (!hasBuildSettings(0)) {
|
} else if (!hasBuildSettings(0)) {
|
||||||
result.first = false;
|
result.first = false;
|
||||||
result.second = tr("Project has no build settings");
|
result.second = tr("Project has no build settings.");
|
||||||
} else {
|
} else {
|
||||||
foreach (Project *project, SessionManager::projectOrder(0)) {
|
foreach (Project *project, SessionManager::projectOrder(0)) {
|
||||||
if (project
|
if (project
|
||||||
|
Reference in New Issue
Block a user