forked from qt-creator/qt-creator
Docker: Fix UI text caps and punctuation
Task-number: QTCREATORBUG-27055 Change-Id: I6b5c2bbd36e34d4444b798e2e5040bff674ad02a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -335,7 +335,7 @@ public:
|
|||||||
|
|
||||||
m_runAsOutsideUser = new QCheckBox(tr("Run as outside user"));
|
m_runAsOutsideUser = new QCheckBox(tr("Run as outside user"));
|
||||||
m_runAsOutsideUser->setToolTip(tr("Uses user ID and group ID of the user running Qt Creator "
|
m_runAsOutsideUser->setToolTip(tr("Uses user ID and group ID of the user running Qt Creator "
|
||||||
"in the Docker container."));
|
"in the docker container."));
|
||||||
m_runAsOutsideUser->setChecked(data.useLocalUidGid);
|
m_runAsOutsideUser->setChecked(data.useLocalUidGid);
|
||||||
m_runAsOutsideUser->setEnabled(HostOsInfo::isLinuxHost());
|
m_runAsOutsideUser->setEnabled(HostOsInfo::isLinuxHost());
|
||||||
|
|
||||||
@@ -363,7 +363,7 @@ public:
|
|||||||
|
|
||||||
m_pathsListEdit = new PathListEditor;
|
m_pathsListEdit = new PathListEditor;
|
||||||
m_pathsListEdit->setToolTip(tr("Maps paths in this list one-to-one to the "
|
m_pathsListEdit->setToolTip(tr("Maps paths in this list one-to-one to the "
|
||||||
"Docker container."));
|
"docker container."));
|
||||||
m_pathsListEdit->setPathList(data.mounts);
|
m_pathsListEdit->setPathList(data.mounts);
|
||||||
|
|
||||||
connect(m_pathsListEdit, &PathListEditor::changed, this, [dockerDevice, this]() {
|
connect(m_pathsListEdit, &PathListEditor::changed, this, [dockerDevice, this]() {
|
||||||
@@ -380,12 +380,12 @@ public:
|
|||||||
|
|
||||||
auto searchDirsComboBox = new QComboBox;
|
auto searchDirsComboBox = new QComboBox;
|
||||||
searchDirsComboBox->addItem(tr("Search in PATH"));
|
searchDirsComboBox->addItem(tr("Search in PATH"));
|
||||||
searchDirsComboBox->addItem(tr("Search in selected directories"));
|
searchDirsComboBox->addItem(tr("Search in Selected Directories"));
|
||||||
|
|
||||||
auto searchDirsLineEdit = new QLineEdit;
|
auto searchDirsLineEdit = new QLineEdit;
|
||||||
searchDirsLineEdit->setText("/usr/bin;/opt");
|
searchDirsLineEdit->setText("/usr/bin;/opt");
|
||||||
searchDirsLineEdit->setToolTip(
|
searchDirsLineEdit->setToolTip(
|
||||||
tr("Select the paths in the Docker image that should be scanned for Kit entries"));
|
tr("Select the paths in the docker image that should be scanned for kit entries."));
|
||||||
|
|
||||||
auto searchPaths = [this, searchDirsComboBox, searchDirsLineEdit, dockerDevice] {
|
auto searchPaths = [this, searchDirsComboBox, searchDirsLineEdit, dockerDevice] {
|
||||||
FilePaths paths;
|
FilePaths paths;
|
||||||
@@ -493,7 +493,7 @@ Tasks DockerDevice::validate() const
|
|||||||
Tasks result;
|
Tasks result;
|
||||||
if (d->m_data.mounts.isEmpty()) {
|
if (d->m_data.mounts.isEmpty()) {
|
||||||
result << Task(Task::Error,
|
result << Task(Task::Error,
|
||||||
tr("The Docker device has not set up shared directories."
|
tr("The docker device has not set up shared directories."
|
||||||
"This will not work for building."),
|
"This will not work for building."),
|
||||||
{}, -1, {});
|
{}, -1, {});
|
||||||
}
|
}
|
||||||
@@ -531,7 +531,7 @@ DockerDevice::DockerDevice(const DockerDeviceData &data)
|
|||||||
Q_UNUSED(env); // TODO: That's the runnable's environment in general. Use it via -e below.
|
Q_UNUSED(env); // TODO: That's the runnable's environment in general. Use it via -e below.
|
||||||
updateContainerAccess();
|
updateContainerAccess();
|
||||||
if (d->m_container.isEmpty()) {
|
if (d->m_container.isEmpty()) {
|
||||||
MessageManager::writeDisrupting(tr("Error starting remote shell. No container"));
|
MessageManager::writeDisrupting(tr("Error starting remote shell. No container."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -909,7 +909,7 @@ void DockerDevicePrivate::startContainer()
|
|||||||
if (exitCode > 120) {
|
if (exitCode > 120) {
|
||||||
DockerPlugin::setGlobalDaemonState(false);
|
DockerPlugin::setGlobalDaemonState(false);
|
||||||
LOG("DOCKER DAEMON NOT RUNNING?");
|
LOG("DOCKER DAEMON NOT RUNNING?");
|
||||||
MessageManager::writeFlashing(tr("Docker Daemon appears to be not running. "
|
MessageManager::writeFlashing(tr("Docker daemon appears to be not running. "
|
||||||
"Verify daemon is up and running and reset the "
|
"Verify daemon is up and running and reset the "
|
||||||
"docker daemon on the docker device settings page "
|
"docker daemon on the docker device settings page "
|
||||||
"or restart Qt Creator."));
|
"or restart Qt Creator."));
|
||||||
@@ -973,7 +973,7 @@ void DockerDevicePrivate::updateFileSystemAccess()
|
|||||||
|
|
||||||
if (!QFileInfo(m_mergedDir).isReadable()) {
|
if (!QFileInfo(m_mergedDir).isReadable()) {
|
||||||
MessageManager::writeFlashing(
|
MessageManager::writeFlashing(
|
||||||
tr("Local read access to Docker container %1 unavailable through directory \"%2\".")
|
tr("Local read access to docker container %1 unavailable through directory \"%2\".")
|
||||||
.arg(m_container, m_mergedDir)
|
.arg(m_container, m_mergedDir)
|
||||||
+ '\n' + tr("Output: \"%1\"").arg(out)
|
+ '\n' + tr("Output: \"%1\"").arg(out)
|
||||||
+ '\n' + tr("Error: \"%1\"").arg(proc.stdErr()));
|
+ '\n' + tr("Error: \"%1\"").arg(proc.stdErr()));
|
||||||
|
Reference in New Issue
Block a user