Docker: Move to Tr::tr

There were no strings in the .ts files yet.

Change-Id: I86e7edace45db796fc3cc80d2735d1a80b897c85
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2022-07-13 10:43:31 +02:00
parent 4ca769afb1
commit 57ce33bc4e
13 changed files with 127 additions and 152 deletions

View File

@@ -26,6 +26,7 @@
#include "dockersettings.h"
#include "dockerconstants.h"
#include "dockertr.h"
#include <coreplugin/icore.h>
@@ -36,8 +37,7 @@
using namespace Utils;
namespace Docker {
namespace Internal {
namespace Docker::Internal {
DockerSettings::DockerSettings()
{
@@ -48,9 +48,9 @@ DockerSettings::DockerSettings()
dockerBinaryPath.setDisplayStyle(StringAspect::PathChooserDisplay);
dockerBinaryPath.setExpectedKind(PathChooser::ExistingCommand);
dockerBinaryPath.setDefaultFilePath(FilePath::fromString("docker").searchInPath({"/usr/local/bin"}));
dockerBinaryPath.setDisplayName(tr("Docker CLI"));
dockerBinaryPath.setDisplayName(Tr::tr("Docker CLI"));
dockerBinaryPath.setHistoryCompleter("Docker.Command.History");
dockerBinaryPath.setLabelText(tr("Command:"));
dockerBinaryPath.setLabelText(Tr::tr("Command:"));
dockerBinaryPath.setSettingsKey("cli");
readSettings(Core::ICore::settings());
@@ -61,7 +61,7 @@ DockerSettings::DockerSettings()
DockerSettingsPage::DockerSettingsPage(DockerSettings *settings)
{
setId(Docker::Constants::DOCKER_SETTINGS_ID);
setDisplayName(DockerSettings::tr("Docker"));
setDisplayName(Tr::tr("Docker"));
setCategory(ProjectExplorer::Constants::DEVICE_SETTINGS_CATEGORY);
setSettings(settings);
@@ -72,7 +72,7 @@ DockerSettingsPage::DockerSettingsPage(DockerSettings *settings)
// clang-format off
Column {
Group {
Title(DockerSettings::tr("Configuration")),
Title(Tr::tr("Configuration")),
Row { s.dockerBinaryPath }
},
Stretch()
@@ -81,5 +81,4 @@ DockerSettingsPage::DockerSettingsPage(DockerSettings *settings)
});
}
} // namespace Internal
} // namespace Docker
} // Docker::Internal