CMake: Move to Tr::tr

Change-Id: I169da93b5184351cb915d4c198fd33318fcfe06f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2022-09-29 15:26:31 +02:00
parent 9f25c2dedf
commit ab4c9b9679
65 changed files with 509 additions and 2228 deletions

View File

@@ -3,15 +3,15 @@
#include "cmaketoolsettingsaccessor.h"
#include "cmakeprojectmanagertr.h"
#include "cmaketool.h"
#include "cmaketoolmanager.h"
#include <coreplugin/icore.h>
#include <app/app_version.h>
#include <utils/environment.h>
#include <utils/algorithm.h>
#include <utils/environment.h>
#include <QDebug>
@@ -83,8 +83,7 @@ static std::vector<std::unique_ptr<CMakeTool>> autoDetectCMakeTools()
for (const FilePath &command : qAsConst(suspects)) {
auto item = std::make_unique<CMakeTool>(CMakeTool::AutoDetection, CMakeTool::createId());
item->setFilePath(command);
item->setDisplayName(::CMakeProjectManager::CMakeToolManager::tr("System CMake at %1")
.arg(command.toUserOutput()));
item->setDisplayName(Tr::tr("System CMake at %1").arg(command.toUserOutput()));
found.emplace_back(std::move(item));
}
@@ -145,7 +144,7 @@ mergeTools(std::vector<std::unique_ptr<CMakeTool>> &sdkTools,
CMakeToolSettingsAccessor::CMakeToolSettingsAccessor() :
UpgradingSettingsAccessor("QtCreatorCMakeTools",
QCoreApplication::translate("CMakeProjectManager::CMakeToolManager", "CMake"),
Tr::tr("CMake"),
Core::Constants::IDE_DISPLAY_NAME)
{
setBaseFilePath(Core::ICore::userResourcePath(CMAKE_TOOL_FILENAME));