forked from qt-creator/qt-creator
Python: Fix UI text
Change-Id: Ia3fa732d9ed6bb880ea7721712093fbe8faa27bd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -250,7 +250,7 @@ public:
|
||||
|
||||
m_process.start(m_python.toString(), {"-m", "pip", "install", "--user", pylsVersion});
|
||||
|
||||
Core::MessageManager::write(tr("Running '%1 %2' to install python language server")
|
||||
Core::MessageManager::write(tr("Running \"%1 %2\" to install Python language server")
|
||||
.arg(m_process.program(), m_process.arguments().join(' ')));
|
||||
|
||||
m_killTimer.setSingleShot(true);
|
||||
@@ -261,7 +261,7 @@ private:
|
||||
void cancel()
|
||||
{
|
||||
SynchronousProcess::stopProcess(m_process);
|
||||
Core::MessageManager::write(tr("The Python language server installation canceled by %1.")
|
||||
Core::MessageManager::write(tr("The Python language server installation was canceled by %1.")
|
||||
.arg(m_killTimer.isActive() ? tr("user") : tr("time out")));
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ void PyLSConfigureAssistant::openDocumentWithPython(const FilePath &python,
|
||||
&& infoBar->canInfoBeAdded(installPylsInfoBarId)) {
|
||||
auto message
|
||||
= tr("Install and set up Python language server (PyLS) for %1 (%2). "
|
||||
"The language server provides Python specific completions and annotations.")
|
||||
"The language server provides Python specific completion and annotation.")
|
||||
.arg(pythonName(python), python.toUserOutput());
|
||||
Core::InfoBarEntry info(installPylsInfoBarId,
|
||||
message,
|
||||
@@ -383,7 +383,7 @@ void PyLSConfigureAssistant::openDocumentWithPython(const FilePath &python,
|
||||
} else if (lsState.state == PythonLanguageServerState::AlreadyInstalled
|
||||
&& infoBar->canInfoBeAdded(startPylsInfoBarId)) {
|
||||
auto message = tr("Found a Python language server for %1 (%2). "
|
||||
"Should this one be set up for this document?")
|
||||
"Set it up for this document?")
|
||||
.arg(pythonName(python), python.toUserOutput());
|
||||
Core::InfoBarEntry info(startPylsInfoBarId,
|
||||
message,
|
||||
|
Reference in New Issue
Block a user