diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-07 22:46:35 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-08 08:32:42 +0000 |
commit | 9db70d8810dbee8c3b54e4d69f9dfcee27f90259 (patch) | |
tree | df271ab90654d433b1ecc690db4ee3ee6acccb73 /src/plugins/clangcodemodel/clangutils.cpp | |
parent | 2356f28647c04718919a090a4784c9453cd0c02a (diff) | |
download | qt-creator-9db70d8810dbee8c3b54e4d69f9dfcee27f90259.tar.gz |
Translations: Fix stray QApplication::translate() calls
For references to the module-own context, use Tr::tr().
For references to other modules, use the right context name (with "::"
prefix).
Change-Id: I6dce8f1ceccb23c44d93f1826402cd3be8e98e5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangutils.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangutils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/clangcodemodel/clangutils.cpp b/src/plugins/clangcodemodel/clangutils.cpp index f577cbed4b..f236fa81b0 100644 --- a/src/plugins/clangcodemodel/clangutils.cpp +++ b/src/plugins/clangcodemodel/clangutils.cpp @@ -154,15 +154,14 @@ GenerateCompilationDbResult generateCompilationDB(QList<ProjectInfo::ConstPtr> p FilePath clangIncludeDir) { QTC_ASSERT(!baseDir.isEmpty(), return GenerateCompilationDbResult(QString(), - QCoreApplication::translate("ClangUtils", "Could not retrieve build directory."))); + Tr::tr("Could not retrieve build directory."))); QTC_ASSERT(!projectInfoList.isEmpty(), return GenerateCompilationDbResult(QString(), "Could not retrieve project info.")); QTC_CHECK(baseDir.ensureWritableDir()); QFile compileCommandsFile(baseDir.pathAppended("compile_commands.json").toFSPathString()); const bool fileOpened = compileCommandsFile.open(QIODevice::WriteOnly | QIODevice::Truncate); if (!fileOpened) { - return GenerateCompilationDbResult(QString(), - QCoreApplication::translate("ClangUtils", "Could not create \"%1\": %2") + return GenerateCompilationDbResult(QString(), Tr::tr("Could not create \"%1\": %2") .arg(compileCommandsFile.fileName(), compileCommandsFile.errorString())); } compileCommandsFile.write("["); |