Core: Tr::tr

Change-Id: I0064814b0689f0f65072d2b0f60e26162587fd54
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-16 17:20:07 +01:00
parent 8f8150db2d
commit 015b1ee53c
104 changed files with 1481 additions and 11072 deletions

View File

@@ -3,7 +3,8 @@
#include "generatedfile.h"
#include <coreplugin/editormanager/editormanager.h>
#include "coreplugintr.h"
#include "editormanager/editormanager.h"
#include <utils/fileutils.h>
#include <utils/textfileformat.h>
@@ -138,8 +139,7 @@ bool GeneratedFile::write(QString *errorMessage) const
const FilePath parentDir = m_d->path.parentDir();
if (!parentDir.isDir()) {
if (!parentDir.createDir()) {
*errorMessage = QCoreApplication::translate("BaseFileWizard",
"Unable to create the directory %1.")
*errorMessage = Tr::tr("Unable to create the directory %1.")
.arg(parentDir.toUserOutput());
return false;
}