diff options
author | hjk <hjk@qt.io> | 2022-07-15 11:49:34 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-07-21 08:25:04 +0000 |
commit | 26dd8aef2ac160956c39ac2aca0f6f5c21cbc65e (patch) | |
tree | 21f5211a1f32fe0d10a172f34a76bb8730b4dd1c /src/plugins/python/pythonutils.cpp | |
parent | f3bceeda532fcc70211ee2397d1925add638ffb4 (diff) | |
download | qt-creator-26dd8aef2ac160956c39ac2aca0f6f5c21cbc65e.tar.gz |
Python: Convert to Tr::tr
Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r-- | src/plugins/python/pythonutils.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index ebc2a695f7..2d88946904 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -26,8 +26,8 @@ #include "pythonutils.h" #include "pythonproject.h" -#include "pythonrunconfiguration.h" #include "pythonsettings.h" +#include "pythontr.h" #include <coreplugin/messagemanager.h> @@ -42,8 +42,7 @@ using namespace ProjectExplorer; using namespace Utils; -namespace Python { -namespace Internal { +namespace Python::Internal { FilePath detectPython(const FilePath &documentPath) { @@ -131,7 +130,7 @@ void openPythonRepl(QObject *parent, const FilePath &file, ReplType type) const QString commandLine = process->commandLine().toUserOutput(); QObject::connect(process, &QtcProcess::done, process, [process, commandLine] { if (process->error() != QProcess::UnknownError) { - Core::MessageManager::writeDisrupting(QCoreApplication::translate("Python", + Core::MessageManager::writeDisrupting(Tr::tr( (process->error() == QProcess::FailedToStart) ? "Failed to run Python (%1): \"%2\"." : "Error while running Python (%1): \"%2\".") @@ -172,5 +171,4 @@ PythonProject *pythonProjectForFile(const FilePath &pythonFile) return nullptr; } -} // namespace Internal -} // namespace Python +} // Python::Internal |