From 26dd8aef2ac160956c39ac2aca0f6f5c21cbc65e Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 15 Jul 2022 11:49:34 +0200 Subject: Python: Convert to Tr::tr Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d Reviewed-by: Eike Ziller Reviewed-by: --- src/plugins/python/pythonutils.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/plugins/python/pythonutils.cpp') 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 @@ -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 -- cgit v1.2.1