Meson: Convert to Tr::tr

Change-Id: I37e8a8c559464f7d55e17a5ca08e8d8d9760a4d6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2022-10-10 09:14:04 +02:00
parent 63faccdb7c
commit 9e2ec17f36
31 changed files with 104 additions and 278 deletions

View File

@@ -4,6 +4,7 @@
#include "toolssettingsaccessor.h"
#include "mesonpluginconstants.h"
#include "mesonprojectmanagertr.h"
#include <app/app_version.h>
#include <coreplugin/icore.h>
@@ -18,18 +19,15 @@
namespace MesonProjectManager {
namespace Internal {
namespace {
inline QString entryName(int index)
static QString entryName(int index)
{
using namespace Constants;
return QString("%1%2").arg(ToolsSettings::ENTRY_KEY).arg(index);
}
} // namespace
ToolsSettingsAccessor::ToolsSettingsAccessor()
: UpgradingSettingsAccessor("QtCreatorMesonTools",
QCoreApplication::translate("MesonProjectManager::MesonToolManager",
"Meson"),
Tr::tr("Meson"),
Core::Constants::IDE_DISPLAY_NAME)
{
setBaseFilePath(Core::ICore::userResourcePath(Constants::ToolsSettings::FILENAME));