forked from qt-creator/qt-creator
Conan: Convert to Tr::tr
Change-Id: Ibeb29c39923db0f1c95e0db41dd7b2a1f8d670db Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -52744,7 +52744,7 @@ in "%2" aus.
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConanPackageManager::Internal::ConanInstallStep</name>
|
||||
<name>Conan</name>
|
||||
<message>
|
||||
<source>Conan install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@@ -47854,7 +47854,7 @@ Output:
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConanPackageManager::Internal::ConanInstallStep</name>
|
||||
<name>Conan</name>
|
||||
<message>
|
||||
<source>Additional arguments:</source>
|
||||
<translation>追加の引数:</translation>
|
||||
|
@@ -8561,7 +8561,7 @@ Set a valid executable first.</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConanPackageManager::Internal::ConanInstallStep</name>
|
||||
<name>Conan</name>
|
||||
<message>
|
||||
<source>Conan install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@@ -3,10 +3,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Constants {
|
||||
namespace Conan::Constants {
|
||||
|
||||
const char INSTALL_STEP[] = "ConanPackageManager.InstallStep";
|
||||
|
||||
} // namespace Constants
|
||||
} // namespace ConanPackageManager
|
||||
} // Conan::Constants
|
||||
|
@@ -1,10 +1,12 @@
|
||||
// Copyright (C) 2018 Jochen Seemann
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "conanconstants.h"
|
||||
#include "conaninstallstep.h"
|
||||
|
||||
#include "conanconstants.h"
|
||||
#include "conanplugin.h"
|
||||
#include "conansettings.h"
|
||||
#include "conantr.h"
|
||||
|
||||
#include <projectexplorer/abstractprocessstep.h>
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
@@ -21,15 +23,12 @@
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Internal {
|
||||
namespace Conan::Internal {
|
||||
|
||||
// ConanInstallStep
|
||||
|
||||
class ConanInstallStep final : public AbstractProcessStep
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ConanPackageManager::Internal::ConanInstallStep)
|
||||
|
||||
public:
|
||||
ConanInstallStep(BuildStepList *bsl, Id id);
|
||||
|
||||
@@ -42,20 +41,20 @@ ConanInstallStep::ConanInstallStep(BuildStepList *bsl, Id id)
|
||||
: AbstractProcessStep(bsl, id)
|
||||
{
|
||||
setUseEnglishOutput();
|
||||
setDisplayName(ConanInstallStep::tr("Conan install"));
|
||||
setDisplayName(Tr::tr("Conan install"));
|
||||
|
||||
auto conanFile = addAspect<StringAspect>();
|
||||
conanFile->setSettingsKey("ConanPackageManager.InstallStep.ConanFile");
|
||||
conanFile->setFilePath(ConanPlugin::conanFilePath(project(),
|
||||
project()->projectDirectory() / "conanfile.txt"));
|
||||
conanFile->setLabelText(tr("Conan file:"));
|
||||
conanFile->setToolTip(tr("Enter location of conanfile.txt or conanfile.py."));
|
||||
conanFile->setLabelText(Tr::tr("Conan file:"));
|
||||
conanFile->setToolTip(Tr::tr("Enter location of conanfile.txt or conanfile.py."));
|
||||
conanFile->setDisplayStyle(StringAspect::PathChooserDisplay);
|
||||
conanFile->setExpectedKind(PathChooser::File);
|
||||
|
||||
auto additionalArguments = addAspect<StringAspect>();
|
||||
additionalArguments->setSettingsKey("ConanPackageManager.InstallStep.AdditionalArguments");
|
||||
additionalArguments->setLabelText(tr("Additional arguments:"));
|
||||
additionalArguments->setLabelText(Tr::tr("Additional arguments:"));
|
||||
additionalArguments->setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
|
||||
auto buildMissing = addAspect<BoolAspect>();
|
||||
@@ -116,8 +115,7 @@ void ConanInstallStep::setupOutputFormatter(OutputFormatter *formatter)
|
||||
ConanInstallStepFactory::ConanInstallStepFactory()
|
||||
{
|
||||
registerStep<ConanInstallStep>(Constants::INSTALL_STEP);
|
||||
setDisplayName(ConanInstallStep::tr("Run conan install"));
|
||||
setDisplayName(Tr::tr("Run conan install"));
|
||||
}
|
||||
|
||||
} // Internal
|
||||
} // ConanPackageManager
|
||||
} // Conan::Internal
|
||||
|
@@ -5,8 +5,7 @@
|
||||
|
||||
#include <projectexplorer/buildstep.h>
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Internal {
|
||||
namespace Conan::Internal {
|
||||
|
||||
class ConanInstallStepFactory final : public ProjectExplorer::BuildStepFactory
|
||||
{
|
||||
@@ -14,5 +13,4 @@ public:
|
||||
ConanInstallStepFactory();
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ConanPackageManager
|
||||
} // Conan::Internal
|
||||
|
@@ -1,17 +1,18 @@
|
||||
// Copyright (C) 2018 Jochen Seemann
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "conanplugin.h"
|
||||
|
||||
#include "conanconstants.h"
|
||||
#include "conaninstallstep.h"
|
||||
#include "conanplugin.h"
|
||||
#include "conansettings.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/buildsteplist.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectmanager.h>
|
||||
#include <projectexplorer/projecttree.h>
|
||||
#include <projectexplorer/session.h>
|
||||
#include <projectexplorer/target.h>
|
||||
@@ -20,8 +21,7 @@ using namespace Core;
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Internal {
|
||||
namespace Conan::Internal {
|
||||
|
||||
class ConanPluginPrivate
|
||||
{
|
||||
@@ -91,6 +91,4 @@ FilePath ConanPlugin::conanFilePath(Project *project, const FilePath &defaultFil
|
||||
return defaultFilePath;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ConanPackageManager
|
||||
} // Conan::Internal
|
||||
|
@@ -4,12 +4,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/filepath.h>
|
||||
|
||||
namespace ProjectExplorer { class Project; }
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Internal {
|
||||
namespace Conan::Internal {
|
||||
|
||||
class ConanSettings;
|
||||
|
||||
@@ -21,7 +20,7 @@ class ConanPlugin final : public ExtensionSystem::IPlugin
|
||||
public:
|
||||
static ConanSettings *conanSettings();
|
||||
static Utils::FilePath conanFilePath(ProjectExplorer::Project *project,
|
||||
const Utils::FilePath &defaultFilePath = Utils::FilePath());
|
||||
const Utils::FilePath &defaultFilePath = {});
|
||||
|
||||
private:
|
||||
~ConanPlugin() final;
|
||||
@@ -33,5 +32,4 @@ private:
|
||||
class ConanPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ConanPackageManager
|
||||
} // Conan::Internal
|
||||
|
@@ -7,8 +7,7 @@
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Internal {
|
||||
namespace Conan::Internal {
|
||||
|
||||
ConanSettings::ConanSettings()
|
||||
{
|
||||
@@ -22,5 +21,4 @@ ConanSettings::ConanSettings()
|
||||
conanFilePath.setDefaultValue(HostOsInfo::withExecutableSuffix("conan"));
|
||||
}
|
||||
|
||||
} // Internal
|
||||
} // ConanPackageManager
|
||||
} // Conan::Internal
|
||||
|
@@ -4,12 +4,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <utils/aspects.h>
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <QSettings>
|
||||
|
||||
namespace ConanPackageManager {
|
||||
namespace Internal {
|
||||
namespace Conan::Internal {
|
||||
|
||||
class ConanSettings : public Utils::AspectContainer
|
||||
{
|
||||
@@ -19,5 +15,4 @@ public:
|
||||
Utils::StringAspect conanFilePath;
|
||||
};
|
||||
|
||||
} // Internal
|
||||
} // ConanPackageManager
|
||||
} // Conan::Internal
|
||||
|
@@ -12,4 +12,4 @@ struct Tr
|
||||
Q_DECLARE_TR_FUNCTIONS(Conan)
|
||||
};
|
||||
|
||||
} // namespace Conan
|
||||
} // Conan
|
||||
|
Reference in New Issue
Block a user