diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-01-11 20:43:10 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-01-12 06:46:45 +0000 |
commit | f7bcd4f574491211d73752fb953e5af099dcac0c (patch) | |
tree | 03c609df6f91caa84df76049af6eff1d508376be /src/plugins/cppeditor/cppsourceprocessor.cpp | |
parent | 85d067af916346d50da515d6f636b29b5dd4dc6c (diff) | |
download | qt-creator-f7bcd4f574491211d73752fb953e5af099dcac0c.tar.gz |
CppEditor: Convert to Tr::tr
Change-Id: Ic4025e06e17c45eb6dc2162fb7f21f5b8aebe84d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/cppeditor/cppsourceprocessor.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppsourceprocessor.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cppsourceprocessor.cpp b/src/plugins/cppeditor/cppsourceprocessor.cpp index f3c6dce913..66cca58a0f 100644 --- a/src/plugins/cppeditor/cppsourceprocessor.cpp +++ b/src/plugins/cppeditor/cppsourceprocessor.cpp @@ -3,12 +3,13 @@ #include "cppsourceprocessor.h" +#include "cppeditortr.h" #include "cppmodelmanager.h" #include "cpptoolsreuse.h" #include <coreplugin/editormanager/editormanager.h> -#include <utils/fileutils.h> +#include <utils/filepath.h> #include <utils/hostosinfo.h> #include <utils/qtcassert.h> #include <utils/textfileformat.h> @@ -65,16 +66,14 @@ inline QByteArray generateFingerPrint(const QList<CPlusPlus::Macro> &definedMacr inline Message messageNoSuchFile(Document::Ptr &document, const FilePath &filePath, unsigned line) { - const QString text = QCoreApplication::translate( - "CppSourceProcessor", "%1: No such file or directory").arg(filePath.displayName()); + const QString text = Tr::tr("%1: No such file or directory").arg(filePath.displayName()); return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text); } inline Message messageNoFileContents(Document::Ptr &document, const FilePath &filePath, unsigned line) { - const QString text = QCoreApplication::translate( - "CppSourceProcessor", "%1: Could not get file contents").arg(filePath.displayName()); + const QString text = Tr::tr("%1: Could not get file contents").arg(filePath.displayName()); return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text); } |